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+
:root {
|
| 4 |
+
--brand-green: #2E572B;
|
| 5 |
+
--brand-dark-green: #213f1f;
|
| 6 |
+
--brand-yellow: #F3C13E;
|
| 7 |
+
--brand-cream: #FEFDEE;
|
| 8 |
+
--content-bg: #f4f7f6;
|
| 9 |
+
--text-dark: #343a40;
|
| 10 |
+
--text-muted: #6c757d;
|
| 11 |
+
--border-color: #dee2e6;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
/* Mengganti font default dan background */
|
| 15 |
+
body {
|
| 16 |
+
font-family: 'Poppins', sans-serif !important;
|
| 17 |
+
background-color: var(--content-bg) !important;
|
| 18 |
+
color: var(--text-dark);
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.admin-layout {
|
| 22 |
+
display: flex;
|
| 23 |
+
min-height: 100vh;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
/* Sidebar Styling */
|
| 27 |
+
.sidebar {
|
| 28 |
+
width: 250px;
|
| 29 |
+
background-color: var(--brand-dark-green);
|
| 30 |
+
color: #fff;
|
| 31 |
+
position: fixed;
|
| 32 |
+
top: 0;
|
| 33 |
+
left: 0;
|
| 34 |
+
height: 100%;
|
| 35 |
+
z-index: 1030;
|
| 36 |
+
transition: width 0.3s ease;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.sidebar-brand {
|
| 40 |
+
display: flex;
|
| 41 |
+
align-items: center;
|
| 42 |
+
padding: 1.25rem;
|
| 43 |
+
color: #fff;
|
| 44 |
+
text-decoration: none;
|
| 45 |
+
font-size: 1.2rem;
|
| 46 |
+
font-weight: 600;
|
| 47 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 48 |
+
}
|
| 49 |
+
.sidebar-brand:hover { color: #fff; text-decoration: none; }
|
| 50 |
+
.sidebar-brand img {
|
| 51 |
+
height: 32px; width: 32px;
|
| 52 |
+
border-radius: 6px; margin-right: 12px;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.sidebar .nav-link {
|
| 56 |
+
color: rgba(255, 255, 255, 0.6);
|
| 57 |
+
padding: 0.8rem 1.25rem;
|
| 58 |
+
display: flex;
|
| 59 |
+
align-items: center;
|
| 60 |
+
transition: all 0.2s ease;
|
| 61 |
+
font-weight: 500;
|
| 62 |
+
}
|
| 63 |
+
.sidebar .nav-link .menu-icon {
|
| 64 |
+
margin-right: 1rem;
|
| 65 |
+
font-size: 1rem;
|
| 66 |
+
width: 20px;
|
| 67 |
+
text-align: center;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.sidebar .nav-link:hover, .sidebar .nav-item.active .nav-link {
|
| 71 |
+
background-color: var(--brand-green);
|
| 72 |
+
color: #fff;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
.nav-category {
|
| 76 |
+
padding: 1.5rem 1.25rem 0.5rem;
|
| 77 |
+
font-size: 0.75rem;
|
| 78 |
+
font-weight: 600;
|
| 79 |
+
color: rgba(255, 255, 255, 0.4);
|
| 80 |
+
text-transform: uppercase;
|
| 81 |
+
letter-spacing: 0.5px;
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
/* Content Area Styling */
|
| 85 |
+
.content-wrapper {
|
| 86 |
+
margin-left: 250px;
|
| 87 |
+
width: calc(100% - 250px);
|
| 88 |
+
padding: 2rem;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.top-bar { display: none; } /* Sembunyikan top-bar lama */
|
| 92 |
+
|
| 93 |
+
/* Stat Card Styling */
|
| 94 |
+
.stat-card {
|
| 95 |
+
background-color: #fff;
|
| 96 |
+
border: none;
|
| 97 |
+
border-radius: 12px;
|
| 98 |
+
box-shadow: 0 5px 15px rgba(0,0,0,0.04);
|
| 99 |
+
margin-bottom: 2rem;
|
| 100 |
+
transition: transform 0.2s ease;
|
| 101 |
+
}
|
| 102 |
+
.stat-card:hover { transform: translateY(-5px); }
|
| 103 |
+
|
| 104 |
+
.stat-card .card-body {
|
| 105 |
+
padding: 1.5rem;
|
| 106 |
+
display: flex;
|
| 107 |
+
align-items: center;
|
| 108 |
+
}
|
| 109 |
+
.stat-card .stat-icon {
|
| 110 |
+
font-size: 1.5rem;
|
| 111 |
+
height: 60px;
|
| 112 |
+
width: 60px;
|
| 113 |
+
display: inline-flex;
|
| 114 |
+
align-items: center;
|
| 115 |
+
justify-content: center;
|
| 116 |
+
border-radius: 12px;
|
| 117 |
+
margin-right: 1.5rem;
|
| 118 |
+
color: #fff;
|
| 119 |
+
}
|
| 120 |
+
.stat-card .stat-value {
|
| 121 |
+
font-size: 2rem;
|
| 122 |
+
font-weight: 700;
|
| 123 |
+
color: var(--text-dark);
|
| 124 |
+
}
|
| 125 |
+
.stat-card .stat-label {
|
| 126 |
+
font-size: 0.9rem;
|
| 127 |
+
color: var(--text-muted);
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
/* General Component Styling */
|
| 131 |
+
.card {
|
| 132 |
+
background-color: #fff;
|
| 133 |
+
border: none;
|
| 134 |
+
border-radius: 12px;
|
| 135 |
+
box-shadow: 0 5px 15px rgba(0,0,0,0.04);
|
| 136 |
+
}
|
| 137 |
+
.btn-primary {
|
| 138 |
+
background-color: var(--brand-green) !important;
|
| 139 |
+
border-color: var(--brand-green) !important;
|
| 140 |
+
font-weight: 600;
|
| 141 |
+
}
|
| 142 |
+
.btn-primary:hover {
|
| 143 |
+
background-color: var(--brand-dark-green) !important;
|
| 144 |
+
border-color: var(--brand-dark-green) !important;
|
| 145 |
+
}
|
| 146 |
+
.table thead th {
|
| 147 |
+
background-color: var(--content-bg);
|
| 148 |
+
border-bottom: 2px solid var(--border-color);
|
| 149 |
+
font-weight: 600;
|
| 150 |
+
}
|