:root {
    --admin-sidebar-width: 280px;
    --admin-topbar-height: 80px;
    --admin-bg: #F8FAFC;
    --admin-sidebar-bg: #0F172A;
    --primary-gradient: linear-gradient(135deg, #0D8ABC 0%, #6366F1 100%);
    --accent-color: #38BDF8;
}

.admin-body {
    background-color: var(--admin-bg);
    min-height: 100vh;
    display: flex;
    color: #334155;
}

/* Sidebar Styling */
.admin-sidebar {
    width: var(--admin-sidebar-width);
    background-color: var(--admin-sidebar-bg);
    color: var(--white);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 1100;
    transition: var(--transition);
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-header i {
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    flex: 1;
    padding: 1rem;
    list-style: none;
    overflow-y: auto; /* Scroll hanya di bagian menu */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.menu-item {
    margin-bottom: 0.5rem;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 12px;
    font-weight: 500;
}

.menu-link i {
    font-size: 1.5rem;
    transition: var(--transition);
}

.menu-link:hover {
    color: var(--white);
    background-color: rgba(255,255,255,0.05);
}

.menu-link.active {
    color: var(--white);
    background: var(--primary-gradient);
    box-shadow: 0 10px 20px rgba(13, 138, 188, 0.3);
}

.menu-link.active i {
    color: var(--white);
}

/* Main Layout */
.admin-main {
    flex: 1;
    margin-left: var(--admin-sidebar-width);
    display: flex;
    flex-direction: column;
}

.admin-content {
    padding: 3rem 4rem;
    max-width: 1400px;
}

.section-header {
    margin-bottom: 2.5rem;
}

.admin-topbar {
    height: var(--admin-topbar-height);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.topbar-left h2 {
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Stats Card Premium */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: var(--white);
    padding: 1.75rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.05);
}

.stat-card-info h4 {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card-info .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

/* Hub Cards Premium */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.hub-card {
    background-color: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.hub-card:hover::before {
    opacity: 0.03;
}

.hub-card i {
    font-size: 3.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hub-card h3 {
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.hub-card p {
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Data Table Premium */
.data-table-container {
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.data-table-header {
    padding: 1.5rem 2rem;
    background-color: #FCFDFF;
    border-bottom: 1px solid #F1F5F9;
}

.schedule-table th {
    background-color: #F8FAFC;
    color: #64748B;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1.25rem 2rem;
}

.schedule-table td {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.95rem;
}

.schedule-table tr:hover td {
    background-color: #F8FAFC;
}

/* Status Badges Premium */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* View Switching Animation */
.admin-view {
    display: none;
    animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.admin-view.active {
    display: block;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 80px;
    }
    .admin-sidebar span, .sidebar-header h2 {
        display: none;
    }
    .admin-main {
        margin-left: 80px;
    }
    .menu-link {
        justify-content: center;
        padding: 1rem;
    }
}
