sistem_rekomendasi/public/css/admin.css

211 lines
4.2 KiB
CSS

/* ================================
THEME SMAN 4 JEMBER - MODERN DASHBOARD
================================ */
:root {
--primary-green: #2D7A47; /* Hijau SMAN 4 */
--dark-green: #1B4D2E;
--accent-yellow: #FFD700; /* Kuning Emas Logo */
--bg-light: #f8fafc;
--white: #ffffff;
--sidebar-width: 260px;
}
body {
background-color: var(--bg-light);
font-family: 'Figtree', sans-serif;
margin: 0;
overflow-x: hidden;
}
/* Layout Container */
.admin-wrapper {
display: flex;
min-height: 100vh;
}
/* --- PERBAIKAN SIDEBAR --- */
.sidebar-modern {
width: var(--sidebar-width);
background-color: var(--primary-green);
color: var(--white);
display: flex;
flex-direction: column;
position: fixed;
height: 100vh; /* Mengunci tinggi sidebar sesuai tinggi layar */
box-shadow: 4px 0 10px rgba(0,0,0,0.1);
z-index: 1000;
}
.sidebar-header {
padding: 30px 20px;
text-align: center;
border-bottom: 1px solid rgba(255,255,255,0.1);
flex-shrink: 0; /* Header tidak akan mengecil saat di-scroll */
}
.sidebar-header img {
width: 60px;
margin-bottom: 10px;
}
/* Area Menu dengan Fitur Scroll */
.sidebar-menu {
padding: 20px 15px;
flex-grow: 1;
overflow-y: auto; /* Mengaktifkan scroll vertikal */
scrollbar-width: thin; /* Untuk Firefox */
scrollbar-color: rgba(255,255,255,0.2) transparent;
}
/* Custom Scrollbar untuk Chrome/Edge/Safari */
.sidebar-menu::-webkit-scrollbar {
width: 6px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
background-color: rgba(255,255,255,0.2);
border-radius: 10px;
}
.sidebar-menu::-webkit-scrollbar-track {
background: transparent;
}
.menu-label {
font-size: 11px;
text-transform: uppercase;
font-weight: 700;
color: rgba(255,255,255,0.5);
margin: 20px 0 10px 10px;
letter-spacing: 1px;
}
.nav-item {
display: flex;
align-items: center;
padding: 12px 15px;
color: var(--white);
text-decoration: none;
border-radius: 10px;
margin-bottom: 5px;
transition: all 0.3s;
font-weight: 500;
}
.nav-item i {
width: 25px;
font-size: 18px;
margin-right: 10px;
}
.nav-item:hover {
background-color: rgba(255,255,255,0.1);
color: var(--accent-yellow);
}
.nav-item.active {
background-color: var(--white);
color: var(--primary-green);
font-weight: 700;
}
/* Main Content Area */
.main-content {
margin-left: var(--sidebar-width);
flex-grow: 1;
display: flex;
flex-direction: column;
min-width: 0; /* Mencegah overflow pada elemen flex */
}
/* Topbar */
.topbar {
height: 70px;
background: var(--white);
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 30px;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
position: sticky;
top: 0;
z-index: 999;
}
.search-bar {
background: #f1f5f9;
border-radius: 10px;
padding: 8px 15px;
width: 350px;
display: flex;
align-items: center;
}
.search-bar input {
border: none;
background: transparent;
margin-left: 10px;
outline: none;
width: 100%;
}
/* Stats Cards */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 25px;
padding: 30px;
}
.stat-card {
background: var(--white);
padding: 25px;
border-radius: 20px;
box-shadow: 0 4px 6px rgba(0,0,0,0.02);
display: flex;
align-items: center;
justify-content: space-between;
border: 1px solid #f1f5f9;
}
.stat-info h3 {
margin: 0;
font-size: 28px;
font-weight: 800;
color: #1e293b;
}
.stat-info p {
margin: 0;
color: #64748b;
font-size: 14px;
font-weight: 600;
}
.stat-icon {
width: 55px;
height: 55px;
border-radius: 15px;
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 {
padding: 0 30px 30px 30px;
}
.chart-container {
background: var(--white);
border-radius: 20px;
padding: 25px;
border: 1px solid #f1f5f9;
min-height: 400px;
}