:root {
    /* Blue-Yellow Theme */
    --primary: #3b82f6;
    /* Vibrant Blue */
    --primary-dark: #1d4ed8;
    /* Deep Blue */
    --secondary: #fbbf24;
    /* Golden Yellow */
    --secondary-dark: #f59e0b;
    /* Amber */
    --accent: #8b5cf6;
    /* Purple accent */

    /* Background & Surface */
    --bg-light: #f0f9ff;
    /* Light blue tint */
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.8);
    --sidebar-bg: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    /* Dark blue gradient */

    /* Text Colors */
    --text-primary: #1e3a8a;
    /* Dark blue */
    --text-secondary: #64748b;
    /* Slate gray */

    /* Status Colors */
    --success: #10b981;
    --error: #ef4444;

    --font-base: 20px;
}

@media (max-width: 768px) {
    :root {
        --font-base: 18px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: var(--font-base);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #dbeafe 0%, #fef3c7 100%);
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 30px -5px rgba(59, 130, 246, 0.1), 0 8px 16px -8px rgba(251, 191, 36, 0.1);
}

.container {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 640px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }
}

.btn {
    padding: 12px 24px;
    border-radius: 14px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 50%, #2563eb 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4), 0 4px 12px rgba(29, 78, 216, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.5), 0 6px 16px rgba(29, 78, 216, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
    color: #1e3a8a;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4), 0 4px 12px rgba(245, 158, 11, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(251, 191, 36, 0.5), 0 6px 16px rgba(245, 158, 11, 0.3);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e0f2fe;
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 16px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Tab navigation */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.tab-item {
    padding: 12px 24px;
    border-radius: 12px;
    background: white;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid #dbeafe;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.3s;
}

.tab-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Admin Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    color: white;
}

.sidebar h2 {
    color: white !important;
}

.sidebar p {
    color: rgba(255, 255, 255, 0.7);
}

.main-content {
    padding: 40px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(4px);
}

.nav-link.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e3a8a;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.nav-link i {
    font-size: 1.3rem;
}

.status-pill {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    color: var(--primary);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(59, 130, 246, 0.2);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(29, 78, 216, 0.1));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    text-align: left;
    color: var(--primary);
    font-weight: 700;
    padding: 16px;
    border-bottom: 3px solid #dbeafe;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

td {
    padding: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9;
}

tr:hover {
    background: rgba(59, 130, 246, 0.02);
}

tr:last-child td {
    border-bottom: none;
}

h1,
h2,
h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .glass {
        border-radius: 16px;
        padding: 15px !important;
    }

    .btn {
        width: 100%;
        padding: 14px;
    }
}