/* ==================== CSS VARIABLES ==================== */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --bg-input: #0f172a;
    --bg-hover: #334155;
    --bg-modal: #1e293b;
    --bg-sidebar: #0f172a;
    --bg-header: #1e293b;
    --bg-stat: #1e293b;
    --bg-table-header: #0f172a;
    --bg-table-row: transparent;
    --bg-table-row-hover: #334155;
    --bg-welcome: #1e293b;
    --bg-room: #1e293b;
    --bg-room-hover: #2d3748;
    --bg-activity: #0f172a;
    --bg-activity-hover: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-inverse: #0f172a;
    
    --border-primary: #334155;
    --border-secondary: #475569;
    
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    --toast-bg: #1e293b;
    --toast-border: #334155;
    
    --scrollbar-track: #0f172a;
    --scrollbar-thumb: #3b82f6;
    
    --gradient-primary: linear-gradient(135deg, #3b82f6, #1e3a5f);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-purple: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --gradient-pink: linear-gradient(135deg, #ec4899, #db2777);
    --gradient-info: linear-gradient(135deg, #06b6d4, #0891b2);
    
    --btn-theme-bg: rgba(255, 255, 255, 0.1);
    --btn-theme-color: #f1f5f9;
    --btn-theme-hover: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] {
    --bg-primary: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --bg-hover: #e2e8f0;
    --bg-modal: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;
    --bg-stat: #f8fafc;
    --bg-table-header: #f1f5f9;
    --bg-table-row-hover: #f1f5f9;
    --bg-welcome: #ffffff;
    --bg-room: #ffffff;
    --bg-room-hover: #f1f5f9;
    --bg-activity: #f8fafc;
    --bg-activity-hover: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --text-inverse: #f1f5f9;
    
    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e1;
    
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    --toast-bg: #ffffff;
    --toast-border: #e2e8f0;
    
    --scrollbar-track: #f1f5f9;
    --scrollbar-thumb: #94a3b8;
    
    --btn-theme-bg: rgba(0, 0, 0, 0.05);
    --btn-theme-color: #0f172a;
    --btn-theme-hover: rgba(0, 0, 0, 0.1);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Quicksand', 'Patrick Hand', cursive, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    width: 280px;
    background: var(--bg-sidebar);
    color: var(--text-primary);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    transition: all 0.3s;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border-primary);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-text h1 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-text p {
    font-size: 9px;
    opacity: 0.6;
    color: var(--text-muted);
}

.sidebar-close {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
}

.sidebar-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.profile {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-primary);
}

.avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

.profile-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.role-badge {
    font-size: 9px;
    background: rgba(59, 130, 246, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 4px;
    color: #60a5fa;
}

/* ==================== NAVIGATION ==================== */
.nav-menu {
    padding: 12px 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-group {
    margin-bottom: 4px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 600;
}

.nav-group-header:hover {
    background: var(--btn-theme-hover);
    color: var(--text-primary);
}

.nav-group-header i:first-child {
    width: 20px;
    font-size: 16px;
}

.nav-group-header i:last-child {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-group-header.collapsed i:last-child {
    transform: rotate(-90deg);
}

.nav-group-items {
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    padding-left: 12px;
}

.nav-group-items.hidden {
    max-height: 0;
    opacity: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 28px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.2s;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
}

.nav-item i:first-child {
    width: 18px;
    font-size: 14px;
}

.nav-item span {
    flex: 1;
}

.nav-item:hover {
    background: var(--btn-theme-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), transparent);
    color: #60a5fa;
    border-left: 3px solid #3b82f6;
}

.nav-item.sub-item {
    padding-left: 44px;
    font-size: 12px;
}

.nav-item.sub-item i:first-child {
    font-size: 12px;
    width: 16px;
}

/* ==================== SIDEBAR FOOTER ==================== */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-primary);
    margin-top: auto;
    text-align: center;
}

.system-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.system-status i {
    font-size: 8px;
    color: #10b981;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    padding: 8px 16px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.4);
}

.sidebar-footer p {
    font-size: 9px;
    opacity: 0.4;
    color: var(--text-muted);
}

/* ==================== THEME TOGGLE BUTTONS ==================== */
.btn-theme-toggle,
.btn-theme-toggle-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--btn-theme-bg);
    color: var(--btn-theme-color);
    border: 1px solid var(--border-primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 8px;
}

.btn-theme-toggle:hover,
.btn-theme-toggle-header:hover {
    background: var(--btn-theme-hover);
    transform: translateY(-1px);
}

.btn-theme-toggle-header {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.btn-theme-toggle-header i {
    transition: transform 0.5s ease;
}

.btn-theme-toggle-header:hover i {
    transform: rotate(360deg);
}

/* ==================== MAIN CONTENT ==================== */
.main {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: var(--bg-primary);
    transition: background 0.3s ease;
}

.header {
    background: var(--bg-header);
    padding: 0 28px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 99;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: var(--btn-theme-hover);
}

.title-section h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.title-section p {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.notification-icon {
    position: relative;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.notification-icon:hover {
    background: var(--btn-theme-hover);
    color: #60a5fa;
}

.notif-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    display: none;
    border: 2px solid var(--bg-header);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ==================== PAGES ==================== */
.pages-container {
    padding: 28px 32px;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== WELCOME BANNER ==================== */
.welcome-banner {
    background: var(--bg-welcome);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.1), transparent 70%);
    pointer-events: none;
}

.welcome-text {
    flex: 1;
    z-index: 1;
}

.greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.greeting i {
    font-size: 32px;
    color: #fbbf24;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.greeting h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.user-name {
    color: var(--text-primary);
}

.welcome-message {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.motivation-quote {
    background: rgba(59, 130, 246, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.motivation-quote i {
    color: #3b82f6;
    font-size: 14px;
    opacity: 0.7;
}

.motivation-quote i:first-child {
    align-self: flex-start;
}

.motivation-quote i:last-child {
    align-self: flex-end;
}

.motivation-quote span {
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    flex: 1;
    text-align: center;
}

.welcome-illustration {
    background: linear-gradient(135deg, #1e3a5f, var(--bg-primary));
    width: 100px;
    height: 100px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-primary);
}

.welcome-illustration i {
    font-size: 50px;
    color: #3b82f6;
}

/* ==================== STATS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-stat);
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s;
    border: 1px solid var(--border-primary);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-secondary);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card.primary .stat-icon { 
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6; 
}

.stat-card.success .stat-icon { 
    background: rgba(16, 185, 129, 0.2);
    color: #10b981; 
}

.stat-card.warning .stat-icon { 
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b; 
}

.stat-card.info .stat-icon { 
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4; 
}

.stat-card.purple .stat-icon { 
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6; 
}

.stat-card.coral .stat-icon { 
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444; 
}

.stat-card.pink .stat-icon { 
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899; 
}

.stat-card.green .stat-icon { 
    background: rgba(16, 185, 129, 0.2);
    color: #10b981; 
}

.stat-card.yellow .stat-icon { 
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b; 
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-info p {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-trend {
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 2px;
}

.stat-trend.up {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* ==================== CARDS ==================== */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    margin-bottom: 24px;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: #3b82f6;
}

.header-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-body {
    padding: 20px 24px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ==================== TABLES ==================== */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-table-header);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.data-table tr:hover {
    background: var(--bg-table-row-hover);
}

/* ==================== BUTTONS ==================== */
.btn-add {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-edit {
    background: var(--bg-input);
    color: #3b82f6;
    border: 1px solid #3b82f6;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-edit:hover {
    background: #3b82f6;
    color: white;
}

.btn-delete {
    background: var(--bg-input);
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-delete:hover {
    background: #ef4444;
    color: white;
}

.btn-delete-all {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-delete-all:hover {
    background: #dc2626;
}

.btn-wali {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--bg-input);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.btn-wali:hover {
    background: #f59e0b;
    color: var(--text-inverse);
}

.btn-batal-wali {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--bg-input);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.btn-batal-wali:hover {
    background: #ef4444;
    color: white;
}

.btn-siswa {
    background: var(--bg-input);
    color: #10b981;
    border: 1px solid #10b981;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-siswa:hover {
    background: #10b981;
    color: white;
}

.btn-add-siswa {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--bg-input);
    color: #8b5cf6;
    border: 1px solid #8b5cf6;
}

.btn-add-siswa:hover {
    background: #8b5cf6;
    color: white;
}

.btn-cancel {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.btn-cancel:hover {
    background: var(--border-secondary);
}

.btn-save {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-room-delete {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.btn-room-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.05);
}

.btn-view {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view:hover {
    background: #d97706;
}

/* ==================== BADGES ==================== */
.badge-wali {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    white-space: nowrap;
}

.badge-wali i {
    margin-right: 4px;
    font-size: 9px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.status-badge.good {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.proses {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.selesai {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.ditolak {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.published {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.draft {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.sekolah {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.status-badge.empty {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* ==================== PRESTASI BADGES ==================== */
.kategori-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.kategori-badge.siswa {
    background: #1e3a5f;
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.kategori-badge.guru {
    background: #064e3b;
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.kategori-badge.sekolah {
    background: #312e81;
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tingkat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.tingkat-badge.sekolah { background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border-primary); }
.tingkat-badge.kecamatan { background: #064e3b; color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.tingkat-badge.kota { background: #1e3a5f; color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.tingkat-badge.provinsi { background: #312e81; color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }
.tingkat-badge.nasional { background: #78350f; color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.tingkat-badge.internasional { background: #7f1d1d; color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ==================== FILTERS ==================== */
.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
    background: var(--bg-input);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* ==================== ROOMS GRID ==================== */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.room-card {
    background: var(--bg-room);
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    padding: 20px 18px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.room-card:hover {
    transform: translateY(-6px);
    border-color: #3b82f6;
    box-shadow: var(--shadow-card);
}

.room-card:hover::before {
    opacity: 1;
}

.room-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.room-card-header i {
    color: #3b82f6;
    font-size: 22px;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.room-card-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.room-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.room-stats span {
    background: var(--bg-input);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border-primary);
}

.room-stats span i {
    font-size: 10px;
}

.room-stats .good {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.room-stats .bad {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.room-value {
    color: var(--text-muted);
    font-size: 12px;
    padding: 6px 0 4px;
    border-top: 1px solid var(--border-primary);
    margin-top: 4px;
}

.room-value i {
    color: #06b6d4;
    margin-right: 6px;
}

.room-value strong {
    color: var(--text-primary);
    font-weight: 600;
}

.room-card-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #3b82f6;
    gap: 8px;
}

.room-card-footer .view-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.room-card:hover .room-card-footer .view-detail {
    opacity: 1;
}

.room-card-footer .view-detail i {
    transition: transform 0.3s ease;
    font-size: 11px;
}

.room-card:hover .room-card-footer .view-detail i {
    transform: translateX(5px);
}

/* ==================== AKADEMIK STYLES ==================== */
.akademik-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.akademik-class-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-primary);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.akademik-class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s;
}

.akademik-class-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
    box-shadow: var(--shadow-card);
}

.akademik-class-card:hover::before {
    opacity: 1;
}

.akademik-class-card .class-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.akademik-class-card .class-header h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.akademik-class-card .class-badge {
    background: var(--bg-input);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-muted);
    border: 1px solid var(--border-primary);
}

.akademik-class-card .class-info {
    color: var(--text-muted);
    font-size: 13px;
    margin: 4px 0 12px;
}

.akademik-class-card .class-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.akademik-class-card .class-actions button {
    padding: 6px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.akademik-class-card .class-actions button:hover {
    transform: translateY(-2px);
}

.class-btn-add-siswa {
    background: #10b981;
    color: white;
}

.class-btn-add-siswa:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.class-btn-delete {
    background: #ef4444;
    color: white;
}

.class-btn-delete:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.class-btn-detail {
    background: #3b82f6;
    color: white;
}

.class-btn-detail:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ==================== AKADEMIK DETAIL ==================== */
.akademik-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.akademik-detail-stats .stat-box {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-primary);
}

.akademik-detail-stats .stat-box h3 {
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    margin: 0;
}

.akademik-detail-stats .stat-box p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 4px 0 0;
}

.akademik-student-item {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s;
}

.akademik-student-item:hover {
    border-color: #3b82f6;
}

.akademik-student-item .student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.akademik-student-item .student-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.2s;
}

.akademik-student-item .student-name:hover {
    color: #3b82f6;
}

.akademik-student-item .student-nisn {
    color: var(--text-muted);
    font-size: 12px;
}

.akademik-student-item .student-info {
    color: var(--text-muted);
    font-size: 13px;
}

.akademik-student-item .student-reports {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.akademik-student-item .report-tag {
    background: var(--bg-card);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid var(--border-primary);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.akademik-student-item .report-tag.has-raport {
    border-color: #3b82f6;
    color: #3b82f6;
}

.akademik-student-item .report-tag.has-ijazah {
    border-color: #f59e0b;
    color: #f59e0b;
}

.student-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.student-actions button {
    padding: 4px 12px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.student-actions button:hover {
    transform: translateY(-2px);
}

.student-btn-detail {
    background: #3b82f6;
    color: white;
}

.student-btn-delete {
    background: #ef4444;
    color: white;
}

.student-btn-report {
    background: #8b5cf6;
    color: white;
}

/* ==================== AKADEMIK PROFILE ==================== */
.akademik-siswa-profile {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    background: var(--bg-input);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    margin-bottom: 24px;
}

.akademik-siswa-profile .avatar {
    font-size: 64px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    border: 2px solid #3b82f6;
}

.akademik-siswa-profile .profile-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.akademik-siswa-profile .profile-info p {
    color: var(--text-muted);
    margin: 4px 0;
    font-size: 14px;
}

.akademik-siswa-profile .profile-info .info-label {
    font-weight: 600;
    color: var(--text-dim);
}

/* ==================== AKADEMIK REPORTS ==================== */
.akademik-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.akademik-report-card {
    background: var(--bg-input);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s;
}

.akademik-report-card:hover {
    border-color: #3b82f6;
}

.akademik-report-card .report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.akademik-report-card h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.akademik-report-card .report-badge {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.akademik-report-card .report-badge.raport {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.akademik-report-card .report-badge.ijazah {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.akademik-report-card .report-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.akademik-report-card .report-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    background: #3b82f6;
}

.akademik-report-card .report-links a:hover {
    transform: translateY(-2px);
}

.akademik-report-card .report-links a.ijazah-link {
    background: #f59e0b;
}

.btn-delete-report {
    background: #ef4444;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

.btn-delete-report:hover {
    background: #dc2626;
}

/* ==================== BACK BUTTON ==================== */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-back:hover {
    background: var(--bg-hover);
    transform: translateX(-2px);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-primary);
    flex-wrap: wrap;
}

.pagination button {
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-size: 12px;
}

.pagination button:hover:not(:disabled) {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.pagination button.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .page-info {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== TOAST ==================== */
#toastContainer {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 500px;
    pointer-events: none;
}

.toast-notification {
    background: var(--toast-bg);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-modal);
    border: 1px solid var(--toast-border);
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-notification.success {
    background: linear-gradient(135deg, #065f46, #047857);
    border-color: #10b981;
    color: white;
}

.toast-notification.error {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    border-color: #ef4444;
    color: white;
}

.toast-notification .toast-icon {
    font-size: 20px;
}

/* ==================== USER ROLE BADGE ENHANCED ==================== */
.role-badge-admin {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.role-badge-guru {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.role-badge-siswa {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.role-badge-viewer {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.password-dots {
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.show-password-btn {
    background: transparent;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.2s;
}

.show-password-btn:hover {
    background: rgba(59, 130, 246, 0.15);
}

/* Animasi untuk field tambahan NUPTK/NIS */
#userNuptkGroup, #userNisGroup {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== LIST ITEMS ==================== */
.guru-stats-item,
.kelas-stats-item,
.aset-stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
}

.guru-stats-item .guru-name,
.kelas-stats-item .kelas-name,
.aset-stats-item .aset-name {
    font-weight: 600;
    color: var(--text-secondary);
}

.guru-stats-item .guru-count,
.kelas-stats-item .kelas-count,
.aset-stats-item .aset-count {
    background: #3b82f6;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-input);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    flex-shrink: 0;
}

.activity-icon.purple { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.activity-icon.orange { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.activity-icon.pink { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.activity-icon.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.activity-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.activity-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.activity-time {
    font-size: 10px;
    color: var(--text-dim);
    margin-left: auto;
    flex-shrink: 0;
}

/* ==================== SISWA LIST ==================== */
.siswa-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-primary);
    transition: background 0.2s;
}

.siswa-item:hover {
    background: var(--bg-input);
    border-radius: 8px;
}

.siswa-item .siswa-nama {
    color: var(--text-secondary);
    font-weight: 500;
    flex: 1;
}

.siswa-item .siswa-nis {
    color: var(--text-muted);
    font-size: 12px;
}

.siswa-item .siswa-number {
    color: var(--text-dim);
    font-size: 12px;
    min-width: 30px;
}

.siswa-item .siswa-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-modal);
    margin: 3% auto;
    width: 90%;
    max-width: 700px;
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 18px;
}

.modal-close {
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    line-height: 1;
    background: none;
    border: none;
}

.modal-close:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.modal-body {
    padding: 24px;
    max-height: 65vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

.modal-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 18px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-input option {
    background: var(--bg-modal);
    color: var(--text-secondary);
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.form-row .form-group {
    margin-bottom: 0;
}

textarea.form-input {
    resize: vertical;
    font-family: inherit;
}

.upload-area {
    border: 2px dashed var(--border-primary);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: var(--bg-input);
}

.upload-area i {
    font-size: 48px;
    color: #3b82f6;
    display: block;
    margin-bottom: 12px;
}

.upload-area label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.upload-area p {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 12px;
}

.upload-area input[type="file"] {
    display: block;
    margin: 0 auto;
    color: var(--text-secondary);
    background: var(--bg-input);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    width: 100%;
    max-width: 400px;
}

.info-box {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-input);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
}

.info-box h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 14px;
}

.info-box h4 i {
    color: #3b82f6;
    margin-right: 8px;
}

.info-box p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.8;
}

.raport-form {
    background: var(--bg-input);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

hr {
    border: none;
    border-top: 1px solid var(--border-primary);
    margin: 16px 0;
}

h4 {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
}

h4 i {
    margin-right: 8px;
    color: #3b82f6;
}

/* ==================== INFO SEKOLAH STYLES ==================== */
.berita-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.berita-admin-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.berita-admin-card:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
    box-shadow: var(--shadow-card);
}

.berita-admin-card .card-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.berita-admin-card .card-body {
    padding: 16px;
}

.berita-admin-card .card-body h4 {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.berita-admin-card .card-body .meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.berita-admin-card .card-body .meta i {
    margin-right: 4px;
}

.berita-admin-card .card-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.berita-admin-card .card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-primary);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.berita-admin-card .card-footer button {
    padding: 4px 14px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.berita-admin-card .card-footer .view-btn { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.berita-admin-card .card-footer .view-btn:hover { background: #3b82f6; color: white; }
.berita-admin-card .card-footer .edit-btn { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.berita-admin-card .card-footer .edit-btn:hover { background: #10b981; color: white; }
.berita-admin-card .card-footer .delete-btn { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.berita-admin-card .card-footer .delete-btn:hover { background: #ef4444; color: white; }

/* ==================== PRESTASI CARD GRID ==================== */
.prestasi-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.prestasi-admin-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.prestasi-admin-card:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
    box-shadow: var(--shadow-card);
}

.prestasi-admin-card .card-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

.prestasi-admin-card .card-body {
    padding: 16px;
}

.prestasi-admin-card .card-body h4 {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.prestasi-admin-card .card-body .badge-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.prestasi-admin-card .card-body p {
    font-size: 12px;
    color: var(--text-muted);
}

.prestasi-admin-card .card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-primary);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.prestasi-admin-card .card-footer button {
    padding: 4px 14px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.prestasi-admin-card .card-footer .view-btn { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.prestasi-admin-card .card-footer .view-btn:hover { background: #3b82f6; color: white; }
.prestasi-admin-card .card-footer .edit-btn { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.prestasi-admin-card .card-footer .edit-btn:hover { background: #10b981; color: white; }
.prestasi-admin-card .card-footer .delete-btn { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.prestasi-admin-card .card-footer .delete-btn:hover { background: #ef4444; color: white; }

/* ==================== GALERI ALBUM GRID ==================== */
.galeri-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.galeri-album-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.galeri-album-card:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
    box-shadow: var(--shadow-card);
}

.galeri-album-cover {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.galeri-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.galeri-album-card:hover .galeri-album-cover img {
    transform: scale(1.05);
}

.galeri-album-cover .album-count {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
}

.galeri-album-body {
    padding: 16px;
}

.galeri-album-body h4 {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.galeri-album-body p {
    font-size: 12px;
    color: var(--text-muted);
}

.galeri-album-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px;
    background: var(--bg-input);
}

.galeri-album-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.album-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-primary);
}

.album-actions button {
    flex: 1;
    padding: 6px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.album-actions .view-btn { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.album-actions .view-btn:hover { background: #3b82f6; color: white; }
.album-actions .edit-btn { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.album-actions .edit-btn:hover { background: #10b981; color: white; }
.album-actions .delete-btn { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.album-actions .delete-btn:hover { background: #ef4444; color: white; }

/* ==================== PROFIL ==================== */
#infoProfilGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

#infoProfilGrid .profil-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-primary);
}

#infoProfilGrid .profil-card.full-width {
    grid-column: span 2;
}

.profil-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.profil-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.profil-icon.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.profil-icon.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.profil-icon.purple { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.profil-icon.yellow { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.profil-icon.pink { background: rgba(236, 72, 153, 0.2); color: #ec4899; }

.profil-card-header h4 {
    flex: 1;
    font-weight: 700;
    color: var(--text-primary);
}

.struktur-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.struktur-card {
    text-align: center;
    padding: 16px;
    background: var(--bg-input);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    transition: all 0.3s;
}

.struktur-card:hover {
    border-color: #8b5cf6;
}

.struktur-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.struktur-card h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.struktur-card p {
    font-size: 11px;
    color: #8b5cf6;
}

.struktur-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 8px;
}

.struktur-actions button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s;
}

.struktur-actions .edit-btn { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.struktur-actions .delete-btn { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.akreditasi-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.akreditasi-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.akreditasi-letter {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

/* ==================== KONTAK ==================== */
#infoKontakGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#infoKontakGrid .kontak-info-card,
#infoKontakGrid .pesan-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-primary);
}

.kontak-info-card h4,
.pesan-card h4 {
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.kontak-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-input);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.kontak-item:hover {
    background: var(--bg-card);
}

.kontak-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kontak-icon.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.kontak-icon.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.kontak-icon.purple { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.kontak-icon.orange { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.kontak-item div {
    flex: 1;
}

.kontak-item p {
    font-size: 10px;
    color: var(--text-muted);
}

.kontak-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.edit-small {
    background: none;
    border: none;
    color: #8b5cf6;
    cursor: pointer;
    font-size: 14px;
}

.sosmed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.sosmed-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: 8px;
}

.sosmed-item i {
    font-size: 16px;
    color: #8b5cf6;
}

.sosmed-item span {
    flex: 1;
    font-size: 12px;
    color: var(--text-muted);
}

.pesan-item {
    padding: 12px;
    background: var(--bg-input);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.pesan-item:hover {
    background: var(--bg-card);
}

.pesan-item > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 4px;
}

.pesan-item strong {
    font-size: 13px;
    color: var(--text-primary);
}

.pesan-item small {
    font-size: 11px;
    color: var(--text-muted);
}

.badge-red, .badge-yellow, .badge-gray {
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-red { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.badge-yellow { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.badge-gray { background: rgba(148, 163, 184, 0.2); color: var(--text-muted); }

.pesan-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0;
}

.pesan-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.pesan-actions span {
    color: var(--text-muted);
}

.pesan-actions button {
    background: none;
    border: none;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
}

.pesan-actions button:first-child { color: #8b5cf6; }
.pesan-actions button:last-child { color: #ef4444; }

/* ==================== INFO FORM MODAL ==================== */
.richtext-editor {
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
}

.richtext-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border-primary);
    flex-wrap: wrap;
}

.richtext-toolbar button {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    color: var(--text-muted);
}

.richtext-toolbar button:hover {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-primary);
}

.richtext-content {
    padding: 12px;
    min-height: 120px;
    outline: none;
    line-height: 1.8;
    color: var(--text-secondary);
}

.richtext-content:empty::before {
    content: 'Tulis konten berita di sini...';
    color: var(--text-dim);
}

.file-preview-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.file-preview-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-primary);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .remove-file {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== SLIDER ADMIN ==================== */
.slider-preview-item {
    position: relative;
    background: var(--bg-input);
    border-radius: 12px;
    border: 1px solid var(--border-primary);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
}

.slider-preview-item:hover {
    border-color: #8b5cf6;
    transform: translateX(4px);
}

.slider-preview-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-primary);
    flex-shrink: 0;
}

.slider-preview-item .slider-info {
    flex: 1;
}

.slider-preview-item .slider-info h4 {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}

.slider-preview-item .slider-info p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 2px 0;
}

.slider-preview-item .slider-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
}

.slider-preview-item .slider-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.slider-preview-item .slider-status.inactive {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.slider-preview-item .slider-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.slider-preview-item .slider-actions button {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-preview-item .slider-actions .btn-edit-slide {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.slider-preview-item .slider-actions .btn-edit-slide:hover {
    background: #10b981;
    color: white;
}

.slider-preview-item .slider-actions .btn-delete-slide {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.slider-preview-item .slider-actions .btn-delete-slide:hover {
    background: #ef4444;
    color: white;
}

.slider-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.slider-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    color: #3b82f6;
}

/* ==================== PREVIEW SLIDER ==================== */
.slider-preview-container {
    position: relative;
    width: 100%;
    background: var(--bg-input);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    min-height: 200px;
}

.slider-preview-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.slider-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
}

.slider-preview-overlay h4 {
    color: white;
    margin: 0;
    font-size: 14px;
}

.slider-preview-overlay p {
    color: #94a3b8;
    margin: 4px 0 0;
    font-size: 12px;
}

.slider-preview-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #10b981;
}

/* ==================== INFO PROFIL ENHANCED ==================== */
#infoProfilSejarah .sejarah-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

#infoProfilSejarah .sejarah-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

#infoProfilSejarah .sejarah-image-wrapper:hover img {
    transform: scale(1.02);
}

#infoProfilSejarah .sejarah-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

#infoProfilSejarah .sejarah-image-wrapper:hover .sejarah-image-overlay {
    opacity: 1;
}

#infoProfilSejarah .sejarah-image-overlay button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #8b5cf6;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

/* ==================== KONTAK ENHANCED ==================== */
#infoKontakGrid .kontak-item .edit-small {
    background: none;
    border: none;
    color: #8b5cf6;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s;
}

#infoKontakGrid .kontak-item .edit-small:hover {
    background: rgba(139, 92, 246, 0.2);
}

/* ==================== PSB STYLES ==================== */
.psb-header {
    background: linear-gradient(135deg, #f8ede6, #f5e6d3);
    border-radius: 20px;
    padding: 24px 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid #f0ddd0;
}

.psb-header .mascot {
    font-size: 64px;
    background: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.psb-header .psb-title {
    color: #4a2c1f;
    margin: 0;
    font-size: 24px;
}

.psb-header .psb-title i {
    color: #f0936d;
}

.psb-header .psb-subtitle {
    color: #8b6b5a;
    margin: 4px 0 0;
    font-size: 14px;
}

.psb-header .psb-stars {
    color: #f9ca24;
    font-size: 14px;
    margin-top: 4px;
}

.psb-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.psb-stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px 24px;
    border: 1px solid var(--border-primary);
    text-align: center;
    min-width: 100px;
    flex: 1;
}

.psb-stat-card .number {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.psb-stat-card .number.blue { color: #3b82f6; }
.psb-stat-card .number.yellow { color: #f59e0b; }
.psb-stat-card .number.green { color: #10b981; }
.psb-stat-card .number.purple { color: #8b5cf6; }

.psb-stat-card .label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.psb-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.psb-status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.psb-status-badge.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.psb-status-badge.approved {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.psb-status-badge.rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.psb-status-badge.interview {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.psb-btn-action {
    padding: 4px 10px;
    border: none;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.psb-btn-action:hover {
    transform: scale(1.05);
}

.psb-btn-view {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.psb-btn-view:hover {
    background: #3b82f6;
    color: white;
}

.psb-btn-wa {
    background: rgba(37, 211, 102, 0.2);
    color: #25D366;
}

.psb-btn-wa:hover {
    background: #25D366;
    color: white;
}

.psb-btn-interview {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.psb-btn-interview:hover {
    background: #8b5cf6;
    color: white;
}

.psb-btn-reject {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.psb-btn-reject:hover {
    background: #ef4444;
    color: white;
}

.psb-modal-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem 1.5rem;
}

.psb-modal-detail .full {
    grid-column: 1 / -1;
}

.psb-modal-detail .label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.psb-modal-detail .value {
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
}

.psb-modal-detail .file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.psb-file-link {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.psb-file-link:hover {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
}

.psb-file-preview-container {
    background: var(--bg-input);
    border-radius: 16px;
    padding: 1rem;
    margin: 0.5rem 0;
    border: 1px solid var(--border-primary);
}

.psb-file-preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    border: 1px solid var(--border-primary);
}

.psb-file-preview-info {
    background: var(--bg-input);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    border: 1px solid var(--border-primary);
}

.psb-file-preview-info p {
    margin: 4px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.psb-wa-preview {
    background: var(--bg-input);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 0.5rem 0 1rem;
    border: 1px solid var(--border-primary);
}

.psb-wa-preview .message {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid #25D366;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.psb-wa-preview .message .highlight {
    color: #25D366;
    font-weight: 700;
}

.psb-wa-preview .recipient {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-primary);
}

.psb-wa-preview .recipient i {
    color: #25D366;
}

.psb-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.psb-settings-card {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-primary);
}

.psb-settings-card h4 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.psb-settings-card .total-data {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}

.psb-btn-wa-full {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    width: 100%;
    justify-content: center;
}

.psb-btn-wa-full:hover {
    background: #1da85c;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.psb-btn-wa-full i {
    font-size: 1.2rem;
}

.psb-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.psb-empty-state i {
    font-size: 4rem;
    color: var(--border-primary);
    margin-bottom: 1rem;
    display: block;
}

.psb-empty-state h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.psb-empty-state a {
    color: #8b5cf6;
    text-decoration: underline;
}

/* ==================== PERPUSTAKAAN STYLES ==================== */

/* Stat Cards Perpustakaan */
.perpus-stat-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s;
    border: 1px solid var(--border-primary);
}

.perpus-stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-secondary);
}

.perpus-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.perpus-stat-icon.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.perpus-stat-icon.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.perpus-stat-icon.yellow { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.perpus-stat-icon.purple { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }

/* Status Badge Perpustakaan */
.perpus-status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}

.perpus-status-badge.dipinjam {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.perpus-status-badge.terlambat {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.perpus-status-badge.dikembalikan {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Action Buttons Perpustakaan */
.perpus-btn-action {
    padding: 4px 10px;
    border: none;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.perpus-btn-action:hover {
    transform: scale(1.05);
}

.perpus-btn-return {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.perpus-btn-return:hover {
    background: #3b82f6;
    color: white;
}

.perpus-btn-detail {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.perpus-btn-detail:hover {
    background: #8b5cf6;
    color: white;
}

.perpus-btn-notif {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.perpus-btn-notif:hover {
    background: #10b981;
    color: white;
}

/* Ranking List */
.perpus-ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-primary);
}

.perpus-ranking-item:last-child {
    border-bottom: none;
}

.perpus-ranking-item .rank {
    font-size: 20px;
    width: 40px;
    text-align: center;
}

.perpus-ranking-item .info {
    flex: 1;
}

.perpus-ranking-item .info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.perpus-ranking-item .info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.perpus-ranking-item .badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.perpus-ranking-item .badge.sangat-rajin {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.perpus-ranking-item .badge.rajin {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.perpus-ranking-item .badge.cukup {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Activity List */
.perpus-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-primary);
}

.perpus-activity-item:last-child {
    border-bottom: none;
}

.perpus-activity-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.perpus-activity-item .icon.blue { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.perpus-activity-item .icon.green { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.perpus-activity-item .icon.yellow { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.perpus-activity-item .icon.purple { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.perpus-activity-item .icon.red { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.perpus-activity-item .info {
    flex: 1;
}

.perpus-activity-item .info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.perpus-activity-item .info p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.perpus-activity-item .time {
    font-size: 10px;
    color: var(--text-dim);
    flex-shrink: 0;
}

/* Popular Books */
.perpus-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-primary);
}

.perpus-popular-item:last-child {
    border-bottom: none;
}

.perpus-popular-item .rank {
    background: var(--bg-input);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #3b82f6;
    border: 1px solid var(--border-primary);
}

.perpus-popular-item .info {
    flex: 1;
}

.perpus-popular-item .info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.perpus-popular-item .info p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.perpus-popular-item .count {
    font-size: 13px;
    font-weight: 600;
    color: #f59e0b;
}

/* ==================== NOTIFICATION BADGE ==================== */
.notif-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 12px;
    margin-left: 6px;
    min-width: 18px;
    text-align: center;
}

.notif-badge.blue {
    background: #3b82f6;
}

/* ==================== NOTIFICATION LIST ==================== */
.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-primary);
    transition: background 0.2s;
}

.notification-item:hover {
    background: var(--bg-input);
}

.notification-item .notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.notification-item .notif-icon.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.notification-item .notif-icon.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.notification-item .notif-icon.info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.notification-item .notif-icon.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.notification-item .notif-content {
    flex: 1;
}

.notification-item .notif-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.notification-item .notif-content p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.notification-item .notif-time {
    font-size: 10px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.notification-item.unread {
    border-left: 3px solid #3b82f6;
    background: var(--bg-input);
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-notif {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-notif.primary {
    background: #3b82f6;
    color: white;
}

.btn-notif.primary:hover {
    background: #2563eb;
}

.btn-notif.success {
    background: #10b981;
    color: white;
}

.btn-notif.success:hover {
    background: #059669;
}

.btn-notif.danger {
    background: #ef4444;
    color: white;
}

.btn-notif.danger:hover {
    background: #dc2626;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .rooms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    #infoProfilGrid {
        grid-template-columns: 1fr;
    }
    #infoProfilGrid .profil-card.full-width {
        grid-column: span 1;
    }
    .struktur-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #infoKontakGrid {
        grid-template-columns: 1fr;
    }
    .sosmed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .psb-settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
    .sidebar-close {
        display: block;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .welcome-banner {
        flex-direction: column;
        text-align: center;
    }
    .greeting {
        justify-content: center;
    }
    .motivation-quote {
        justify-content: center;
    }
    .welcome-illustration {
        margin-top: 20px;
    }
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .akademik-class-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .berita-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .prestasi-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .galeri-album-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .psb-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .psb-header .mascot {
        width: 60px;
        height: 60px;
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .pages-container {
        padding: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form-group {
        margin-bottom: 18px;
    }
    .welcome-banner {
        padding: 20px;
    }
    .greeting h2 {
        font-size: 18px;
    }
    .motivation-quote span {
        font-size: 11px;
    }
    .filter-bar {
        flex-direction: column;
    }
    .filter-select {
        width: 100%;
    }
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    .room-card-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
    .akademik-class-grid {
        grid-template-columns: 1fr;
    }
    .akademik-siswa-profile {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .akademik-siswa-profile .avatar {
        margin: 0 auto;
    }
    .akademik-reports-grid {
        grid-template-columns: 1fr;
    }
    .akademik-detail-stats {
        grid-template-columns: 1fr 1fr;
    }
    .berita-card-grid {
        grid-template-columns: 1fr;
    }
    .prestasi-card-grid {
        grid-template-columns: 1fr;
    }
    .galeri-album-grid {
        grid-template-columns: 1fr;
    }
    .struktur-grid {
        grid-template-columns: 1fr;
    }
    .sosmed-grid {
        grid-template-columns: 1fr;
    }
    #infoKontakGrid {
        grid-template-columns: 1fr;
    }
    #infoProfilSejarah {
        grid-template-columns: 1fr !important;
    }
    .slider-preview-item {
        flex-direction: column;
        align-items: stretch;
    }
    .slider-preview-item img {
        width: 100%;
        height: 120px;
    }
    .slider-preview-item .slider-actions {
        justify-content: flex-end;
    }
    .psb-stats {
        flex-direction: column;
    }
    .psb-stat-card {
        min-width: auto;
    }
    .psb-modal-detail {
        grid-template-columns: 1fr;
    }
    .psb-actions {
        flex-direction: column;
    }
    .psb-actions .btn-add {
        width: 100%;
        justify-content: center;
    }
    .psb-wa-preview {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .header-left {
        flex-direction: column;
        gap: 8px;
    }
    .title-section h1 {
        font-size: 16px;
    }
    .date-display {
        display: none;
    }
    .data-table th,
    .data-table td {
        padding: 6px 8px;
        font-size: 10px;
    }
    .action-group .btn-edit,
    .action-group .btn-delete,
    .action-group .btn-wali,
    .action-group .btn-batal-wali,
    .action-group .btn-add-siswa {
        font-size: 8px;
        padding: 2px 6px;
    }
    .card-header .header-buttons .btn-add {
        width: 100%;
        justify-content: center;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions .btn-add {
        width: 100%;
        justify-content: center;
    }
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    .akademik-detail-stats {
        grid-template-columns: 1fr;
    }
    .psb-header .psb-title {
        font-size: 18px;
    }
    .psb-stat-card .number {
        font-size: 20px;
    }
    .psb-file-preview-container img {
        max-height: 250px;
    }
    .btn-theme-toggle-header {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .header-right {
        gap: 10px;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* ==================== MODERN FORM UI (INFORMASI SEKOLAH) ==================== */
.form-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #3b82f6;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px dashed var(--border-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.input-with-icon input,
.input-with-icon select,
.input-with-icon textarea {
    padding-left: 40px !important;
}

.modern-dropzone {
    border: 2px dashed #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-dropzone:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #2563eb;
    transform: translateY(-2px);
}

.modern-dropzone i {
    font-size: 40px;
    color: #3b82f6;
    margin-bottom: 12px;
}

.modern-dropzone p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.modern-dropzone span {
    color: var(--text-muted);
    font-size: 12px;
}

.richtext-editor {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
    background: var(--bg-input);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.richtext-toolbar {
    background: var(--bg-card);
    padding: 10px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    gap: 8px;
}

.richtext-toolbar button {
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.richtext-toolbar button:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}