/* ================================ THEME SMAN 4 JEMBER - MODERN DASHBOARD ================================ */ :root { --primary-green: #2D7A47; --dark-green: #1B4D2E; --accent-yellow: #FFD700; --bg-light: #f8fafc; --white: #ffffff; --sidebar-width: 260px; --text-dark: #0f172a; --text-muted: #64748b; --border-soft: #e2e8f0; } * { box-sizing: border-box; } body { background-color: var(--bg-light); font-family: 'Figtree', sans-serif; margin: 0; overflow-x: hidden; color: var(--text-dark); } /* Layout Container */ .admin-wrapper { display: flex; min-height: 100vh; } /* Sidebar */ .sidebar-modern { width: var(--sidebar-width); background-color: var(--primary-green); color: var(--white); display: flex; flex-direction: column; position: fixed; height: 100vh; box-shadow: 4px 0 18px rgba(15, 23, 42, 0.12); z-index: 1000; } .sidebar-header { padding: 26px 20px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.12); flex-shrink: 0; } .sidebar-header img { width: 64px; height: auto; margin-bottom: 10px; } .sidebar-header h5, .sidebar-header h4, .sidebar-header p { color: var(--white); margin-bottom: 0; } /* Area Menu Scroll */ .sidebar-menu { padding: 18px 14px; flex-grow: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.28) transparent; } .sidebar-menu::-webkit-scrollbar { width: 6px; } .sidebar-menu::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, 0.28); border-radius: 10px; } .sidebar-menu::-webkit-scrollbar-track { background: transparent; } .menu-label { font-size: 11px; text-transform: uppercase; font-weight: 800; color: rgba(255, 255, 255, 0.58); margin: 20px 0 10px 10px; letter-spacing: 1px; } .nav-item { display: flex; align-items: center; padding: 12px 14px; color: rgba(255, 255, 255, 0.92); text-decoration: none; border-radius: 14px; margin-bottom: 6px; transition: all 0.25s ease; font-weight: 600; } .nav-item i { width: 25px; font-size: 17px; margin-right: 10px; text-align: center; } .nav-item:hover { background-color: rgba(255, 255, 255, 0.12); color: var(--accent-yellow); transform: translateX(3px); } .nav-item.active { background-color: var(--white); color: var(--primary-green); font-weight: 800; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); } .nav-item.active i { color: var(--primary-green); } /* Main Content Area */ .main-content { margin-left: var(--sidebar-width); flex-grow: 1; display: flex; flex-direction: column; min-width: 0; } /* Topbar */ .topbar { height: 72px; background: var(--white); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05); position: sticky; top: 0; z-index: 999; border-bottom: 1px solid #eef2f7; } .search-bar { background: #f1f5f9; border-radius: 14px; padding: 9px 15px; width: 350px; display: flex; align-items: center; border: 1px solid #e2e8f0; } .search-bar i { color: #94a3b8; } .search-bar input { border: none; background: transparent; margin-left: 10px; outline: none; width: 100%; font-size: 14px; color: var(--text-dark); } .search-bar input::placeholder { color: #94a3b8; } /* Area Isi Halaman */ .content-wrapper, .admin-content { padding: 30px; } /* Stats Cards */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding: 30px; } .stat-card { background: var(--white); padding: 25px; border-radius: 22px; box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06); display: flex; align-items: center; justify-content: space-between; border: 1px solid #eef2f7; transition: 0.25s ease; } .stat-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08); } .stat-info h3 { margin: 0; font-size: 30px; font-weight: 900; color: #1e293b; letter-spacing: -0.5px; } .stat-info p { margin: 0 0 6px; color: #64748b; font-size: 14px; font-weight: 700; } .stat-icon { width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 24px; } .icon-siswa { background: #eef2ff; color: #4f46e5; } .icon-rekom { background: #ecfdf5; color: var(--primary-green); } .icon-akurasi { background: #faf5ff; color: #9333ea; } /* Dashboard Section */ .dashboard-section { margin: 30px; padding: 28px; background: var(--white); border-radius: 24px; border: 1px solid #eef2f7; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06); } /* Jika dashboard-section berada setelah stats-grid, jaraknya lebih rapi */ .stats-grid + .dashboard-section { margin-top: 0; } .chart-container { background: var(--white); border-radius: 20px; padding: 25px; border: 1px solid #f1f5f9; min-height: 400px; } /* Responsive */ @media (max-width: 992px) { :root { --sidebar-width: 240px; } .topbar { padding: 0 20px; } .search-bar { width: 260px; } .stats-grid { padding: 24px; gap: 18px; } .dashboard-section { margin: 24px; padding: 22px; } } @media (max-width: 768px) { .sidebar-modern { width: 230px; transform: translateX(-100%); } .main-content { margin-left: 0; } .topbar { height: auto; min-height: 68px; gap: 14px; flex-wrap: wrap; padding: 14px 18px; } .search-bar { width: 100%; } .stats-grid { grid-template-columns: 1fr; padding: 18px; } .dashboard-section { margin: 18px; padding: 18px; border-radius: 18px; } }