:root {
    --primary: #0f3460;
    --secondary: #16213e;
    --accent: #e94560;
    --bg-light: #f5f6fa;
    --card-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    --card-radius: 15px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.login-body {
    padding: 40px 30px;
}

.form-control {
    border-radius: 10px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 52, 96, 0.15);
}

/* Date input fields - handled by specific classes */

.btn-login {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 52, 96, 0.3);
}

.login-type-btn {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    background: white;
}

.login-type-btn:hover {
    border-color: var(--primary);
    background: #f8f9fa;
}

.login-type-btn.active {
    border-color: var(--primary);
    background: #e8f4fd;
}

.login-type-btn h5 {
    margin: 0;
    color: var(--primary);
}

.login-type-btn small {
    color: #6c757d;
}

.alert {
    border-radius: 10px;
}

/* Dashboard Styles */
.top-bar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chart-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.date-picker {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 8px 15px;
}

.date-picker:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-primary {
    background: var(--primary);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-filter {
    background: white;
    padding: 15px 20px;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: var(--primary);
    padding: 12px;
}

.table tbody td {
    padding: 12px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #f8f9fa;
}

.table-bold {
    background: #f0f0f0 !important;
    font-weight: 600;
}

.table-bold:hover {
    background: #e8e8e8 !important;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
.main-content {
    flex: 1;
    min-height: 100vh;
}
    
    .stat-card {
        margin-bottom: 15px;
    }
}
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-content {
        width: 100%;
        padding: 15px;
    }
    
    .top-bar {
        padding: 10px 15px;
    }
    
    .top-bar h4 {
        font-size: 1.1rem;
    }
    

    .chart-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .chart-card h5 {
        font-size: 1rem;
    }
    
    .stat-card {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
    }
    
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group > * {
        width: 100%;
        margin-bottom: 5px;
    }
}
