@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: rgba(139, 92, 246, 0.1);
    --secondary: #10b981;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --sidebar-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

body {
    background: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* Glassmorphism effects */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    padding: 24px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    padding: 0 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sidebar-brand i {
    color: var(--primary);
    margin-right: 12px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-left: 4px solid transparent;
    margin-bottom: 4px;
}

.sidebar-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-main);
    background: var(--primary-light);
    border-left-color: var(--primary);
}

.content {
    margin-left: 260px;
    padding: 40px;
    max-width: 1400px;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.stat-card {
    padding: 24px;
    height: 100%;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.table-glass {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-glass th {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    font-weight: 600;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.table-glass td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-glass tr:last-child td {
    border-bottom: none;
}

.btn-modern {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: none;
}

.btn-primary-modern {
    background: var(--primary);
    color: white;
}

.btn-primary-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.badge-modern {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

.form-control-modern {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    padding: 12px 16px;
    transition: all 0.2s;
}

.form-control-modern:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    color: white;
    outline: none;
}

.form-control-modern::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.form-text {
    color: var(--text-muted) !important;
}

.mobile-header {
    display: none;
    background: var(--sidebar-bg);
    padding: 15px 24px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
}

.hamburger-toggle {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.mobile-brand i {
    color: var(--primary);
    margin-right: 10px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
}

@media (max-width: 1024px) {
    .sidebar { left: -260px; }
    .content { margin-left: 0; padding: 24px; }
    .sidebar.open { left: 0; }
    .sidebar.open + .sidebar-overlay { display: block; }
    .mobile-header { display: flex; }
}
