/* Custom Style Lembaga Pendidikan */

/* Transisi Halus */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Kustomisasi Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Utilitas Dropdown Hover pada Desktop */
@media (min-width: 768px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Garis Batas Header Lengket */
.sticky-header-border {
    border-bottom: 3px solid #f59e0b;
}

/* Animasi tab aktif */
#tabPtk, #tabSiswa {
    position: relative;
    transition: all 0.3s ease;
}

#tabPtk:hover, #tabSiswa:hover {
    background-color: #f3f4f6;
}

/* Animasi form switch */
.login-form {
    animation: fadeIn 0.3s ease;
}

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

/* ============================================
   SMP CANDI - ADMIN STYLE
   ============================================ */

/* Global Font */
body {
    font-family: 'Inter', sans-serif;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    min-height: 100vh;
    width: 260px;
    background: linear-gradient(180deg, #1e3a5f 0%, #152a4a 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar .logo {
    padding: 24px 20px;
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    gap: 12px;
    font-size: 0.95rem;
}

.sidebar nav a:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.sidebar nav a.active {
    background: rgba(255,255,255,0.12);
    color: white;
    border-left-color: #fbbf24;
}

.sidebar nav a .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: 260px;
    flex: 1;
    background: #f8fafc;
    min-height: 100vh;
}

/* Header */
.header-top {
    background: white;
    padding: 16px 32px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================
   STATISTIK CARDS
   ============================================ */
.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stat-card .icon-bg {
    position: absolute;
    right: -10px;
    bottom: -10px;
    opacity: 0.1;
    font-size: 6rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
    overflow-x: auto;
    padding: 0;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

table.data-table thead {
    background: #f1f5f9;
}

table.data-table th {
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    color: #475569;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

table.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

table.data-table tbody tr:hover {
    background: #f8fafc;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 4px;
}

.badge-admin { background: #fef3c7; color: #92400e; }
.badge-guru { background: #dbeafe; color: #1e40af; }
.badge-siswa { background: #d1fae5; color: #065f46; }
.badge-ptk { background: #e0e7ff; color: #4338ca; }

/* ============================================
   CONTENT CARDS
   ============================================ */
.content-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .header-top {
        padding: 12px 16px;
    }
    .stat-number { font-size: 1.8rem; }
}