/* Admin Panel Dark Theme – Netflix Style */
* { margin:0; padding:0; box-sizing:border-box; }
body {
    background: #0a0a0a;
    color: #eee;
    font-family: 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #e50914; border-radius: 10px; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 250px;
    background: #111;
    border-right: 2px solid #e50914;
    padding: 30px 20px;
    overflow-y: auto;
    z-index: 100;
}
.sidebar .logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #e50914;
    margin-bottom: 40px;
}
.sidebar .logo i { margin-right: 10px; }
.sidebar .menu {
    list-style: none;
    padding: 0;
}
.sidebar .menu li {
    padding: 12px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}
.sidebar .menu li:hover,
.sidebar .menu li.active {
    background: #e50914;
    color: #fff;
}
.sidebar .menu li i { width: 20px; }
.sidebar .menu li a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 30px;
    min-height: 100vh;
}
.main-content .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}
.main-content .header h1 {
    font-size: 2rem;
    font-weight: 700;
}
.main-content .header .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.main-content .header .user-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Stat Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #e50914;
}
.stat-card .number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e50914;
}
.stat-card .label {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Table */
.table-dark {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}
.table-dark th {
    background: #111;
    border-bottom: 2px solid #e50914;
    color: #e50914;
}
.table-dark td, .table-dark th {
    border-color: #333;
    vertical-align: middle;
}
.btn-warning { background: #f0ad4e; border: none; }
.btn-danger { background: #d9534f; border: none; }
.btn-outline-danger { border-color: #e50914; color: #e50914; }
.btn-outline-danger:hover { background: #e50914; color: #fff; }
.btn-outline-light { border-color: #555; color: #ccc; }
.btn-outline-light:hover { background: #333; color: #fff; }

/* Form Upload */
.upload-box {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    max-width: 700px;
    margin: 0 auto;
}
.upload-box .form-control,
.upload-box .form-select {
    background: #0a0a0a;
    color: #fff;
    border: 1px solid #444;
}
.upload-box .form-control:focus,
.upload-box .form-select:focus {
    border-color: #e50914;
    box-shadow: none;
}
.upload-box .btn-danger {
    background: #e50914;
    border: none;
    padding: 12px;
}
.upload-box .btn-danger:hover { background: #b20710; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { width: 200px; padding: 20px 10px; }
    .main-content { margin-left: 200px; padding: 20px; }
    .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .sidebar { width: 60px; padding: 15px 5px; }
    .sidebar .logo { font-size: 1.2rem; }
    .sidebar .menu li span { display: none; }
    .main-content { margin-left: 60px; padding: 15px; }
    .stats { grid-template-columns: 1fr; }
}