:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-bg: #1a1d20;
    --card-bg: #ffffff;
    --accent-color: #00d2ff;
    --sidebar-width: 260px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

/* Login Page Styling */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.login-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(118, 75, 162, 0.15);
    border-color: #764ba2;
}

.btn-primary {
    background-color: #764ba2;
    border-color: #764ba2;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #667eea;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 75, 162, 0.3);
}

/* Glassmorphism effects */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Sidebar Styling */
.sidebar {
    height: 100vh;
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    background: #212529;
    color: white;
    padding-top: 20px;
    transition: all 0.3s;
    z-index: 1050;
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    margin: 4px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    transition: all 0.3s;
    min-height: 100vh;
}

.mobile-navbar {
    display: none;
    background: white;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1040;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .sidebar.show {
        left: 0;
    }
    .mobile-navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1045;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 576px) {
    .login-card {
        padding: 25px;
        margin: 15px;
    }
    .main-content {
        padding: 15px;
    }
    .h3 {
        font-size: 1.5rem;
    }
}

/* Tables */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.table-responsive {
    border-radius: 15px;
}


/* QR Reader Styling */
#reader {
    border: none !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#reader__dashboard_section_csr button {
    background: var(--primary-color) !important;
    border: none !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}
