:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f3f4f6;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
    color: white;
}

.btn-success { background-color: var(--success); color: white; border: none; }
.btn-danger { background-color: var(--danger); color: white; border: none; }
.btn-success:hover, .btn-danger:hover { opacity: 0.9; color: white; }

.form-control {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 2rem 1rem;
}

.sidebar a {
    color: #d1d5db;
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.sidebar a:hover, .sidebar a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-color);
}

.stat-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.stat-card h3 {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

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

table th, table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--text-muted);
}

.badge {
    padding: 0.25em 0.75em;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-pending { background-color: #fef3c7; color: #d97706; }
.badge-approved { background-color: #d1fae5; color: #059669; }
.badge-rejected { background-color: #fee2e2; color: #dc2626; }
.badge-active { background-color: #d1fae5; color: #059669; }
.badge-blocked { background-color: #fee2e2; color: #dc2626; }

.navbar {
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        padding: 1rem;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        position: relative;
    }
    .sidebar h3 {
        width: 100%;
        margin-bottom: 0.5rem !important;
    }
    .sidebar a {
        margin-bottom: 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        flex: 1 1 auto;
        text-align: center;
    }
    .sidebar hr {
        display: none;
    }
    .main-content {
        padding: 1rem;
    }
    .glass-card {
        padding: 1rem !important;
        overflow-x: auto; /* for tables to scroll horizontally on small screens */
    }
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }
}
