:root {
    --color-navy: #1E3A5F;
    --color-navy-light: #2E5A8F;
    --color-amber: #F59E0B;
    --color-amber-dark: #D97706;
    --color-slate-900: #0F172A;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748B;
    --color-slate-400: #94A3B8;
    --color-slate-300: #CBD5E1;
    --color-slate-200: #E2E8F0;
    --color-slate-100: #F1F5F9;
    --color-slate-50: #F8FAFC;
    --color-white: #FFFFFF;
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-warning-light: #FEF3C7;
    --color-error: #EF4444;
    --color-error-light: #FEE2E2;
    --color-info-light: #DBEAFE;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-slate-50);
    color: var(--color-slate-900);
    line-height: 1.5;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    padding: 20px;
}
.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    padding: 48px;
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.login-subtitle { font-size: 0.9375rem; color: var(--color-slate-500); text-align: center; margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--color-slate-700); margin-bottom: 8px; }
.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--color-slate-900);
    background: var(--color-white);
    border: 1px solid var(--color-slate-300);
    border-radius: var(--radius-md);
    transition: all 150ms ease;
}
.form-input:focus { outline: none; border-color: var(--color-navy); box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 150ms ease;
    width: 100%;
}
.btn-primary { background: var(--color-navy); color: white; }
.btn-primary:hover { background: var(--color-navy-light); }
.btn-accent { background: var(--color-amber); color: white; }
.btn-accent:hover { background: var(--color-amber-dark); }
.btn-ghost { background: transparent; color: var(--color-slate-600); width: auto; padding: 8px 16px; }
.btn-ghost:hover { background: var(--color-slate-100); }

.login-footer { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--color-slate-500); }
.login-footer a { color: var(--color-navy); font-weight: 500; text-decoration: none; }

.alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 24px; font-size: 0.9375rem; }
.alert-error { background: var(--color-error-light); color: #B91C1C; border: 1px solid #FECACA; }

.top-nav { background: var(--color-white); border-bottom: 1px solid var(--color-slate-200); position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo svg { height: 40px; }
.main-nav { display: flex; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 0.9375rem; font-weight: 500; color: var(--color-slate-600); text-decoration: none; border-radius: var(--radius-md); transition: all 150ms ease; }
.nav-link:hover { background: var(--color-slate-100); color: var(--color-slate-900); }
.nav-link.active { background: rgba(30, 58, 95, 0.1); color: var(--color-navy); }
.coming-soon-badge { font-size: 0.625rem; font-weight: 600; text-transform: uppercase; background: var(--color-amber); color: white; padding: 2px 6px; border-radius: 4px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.user-avatar { width: 32px; height: 32px; background: var(--color-navy); color: white; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; }
.user-name { font-size: 0.9375rem; font-weight: 500; color: var(--color-slate-700); }

.dashboard { padding: 24px; max-width: 1400px; margin: 0 auto; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.dashboard-header h1 { font-size: 1.75rem; margin-bottom: 4px; }
.text-muted { color: var(--color-slate-500); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--color-white); border: 1px solid var(--color-slate-200); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.stat-icon-pending { background: var(--color-warning-light); color: #B45309; }
.stat-icon-scheduled { background: #ECFEFF; color: #0E7490; }
.stat-icon-delivered { background: var(--color-success-light); color: #166534; }
.stat-icon-total { background: var(--color-info-light); color: #1E40AF; }
.stat-label { font-size: 0.875rem; color: var(--color-slate-500); margin-bottom: 4px; }
.stat-value { font-size: 1.75rem; font-weight: 700; }

.card { background: var(--color-white); border: 1px solid var(--color-slate-200); border-radius: var(--radius-lg); }
.card-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--color-slate-100); }
.card-title { font-size: 1.125rem; font-weight: 600; margin: 0; }

.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 24px; text-align: left; border-bottom: 1px solid var(--color-slate-100); }
th { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-slate-500); background: var(--color-slate-50); }
tbody tr:hover { background: var(--color-slate-50); }

.badge { display: inline-flex; padding: 4px 12px; font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-full); text-transform: uppercase; }
.badge-scheduled { background: #ECFEFF; color: #0E7490; }
.badge-pos-entered { background: #F5F3FF; color: #5B21B6; }
.badge-pending { background: var(--color-warning-light); color: #B45309; }
.badge-delivered { background: var(--color-success); color: white; }

.quick-actions { margin-top: 32px; }
.quick-actions h3 { font-size: 1rem; margin-bottom: 16px; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.action-card { position: relative; background: var(--color-white); border: 1px solid var(--color-slate-200); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: var(--color-slate-700); transition: all 150ms ease; }
.action-card:hover { border-color: var(--color-navy); background: var(--color-slate-50); color: var(--color-navy); }
.action-icon { width: 48px; height: 48px; background: var(--color-slate-100); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.action-card:hover .action-icon { background: rgba(30, 58, 95, 0.1); }
.action-card span { font-weight: 500; font-size: 0.9375rem; }
.action-badge { position: absolute; top: 8px; right: 8px; font-size: 0.625rem; font-weight: 600; text-transform: uppercase; background: var(--color-amber); color: white; padding: 2px 6px; border-radius: 4px; }

.app-footer { background: var(--color-white); border-top: 1px solid var(--color-slate-200); padding: 16px 0; margin-top: 48px; }
.footer-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; color: var(--color-slate-500); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--color-slate-500); text-decoration: none; }

@media (max-width: 768px) {
    .main-nav { display: none; }
    .user-name { display: none; }
    .dashboard-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .dashboard-header .btn { width: 100%; }
    .footer-container { flex-direction: column; gap: 12px; }
    .login-card { padding: 32px 24px; }
}
