:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --sidebar-bg: #1e293b;
    --bg-light: #f3f4f6;
    --text-main: #1f2937;
    --white: #ffffff;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    display: flex;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    height: 100vh;
    color: white;
    position: fixed;
}

.sidebar-brand {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #334155;
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav li a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.sidebar-nav li:hover a, .sidebar-nav li.active a {
    background: #334155;
    color: white;
}

.logout-link { margin-top: 50px; }
.logout-link a { color: #f87171 !important; }

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
}

.top-header {
    background: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.avatar { width: 35px; border-radius: 50%; margin-left: 10px; }

.container { padding: 30px; }

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

input {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Stats */
.stats-grid { display: flex; gap: 20px; margin-bottom: 30px; }
.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}
.stat-card i { font-size: 30px; color: var(--primary); }

/* Table */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; background: #f9fafb; padding: 15px; border-bottom: 2px solid #edf2f7; }
td { padding: 15px; border-bottom: 1px solid #edf2f7; }

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}
.active { background: #dcfce7; color: #166534; }
.blocked { background: #fee2e2; color: #991b1b; }
