282 lines
5.7 KiB
CSS
282 lines
5.7 KiB
CSS
:root {
|
|
--primary: #1e3a8a; /* Indigo tua */
|
|
--primary-dark: #1e40af;
|
|
--accent: #60a5fa; /* Biru muda (light blue) */
|
|
--background: #f1f5f9; /* Abu terang */
|
|
--text-color: #1e293b; /* Teks abu gelap */
|
|
}
|
|
|
|
|
|
body {
|
|
font-family: 'Poppins', sans-serif;
|
|
background-color: var(--background);
|
|
color: var(--text-color);
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
#resetBtn:hover {
|
|
transform: scale(1.05);
|
|
box-shadow: 0 0.5rem 1rem rgba(220, 53, 69, 0.5);
|
|
}
|
|
/* Sidebar */
|
|
.sidebar {
|
|
width: 250px;
|
|
height: 100vh;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
background-color: #ffffff; /* ✅ Putih */
|
|
color: #000000; /* ✅ Teks hitam */
|
|
padding-top: 20px;
|
|
box-shadow: 4px 0 12px rgba(0, 0, 0, 0.05);
|
|
border-right: 1px solid #e2e8f0;
|
|
min-width: 250px;
|
|
}
|
|
|
|
.sidebar .nav-link {
|
|
font-size: 1rem;
|
|
padding: 12px 20px;
|
|
color: var(--text-color); /* dari hitam */
|
|
border-radius: 12px;
|
|
margin-bottom: 5px;
|
|
display: block;
|
|
text-decoration: none;
|
|
background-color: transparent;
|
|
}
|
|
|
|
.sidebar .nav-link:hover {
|
|
background-color: #f1f5f9;
|
|
color: var(--primary);
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.sidebar .nav-link:active,
|
|
.sidebar .nav-link:focus,
|
|
.sidebar .nav-link.active {
|
|
font-weight: 900;
|
|
}
|
|
|
|
.sidebar h4 {
|
|
color: #ffffff;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
.sidebar img {
|
|
border-radius: 12px;
|
|
max-width: 80%;
|
|
margin: 0 auto 20px;
|
|
display: block;
|
|
}
|
|
|
|
/* Konten utama */
|
|
.content {
|
|
margin-left: 260px;
|
|
width: calc(100% - 260px);
|
|
padding: 20px;
|
|
background-color: var(--background);
|
|
min-height: 100vh;
|
|
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
|
|
}
|
|
.login-container {
|
|
background: rgba(255, 255, 255, 0.95);
|
|
padding: 40px 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
|
|
width: 100%;
|
|
max-width: 400px;
|
|
text-align: center;
|
|
background-color: var(--background); /* Agar latar belakang sama dengan body */
|
|
}
|
|
|
|
/* Tombol contoh */
|
|
.button {
|
|
background: var(--accent);
|
|
color: white;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button:hover {
|
|
background: #fbbf24;
|
|
transform: scale(1.05);
|
|
}
|
|
/* Topbar */
|
|
.topbar {
|
|
height: 60px;
|
|
background-color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 20px;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
margin-bottom: 20px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/* Container tabel */
|
|
.table-container {
|
|
background: white;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
|
|
margin-top: 20px;
|
|
}
|
|
|
|
/* Tabel */
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 10px;
|
|
font-size: 0.95rem;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
table thead {
|
|
background-color: var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
table th, table td {
|
|
padding: 12px 15px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
}
|
|
|
|
table tbody tr:hover {
|
|
background-color: #f9fafb;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
/* Tombol Edit dan Delete */
|
|
.btn-edit {
|
|
background-color: #22c55e;
|
|
color: white;
|
|
padding: 6px 12px;
|
|
border-radius: 8px;
|
|
font-size: 0.85rem;
|
|
border: none;
|
|
cursor: pointer;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.btn-delete {
|
|
background-color: #ef4444;
|
|
color: white;
|
|
padding: 6px 12px;
|
|
border-radius: 8px;
|
|
font-size: 0.85rem;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-edit:hover {
|
|
background-color: #16a34a;
|
|
}
|
|
|
|
.btn-delete:hover {
|
|
background-color: #dc2626;
|
|
}
|
|
|
|
/* Input & Dropdown (search dan jumlah data) */
|
|
.table-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
input[type="search"],
|
|
select {
|
|
padding: 8px 12px;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
background-color: #fff;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
/* Responsive tweaks */
|
|
@media (max-width: 768px) {
|
|
.content {
|
|
margin-left: 0;
|
|
width: 100%;
|
|
padding: 15px;
|
|
}
|
|
|
|
.sidebar {
|
|
position: relative;
|
|
width: 100%;
|
|
height: auto;
|
|
}
|
|
/* === Probabilitas Atribut Numerik === */
|
|
.card-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
margin-top: 20px;
|
|
align-items: stretch; /* supaya semua card di baris sama tinggi */
|
|
}
|
|
|
|
.card-atribut-numerik {
|
|
flex: 1 1 300px;
|
|
min-height: 350px; /* minimal tinggi supaya konsisten */
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
/* bisa pakai fixed height kalau mau persis sama: height: 350px; */
|
|
}
|
|
|
|
.card {
|
|
height: 100%; /* supaya mengikuti tinggi parent .card-atribut-numerik */
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.card h3 {
|
|
font-size: 1.2em;
|
|
margin-bottom: 15px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.card .section {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.card .section h4 {
|
|
font-weight: bold;
|
|
margin-bottom: 5px;
|
|
color: #666;
|
|
}
|
|
|
|
.card .row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.card .row .label {
|
|
color: #777;
|
|
}
|
|
|
|
.card .row .value {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.card .row .value.red {
|
|
color: red;
|
|
}
|
|
|
|
}
|