:root {
    --primary: #4f46e5;
    --sidebar-width: 250px;
}

body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 20px 0;
    z-index: 1000;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.sidebar-header h4 {
    color: #fff;
    margin: 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid var(--primary);
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
}

.credits-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    color: #fff;
}

.credits-box small {
    opacity: 0.7;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.top-bar h2 {
    margin: 0;
    color: #1e293b;
}

/* Cards */
.stat-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.stat-card .icon.blue { background: #dbeafe; color: #2563eb; }
.stat-card .icon.green { background: #d1fae5; color: #059669; }
.stat-card .icon.yellow { background: #fef3c7; color: #d97706; }
.stat-card .icon.purple { background: #ede9fe; color: #7c3aed; }

.stat-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
}

.stat-card p {
    margin: 5px 0 0;
    color: #64748b;
}

/* Tables */
.table-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table-card .table {
    margin: 0;
}

.table thead th {
    border-top: none;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

/* Badges */
.badge-active { background: #d1fae5; color: #059669; }
.badge-inactive { background: #fee2e2; color: #dc2626; }
.badge-pending { background: #fef3c7; color: #d97706; }

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.login-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e293b;
}

.login-box .form-control {
    padding: 12px 15px;
    border-radius: 10px;
}

.login-box .btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: var(--primary);
    border: none;
}

.login-box .btn-primary:hover {
    background: #4338ca;
}