/* TOM'S LAST RIDE v2 - Modern Light Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-primary: #fefefe;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    
    --emerald-50: #ecfdf5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    
    --rose-50: #fff1f2;
    --rose-500: #f43f5e;
    
    --violet-50: #f5f3ff;
    --violet-500: #8b5cf6;
    
    --blue-50: #eff6ff;
    --blue-500: #3b82f6;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    
    --radius: 1rem;
    --radius-sm: 0.625rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.1) 30%,
        rgba(255,255,255,0.9) 70%,
        rgba(255,255,255,1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--amber-600);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    width: fit-content;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(255,255,255,0.5);
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Hero Navigation Cards */
.hero-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-nav {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hero-nav-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.hero-nav-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--amber-400);
}

.hero-nav-card.active {
    background: linear-gradient(135deg, var(--amber-50), var(--amber-100));
    border-color: var(--amber-400);
}

.hero-nav-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-nav-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-nav-card:hover .hero-nav-label,
.hero-nav-card.active .hero-nav-label {
    color: var(--amber-600);
}

/* ============================================
   NAVIGATION
============================================ */
.nav-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
}

.nav-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow);
}

.nav-logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.125rem;
    display: none;
}

@media (min-width: 640px) {
    .nav-logo-text {
        display: block;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   MAIN TABS NAVIGATION
============================================ */
.tabs-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.tab-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tab-item.active {
    background: linear-gradient(135deg, var(--amber-50), var(--amber-100));
    color: var(--amber-600);
}

.tab-item svg, .tab-item .tab-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tab-badge {
    background: var(--rose-500);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-full);
    margin-left: 0.25rem;
}

/* ============================================
   CONTENT AREA
============================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    padding-bottom: 6rem;
}

.content-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.section-title .icon {
    font-size: 1.25rem;
}

/* ============================================
   CARDS
============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

/* Gradient Cards */
.card-gradient-amber {
    background: linear-gradient(135deg, var(--amber-50), #fff 50%);
    border-color: var(--amber-200);
}

.card-gradient-emerald {
    background: linear-gradient(135deg, var(--emerald-50), #fff 50%);
    border-color: #a7f3d0;
}

.card-gradient-violet {
    background: linear-gradient(135deg, var(--violet-50), #fff 50%);
    border-color: #ddd6fe;
}

.card-gradient-blue {
    background: linear-gradient(135deg, var(--blue-50), #fff 50%);
    border-color: #bfdbfe;
}

.card-gradient-rose {
    background: linear-gradient(135deg, var(--rose-50), #fff 50%);
    border-color: #fecdd3;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
}

.btn-success {
    background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.btn-danger {
    background: linear-gradient(135deg, var(--rose-500), #e11d48);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--amber-500);
    color: var(--amber-600);
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-sm);
}

.btn-icon-sm {
    width: 36px;
    height: 36px;
}

/* ============================================
   AVATAR
============================================ */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9375rem;
    color: white;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
}

.avatar-sm { width: 32px; height: 32px; font-size: 0.8125rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.25rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.5rem; }

/* Avatar gradient colors */
.avatar.from-rose-400 { background: linear-gradient(135deg, #fb7185, #f43f5e); }
.avatar.from-amber-400 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.avatar.from-emerald-400 { background: linear-gradient(135deg, #34d399, #10b981); }
.avatar.from-cyan-400 { background: linear-gradient(135deg, #22d3ee, #06b6d4); }
.avatar.from-violet-400 { background: linear-gradient(135deg, #a78bfa, #8b5cf6); }
.avatar.from-pink-400 { background: linear-gradient(135deg, #f472b6, #ec4899); }
.avatar.from-orange-400 { background: linear-gradient(135deg, #fb923c, #f97316); }
.avatar.from-teal-400 { background: linear-gradient(135deg, #2dd4bf, #14b8a6); }
.avatar.from-indigo-400 { background: linear-gradient(135deg, #818cf8, #6366f1); }
.avatar.from-fuchsia-400 { background: linear-gradient(135deg, #e879f9, #d946ef); }

.avatar-ring {
    outline: 3px solid white;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--amber-100);
}

/* ============================================
   FORMS
============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-label .required {
    color: var(--rose-500);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px var(--amber-100);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   BADGES
============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.badge-amber {
    background: var(--amber-100);
    color: var(--amber-600);
}

.badge-emerald {
    background: var(--emerald-50);
    color: var(--emerald-600);
}

.badge-rose {
    background: var(--rose-50);
    color: var(--rose-500);
}

.badge-violet {
    background: var(--violet-50);
    color: var(--violet-500);
}

.badge-blue {
    background: var(--blue-50);
    color: var(--blue-500);
}

.badge-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
}

/* ============================================
   NEWS CARDS
============================================ */
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.news-card.pinned {
    background: linear-gradient(135deg, var(--amber-50), #fff);
    border-color: var(--amber-300);
}

.news-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.news-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.news-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.news-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.news-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   DO'S AND DON'TS
============================================ */
.dos-donts-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .dos-donts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dos-list, .donts-list {
    list-style: none;
}

.dos-list li, .donts-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.dos-list li::before {
    content: '✅';
    flex-shrink: 0;
}

.donts-list li::before {
    content: '❌';
    flex-shrink: 0;
}

/* ============================================
   PROPOSAL CARDS
============================================ */
.proposal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.proposal-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.proposal-card.winner {
    border: 2px solid var(--emerald-500);
    box-shadow: 0 0 0 4px var(--emerald-50);
}

.proposal-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.proposal-body {
    padding: 1.25rem;
}

.proposal-category {
    margin-bottom: 0.75rem;
}

.proposal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.proposal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.proposal-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.proposal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.proposal-budget {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-50));
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--amber-600);
}

.proposal-budget .amount {
    font-size: 1.5rem;
}

.proposal-budget .unit {
    font-size: 0.875rem;
    color: var(--amber-500);
}

/* ============================================
   TIMELINE
============================================ */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.75rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--bg-card);
    border: 3px solid var(--amber-500);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.timeline-time {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--amber-600);
    margin-bottom: 0.25rem;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
}

.timeline-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-location {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   PARTICIPANTS
============================================ */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.participant-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
}

.participant-card:hover {
    border-color: var(--amber-400);
    box-shadow: var(--shadow);
}

.participant-avatar {
    margin: 0 auto 0.75rem;
}

.participant-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.participant-role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.participant-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--emerald-500);
    margin-top: 0.5rem;
}

.participant-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

/* ============================================
   MODAL
============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.open {
    display: flex;
}

@media (min-width: 640px) {
    .modal-overlay {
        align-items: center;
    }
}

.modal-content {
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    animation: modalSlideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .modal-content {
        border-radius: var(--radius-lg);
        max-height: 85vh;
    }
}

@keyframes modalSlideUp {
    from { 
        opacity: 0;
        transform: translateY(100px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-body {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

/* ============================================
   CHAT
============================================ */
.chat-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.chat-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

.chat-fab svg {
    width: 28px;
    height: 28px;
}

.chat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    background: var(--rose-500);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ============================================
   UTILITIES
============================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-amber { color: var(--amber-600); }
.text-emerald { color: var(--emerald-600); }
.text-rose { color: var(--rose-500); }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.ml-auto { margin-left: auto; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }

.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius); }
.rounded-full { border-radius: var(--radius-full); }

.hidden { display: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Toast */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 2000;
    pointer-events: none;
}

@media (min-width: 640px) {
    .toast-container {
        left: auto;
        width: 400px;
    }
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-xl);
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease;
}

.toast.success { border-left: 4px solid var(--emerald-500); }
.toast.error { border-left: 4px solid var(--rose-500); }
.toast.info { border-left: 4px solid var(--blue-500); }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Loading */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--amber-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, var(--amber-100), var(--amber-50));
    border: 1px solid var(--amber-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .summary-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.summary-stat {
    text-align: center;
}

.summary-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--amber-600);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.summary-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--amber-50), var(--amber-100));
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.login-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.login-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
