:root {
    --primary: #e11d48;
    --primary-dark: #be123c;
    --secondary: #f43f5e;
    --accent: #fb7185;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: rgba(225, 29, 72, 0.1);
    --shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.1), 0 8px 10px -6px rgba(225, 29, 72, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    background-image: radial-gradient(circle at 0% 0%, rgba(225, 29, 72, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 100% 100%, rgba(244, 63, 94, 0.05) 0%, transparent 50%);
}

.glass {
    background: var(--bg-white);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Stats Card */
.stat-card {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    font-size: 0.875rem;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-accent { background: var(--accent); color: white; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--text-muted); }
.form-input {
    width: 100%;
    padding: 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
}
.form-input:focus { 
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

/* Navigation & Layout */
.top-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.4rem 0.6rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(225, 29, 72, 0.05);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(225, 29, 72, 0.08);
}

.nav-right {
    display: flex;
    align-items: center;
}

.logout-link {
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.logout-link:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 24px;
    width: auto;
}

/* Driver Mobile Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    flex: 1;
}

.bottom-nav a svg { width: 20px; height: 20px; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active svg { stroke: var(--primary); }

.main-content.has-bottom-nav { padding-bottom: 90px; }

/* Report Cards */
.card-report {
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-label { font-size: 0.875rem; color: var(--text-muted); }
.report-value { font-size: 1.25rem; font-weight: 700; }

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-unpaid { background: rgba(225, 29, 72, 0.1); color: var(--primary); }
.badge-paid { background: rgba(16, 185, 129, 0.1); color: #059669; }

/* Responsive Utilities */
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    .container {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .table-container {
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    h1 { font-size: 1.5rem !important; }
    p { font-size: 0.875rem !important; }
    
    .glass {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container { flex-direction: column; height: auto; padding: 1rem; gap: 1rem; }
    .nav-links { margin-left: 0; width: 100%; justify-content: center; flex-wrap: wrap; }
    .nav-right { margin-left: 0; width: 100%; display: flex; justify-content: center; }
}