:root {
    --sidebar-width: 250px;
    --primary: #e50914;
    --dark: #0a0a0a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
}

.login-page {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: #1a1a2e;
    padding: 20px 0;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    border-right: 1px solid #2a2a3e;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #2a2a3e;
    margin-bottom: 20px;
}

.sidebar-header h5 {
    color: #fff;
    margin: 0;
}

.sidebar-header small {
    color: #888;
}

.sidebar .nav-link {
    color: #aaa;
    padding: 12px 24px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.3s;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link:hover {
    background: rgba(229, 9, 20, 0.1);
    color: #fff;
}

.sidebar .nav-link.active {
    background: #e50914;
    color: #fff;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    width: 100%;
    background: #f0f2f5;
    min-height: 100vh;
}

.top-bar {
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
}

.stat-icon.bg-primary { background: #3b82f6; }
.stat-icon.bg-danger { background: #ef4444; }
.stat-icon.bg-warning { background: #f59e0b; }
.stat-icon.bg-success { background: #22c55e; }

.stat-info h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-info p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0 !important;
}

.table {
    margin: 0;
}

.table th {
    font-weight: 600;
    color: #4b5563;
    border-bottom: 2px solid #e5e7eb;
}

.table td {
    vertical-align: middle;
}

.badge.bg-danger.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    .sidebar .nav-link span,
    .sidebar-header h5,
    .sidebar-header small {
        display: none;
    }
    .sidebar .nav-link {
        text-align: center;
        padding: 12px;
    }
    .sidebar .nav-link i {
        margin: 0;
        font-size: 1.2rem;
    }
    .main-content {
        margin-left: 60px;
        padding: 15px;
    }
}