/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-blue: #A3BAC3;
    --btn-color: #9D8C78;
    --input-bg: #F3F3F3;
    --text-dark: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

.login-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.main-login-box {
    background-color: white;
    width: 950px;
    height: 580px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.06);
    display: flex;
}

.login-left-pane {
    background-color: var(--primary-blue);
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 40px;
}

.login-left-pane img {
    max-width: 150px;
    margin-bottom: 20px;
}

.login-left-pane h2 {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
}

.login-right-pane {
    width: 60%;
    background-color: white;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right-pane h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 35px;
    color: var(--text-dark);
}

.login-form-content {
    max-width: 380px;
    width: 100%;
}

.form-label {
    font-weight: 500;
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: block;
}

.form-control-custom {
    background-color: var(--input-bg);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%; 
    box-sizing: border-box; 
    font-size: 1rem;
    color: #333;
}

.form-control-custom::placeholder {
    color: #999;
}

.password-input-group {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.password-input-group .form-control-custom {
    padding-right: 45px;
}

.toggle-password-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1.1rem;
}

.btn-submit-login {
    background-color: var(--btn-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    width: 100%;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 25px;
    cursor: pointer;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--primary-blue);
    color: white;
    padding: 30px 20px;
}

.sidebar .brand {
    text-align: center;
    margin-bottom: 40px;
}

.sidebar .brand img {
    max-width: 80px;
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-item {
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
}

.nav-item.active, .nav-item:hover {
    background-color: white;
    color: var(--text-dark);
}

.main-content {
    flex: 1;
    background-color: white;
    padding: 30px 40px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #e6d9c3;
    padding: 10px 15px;
    border-radius: 12px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card h3 {
    font-size: 1.1rem;      /* Ukuran font sedikit dikecilkan biar elegan */
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;       /* INI YANG DITAMBAH: 500 itu Medium, jangan 700 (Bold) */
    letter-spacing: 0.2px;
}
.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 5px;
    color: var(--text-dark);
}

.content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
}

.data-box {
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 20px;
}
.data-box h3 {
    font-weight: 500;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table-custom th {
    background-color: #E0E0E0;
    padding: 10px;
    text-align: left;
    font-size: 0.9rem;
}

.table-custom td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
.btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    color: #333;
    border: none;
    padding: 6px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.btn-logout:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #A4BCC2;
    padding: 12px 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

.nav-item.sub {
    padding-left: 45px;
    font-size: 0.9rem;
}

.btn-tambah {
    background-color: #437677;
    color: white !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    border: none;
}

.btn-tambah:hover {
    background-color: #355e5f;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center;
    z-index: 9999;
}
.modal-box {
    background: white; width: 700px; padding: 30px; border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.section-title { margin: 20px 0 10px 0; border-bottom: 1px solid #eee; padding-bottom: 5px; color: #333; }
.form-row { display: flex; gap: 20px; margin-bottom: 15px; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group label { font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; }
.form-group input, .form-group select { padding: 10px; border: 1px solid #ccc; border-radius: 8px; }
.flex-2 { flex: 2; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn-simpan { background: #C5E1A5; border: none; padding: 10px 30px; border-radius: 8px; cursor: pointer; font-weight: bold; }
.btn-batal { background: #ddd; border: none; padding: 10px 30px; border-radius: 8px; text-decoration: none; color: black; font-weight: bold; }

/* Untuk tampilan Nota Cetak */
.nota-box { 
    max-width: 900px; 
    margin: auto; 
    padding: 30px; 
    border: 1px solid #ddd; 
}
.header-nota { text-align: center; border-bottom: 2px solid #437677; margin-bottom: 20px; }
.info-laporan { display: flex; justify-content: space-between; margin-bottom: 20px; }
.table-cetak { width: 100%; border-collapse: collapse; }
.table-cetak th, .table-cetak td { border: 1px solid #ddd; padding: 10px; }
.total-section { display: flex; justify-content: flex-end; margin-top: 20px; }
.total-box { min-width: 250px; }
.total-row { display: flex; justify-content: space-between; font-weight: bold; }

@media print {
    .no-print { display: none !important; } /* Menghilangkan tombol cetak & kembali saat di-print */
    .nota-box { border: none; }
}