/* Loyaltry App Styles */

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    background-color: #f8fafc;
}

/* Brand Colors */
:root {
    --primary-blue: #0ea5e9;
    --primary-blue-dark: #0284c7;
    --secondary-blue: #3b82f6;
    --accent-blue: #0d47a1;
    --success-green: #10b981;
    --warning-yellow: #f59e0b;
    --danger-red: #ef4444;
    --gray-light: #f1f5f9;
    --gray-medium: #64748b;
    --gray-dark: #334155;
}

/* Typography */
.font-roboto {
    font-family: 'Roboto', sans-serif;
}

.brand-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--accent-blue);
}

.brand-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    color: var(--accent-blue);
}

.highlight-text {
    color: var(--accent-blue);
}

/* Layout - removed layout rules for .app-container, let Tailwind handle layout */
/* .app-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
} */

.main-content {
    padding-bottom: 80px; /* Space for bottom navigation */
}

/* Navigation */
.bottom-nav {
    background-color: white;
    border-top: 1px solid #e2e8f0;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    z-index: 40;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--gray-medium);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-item.active {
    color: var(--primary-blue);
}

.nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-bottom: 12px;
}

.card-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
}

.btn-secondary {
    background-color: var(--gray-light);
    color: var(--gray-dark);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* Action Buttons */
.action-button {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-button:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.1);
}

.action-button .material-icons {
    color: var(--primary-blue);
    font-size: 28px;
}

.action-button .text-content {
    flex-grow: 1;
    margin-left: 12px;
}

.action-button .count {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
}

.badge-silver {
    background-color: #9ca3af;
    color: white;
}

.badge-gold {
    background-color: #f59e0b;
    color: white;
}

.badge-platinum {
    background-color: #6b7280;
    color: white;
}

.badge-user {
    background-color: var(--gray-dark);
    color: white;
    font-weight: bold;
}

/* Notifications */
.notification-item {
    background-color: #e0f2fe;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.notification-item .material-icons {
    color: var(--primary-blue);
    font-size: 24px;
    margin-right: 12px;
}

.notification-item p {
    font-size: 14px;
    color: var(--gray-dark);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-medium);
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

/* Progress Bar */
.progress-container {
    position: relative;
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-blue);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Range Slider */
.range-slider {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-blue);
}

.text-secondary {
    color: var(--gray-medium);
}

.bg-primary {
    background-color: var(--primary-blue);
}

.bg-secondary {
    background-color: var(--gray-light);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 400px) {
    .app-container {
        max-width: 100%;
    }
    
    .bottom-nav {
        max-width: 100%;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

/* Remove debug utility: forcibly show app-container and main-content */
/* #app-container, #main-content {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #fffbe7 !important;
  outline: 3px dashed #f59e0b !important;
  min-height: 100px;
} */
#app-header {
  flex: 0 0 auto;
  max-height: 80px;
  overflow: hidden;
}
#main-content {
  flex: 1 1 auto;
  overflow-y: auto;
}
#bottom-nav {
  flex: 0 0 auto;
} 