/* --- TEMA UTAMA HALAMAN DETEKSI  --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fcfbf9;
    margin: 0;
    padding: 30px 50px;
    color: #332211;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #faedcd;
    padding-bottom: 15px;
}

.container {
    display: flex;
    gap: 30px;
}

.panel {
    flex: 1;
    background: #ffffff;
    border: 1px solid #faedcd;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.05);
    overflow: hidden;
}

.panel-header {
    background: #fefae0;
    padding: 12px 20px;
    font-weight: bold;
    border-bottom: 1px solid #faedcd;
    font-size: 14px;
    color: #5c4033;
}

.panel-body {
    padding: 30px;
    text-align: center;
}

.upload-area {
    border: 2px dashed #e6ccb2;
    border-radius: 10px;
    padding: 30px 20px;
    margin: 15px 0;
    color: #8c7853;
    font-size: 13px;
    background-color: #fffdf9;
    transition: 0.3s;
}

.upload-area:hover {
    border-color: #dda15e;
    background-color: #fefae0;
}

.btn-pill {
    background: #ffb703;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(255, 183, 3, 0.3);
}

.btn-pill:hover {
    background: #fb8500;
    box-shadow: 0 6px 15px rgba(251, 133, 0, 0.4);
}

.circle-chart {
    width: 140px;
    height: 140px;
    border: 10px solid #e6ccb2;
    border-radius: 50%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fffdf9;
}

.status-pill {
    border: 1px solid #e6ccb2;
    padding: 10px 15px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    width: 80%;
    margin-bottom: 20px;
    font-size: 13px;
}

.circle-normal { border-color: #52b788 !important; color: #2d6a4f; }
.status-normal { background: #d8f3dc !important; color: #1b4332; border-color: #b7e4c7 !important; }

.circle-disgrafia { border-color: #e76f51 !important; color: #b7094c; }
.status-disgrafia { background: #f8d7da !important; color: #721c24; border-color: #f5c6cb !important; }

.note-box {
    border: 1px solid #faedcd;
    background: #fefae0;
    padding: 15px;
    font-size: 11px;
    text-align: left;
    border-radius: 8px;
    color: #7f5539;
}

.btn-kamera {
    display: inline-block;
    background: #fefae0;
    border: 1px solid #faedcd;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    color: #5c4033;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 15px;
}

.btn-kamera:hover {
    background: #faedcd;
}

.alert { 
    background: #ffebee; 
    color: #c62828; 
    padding: 15px; 
    border-radius: 5px; 
    margin-bottom: 20px; 
    border: 1px solid #ef9a9a; 
    font-weight: bold;
}

/* LOGIN*/
.login-body {
    background-color: #fcfbf9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-card {
    background: white;
    width: 340px;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #faedcd;
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.08);
    text-align: center;
    position: relative;
}

.login-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #8c7853;
    text-decoration: none;
    transition: 0.2s;
}

.login-close-btn:hover {
    color: #b8860b;
}

.login-logo {
    width: 65px;
    height: 65px;
    background: #fefae0;
    border: 2px solid #faedcd;
    border-radius: 50%;
    margin: 0 auto 15px;
    line-height: 65px;
    color: #b8860b;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
}

.login-form-group {
    text-align: left;
    margin-bottom: 16px;
}

.login-card label {
    font-size: 12px;
    font-weight: bold;
    color: #5c4033;
}

.login-card input {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    border: 1px solid #e6ccb2;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #fffdf9;
    transition: 0.3s;
}

.login-card input:focus {
    outline: none;
    border-color: #dda15e;
    box-shadow: 0 0 5px rgba(221, 161, 94, 0.3);
}

.login-link {
    font-size: 12px;
    text-align: left;
    display: block;
    margin-bottom: 24px;
    color: #b8860b;
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover {
    text-decoration: underline;
}

.login-btn {
    background: #ffb703;
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 30px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(255, 183, 3, 0.3);
}

.login-btn:hover {
    background: #fb8500;
    box-shadow: 0 6px 15px rgba(251, 133, 0, 0.4);
}
.login-form-group input {
    width: 100%;
    padding: 10px 11px;
    box-sizing: border-box;
}
/* --- REGISTER --- */
.register-body {
    background-color: #fcfbf9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px 0;
}

.register-card {
    background: white;
    width: 380px;
    padding: 35px 30px;
    border-radius: 12px;
    border: 1px solid #faedcd;
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.08);
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.register-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #8c7853;
    text-decoration: none;
    transition: 0.2s;
}

.register-close-btn:hover {
    color: #b8860b;
}

.register-logo {
    width: 60px;
    height: 60px;
    background: #fefae0;
    border: 2px solid #faedcd;
    border-radius: 50%;
    margin: 0 auto 10px;
    line-height: 60px;
    color: #b8860b;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
}

.register-form-group {
    text-align: left;
    margin-bottom: 14px;
}

.register-card label {
    font-size: 12px;
    font-weight: bold;
    color: #5c4033;
}

.register-card input {
    width: 100%;
    padding: 10px 11px;
    margin-top: 5px;
    border: 1px solid #e6ccb2;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #fffdf9;
    transition: 0.3s;
    font-size: 13px;
}

.register-card input:focus {
    outline: none;
    border-color: #dda15e;
    box-shadow: 0 0 5px rgba(221, 161, 94, 0.3);
}

.register-footer-link {
    font-size: 12px;
    display: block;
    margin-top: 15px;
    color: #b8860b;
    text-decoration: none;
    font-weight: 500;
}

.register-footer-link:hover {
    text-decoration: underline;
}

.register-btn {
    background: #ffb703;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(255, 183, 3, 0.3);
    margin-top: 10px;
}

.register-btn:hover {
    background: #fb8500;
    box-shadow: 0 6px 15px rgba(251, 133, 0, 0.4);
}
/* RIWAYAT */
.riwayat-container {
    max-width: 1200px;
    margin: 30px auto;
    background: #ffffff;
    border: 1px solid #faedcd;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.05);
}

.riwayat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #faedcd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid #e6ccb2;
    border-radius: 8px;
    width: 280px;
    background: #fffdf9;
    font-size: 13px;
}

.search-input:focus {
    outline: none;
    border-color: #dda15e;
}

.table-responsive {
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.styled-table th {
    background-color: #fefae0;
    color: #5c4033;
    padding: 12px 15px;
    border-bottom: 2px solid #faedcd;
    font-weight: bold;
}

.styled-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f4eedb;
    color: #332211;
}

.styled-table tr:hover {
    background-color: #fffdf9;
}
.btn-aksi {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.btn-cetak {
    background: #e9edc9;
    color: #386641;
    border-color: #ccd5ae;
}
.btn-cetak:hover { background: #ccd5ae; }

.btn-hapus {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.btn-hapus:hover { background: #f5c6cb; }

.pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #faedcd;
    font-size: 13px;
    color: #8c7853;
}

.pagination-pages {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-item {
    padding: 6px 12px;
    border: 1px solid #e6ccb2;
    border-radius: 6px;
    background: white;
    color: #5c4033;
    text-decoration: none;
    font-weight: bold;
}

.page-item.active {
    background: #ffb703;
    color: white;
    border-color: #ffb703;
}
.modal-gambar {
    display: none; 
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85); /* Latar belakang gelap transparan */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    border: 3px solid #faedcd;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.modal-close:hover {
    color: #ffb703;
}

.modal-caption {
    margin: 15px auto;
    text-align: center;
    color: #faedcd;
    font-size: 14px;
    font-weight: bold;
}
/* Cetak detail */
body.cetak-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #332211;
    background: #fff;
    margin: 0;
    padding: 40px;
}

.sheet {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #faedcd;
    padding: 40px;
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header-laporan {
    text-align: center;
    border-bottom: 3px double #dda15e;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header-laporan h2 {
    margin: 0;
    color: #5c4033;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 20px;
}

.header-laporan p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #8c7853;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.info-table td {
    padding: 10px;
    border-bottom: 1px solid #f4eedb;
    font-size: 14px;
}

.info-table td:first-child {
    font-weight: bold;
    color: #5c4033;
    width: 35%;
}

.img-preview {
    text-align: center;
    margin: 25px 0;
}

.img-preview img {
    max-width: 280px;
    max-height: 180px;
    border: 2px solid #faedcd;
    border-radius: 6px;
    padding: 5px;
    background: white;
    object-fit: contain;
}

.badge-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}
.badge-status.status-normal { background: #d8f3dc; color: #1b4332; }
.badge-status.status-disgrafia { background: #f8d7da; color: #721c24; }

.catatan-box {
    background: #fefae0;
    border: 1px solid #faedcd;
    padding: 15px;
    border-radius: 6px;
    font-size: 12px;
    color: #7f5539;
    line-height: 1.5;
}

.footer-ttd {
    margin-top: 50px;
    display: flex;
    justify-content: flex-end;
    text-align: center;
    font-size: 14px;
}

.btn-print {
    display: block;
    width: 100%;
    padding: 12px;
    background: #ffb703;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    margin-top: 30px;
    box-shadow: 0 4px 10px rgba(255, 183, 3, 0.3);
    transition: 0.3s;
}
.btn-print:hover { background: #fb8500; }


@media print {
    .btn-print {
        display: none !important;
    }
    body.cetak-body {
        padding: 0;
        background: #fff;
    }
    .sheet {
        border: none;
        box-shadow: none;
        padding: 0;
        background: #fff;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px 15px !important;
    }
    .container {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}