/* =========================================================
   SIDARSA — LAPOR DPT (Desa Sarwodadi)
   Tema selaras dengan Home, Rekap, dan Cek DPT
   Dominan Biru Telur Asin (Teal / Cyan) | Mobile first
   File: assets/css/lapor-dpt.css
   ========================================================= */

:root {
    --lapor-orange: #0d9488;
    --lapor-orange-dark: #0f766e;
    --lapor-orange-soft: #f0fdfd;
    --lapor-green: #0284c7;
    --lapor-green-dark: #0369a1;
    --lapor-green-soft: #e0f2fe;
    --lapor-ink: #0f172a;
    --lapor-muted: #64748b;
    --lapor-border: #ccfbf1;
    --lapor-surface: #fff;
    --lapor-page: #f4fbfb;
    --lapor-shadow: 0 12px 34px rgba(13, 148, 136, .08);
}

.lapor-page {
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    padding-top: 24px !important;
    padding-bottom: 44px !important;
    color: var(--lapor-ink);
    background:
        radial-gradient(circle at 8% 4%, rgba(13, 148, 136, .07), transparent 25rem),
        radial-gradient(circle at 96% 26%, rgba(2, 132, 199, .07), transparent 24rem),
        var(--lapor-page);
}
.lapor-page > .dpt-wrapper {
    width: 100%;
    max-width: 680px;
    margin: 8px auto 20px;
    padding: 0 12px;
    box-sizing: border-box;
}
.lapor-page .dpt-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 32px 34px 30px;
    text-align: left;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 25px;
    box-shadow: var(--lapor-shadow);
    backdrop-filter: blur(10px);
}
.lapor-page .dpt-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -145px;
    right: -100px;
    width: 300px;
    height: 230px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 148, 136, .22), rgba(56, 189, 248, .18));
    pointer-events: none;
}
.lapor-page .dpt-logo {
    display: block;
    width: 60px;
    max-height: 60px;
    object-fit: contain;
    margin: 0 auto 10px;
}
.lapor-page .dpt-brand-title {
    margin: 0;
    color: var(--lapor-ink);
    text-align: center;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.6px;
}
.lapor-page .brand-orange { color: var(--lapor-orange); }
.lapor-page .brand-green { color: var(--lapor-green); }
.lapor-page .dpt-brand-sub {
    max-width: 470px;
    margin: 7px auto 25px;
    color: var(--lapor-muted);
    text-align: center;
    font-size: .83rem;
    font-weight: 550;
    line-height: 1.5;
}

/* Form fields */
.lapor-page .dpt-form-group {
    min-width: 0;
    margin-bottom: 17px;
    text-align: left;
}
.lapor-page .dpt-label {
    display: block;
    margin: 0 0 7px;
    color: #334155;
    font-size: .81rem;
    font-weight: 800;
    line-height: 1.4;
}
.lapor-page .dpt-input,
.lapor-page .form-select {
    display: block;
    width: 100% !important;
    min-width: 0;
    min-height: 48px;
    box-sizing: border-box !important;
    padding: 11px 13px !important;
    color: var(--lapor-ink);
    background: #f0fdfd !important;
    border: 1px solid #99f6e4 !important;
    border-radius: 12px !important;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: .86rem !important;
    line-height: 1.45;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.lapor-page textarea.dpt-input {
    min-height: 112px !important;
    height: auto !important;
    resize: vertical;
}
.lapor-page input[type="file"].dpt-input {
    height: auto !important;
    min-height: 48px;
    padding: 8px !important;
    font-size: .78rem !important;
}
.lapor-page input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 7px 10px;
    color: var(--lapor-green-dark);
    background: var(--lapor-green-soft);
    border: 0;
    border-radius: 8px;
    font-weight: 750;
    cursor: pointer;
}
.lapor-page .dpt-input::placeholder { color: #94a3b8; }
.lapor-page .dpt-input:hover,
.lapor-page .form-select:hover { border-color: #5eead4 !important; }
.lapor-page .dpt-input:focus,
.lapor-page .form-select:focus {
    color: var(--lapor-ink);
    background: #fff !important;
    border-color: var(--lapor-orange) !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, .15) !important;
}
.lapor-page .form-select:disabled {
    color: #94a3b8;
    background: #f1f5f9 !important;
    cursor: not-allowed;
}
.lapor-page .text-muted {
    display: inline-block;
    margin-top: 6px;
    color: #64748b !important;
    font-size: .7rem !important;
    line-height: 1.5;
}
.lapor-page .alert {
    border: 1px solid #fecdd3;
    border-radius: 12px;
    color: #be123c;
    background: #fff1f2;
}

/* Submit */
.lapor-page .dpt-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100% !important;
    min-height: 50px;
    height: auto !important;
    margin-top: 22px;
    padding: 13px 18px;
    color: #fff !important;
    background: linear-gradient(100deg, var(--lapor-orange), #06b6d4 52%, var(--lapor-green)) !important;
    border: 0 !important;
    border-radius: 13px !important;
    box-shadow: 0 7px 16px rgba(13, 148, 136, .2);
    font-size: .9rem !important;
    font-weight: 850 !important;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.lapor-page .dpt-btn-submit:hover {
    color: #fff !important;
    filter: saturate(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(13, 148, 136, .25);
}
.lapor-page .dpt-btn-submit:active { transform: translateY(0); }

/* Success receipt modal */
.dpt-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    box-sizing: border-box;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.dpt-modal-box {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 20px;
    color: var(--lapor-ink);
    text-align: center;
    background: #fff;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 23px;
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
    animation: laporModalPop .24s ease-out;
}
@keyframes laporModalPop {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#areaBuktiLapor {
    width: 100%;
    box-sizing: border-box;
    padding: 22px !important;
    color: #0f172a;
    text-align: left;
    background: #fff !important;
    border: 1px solid #ccfbf1;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.035);
}
.bukti-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    text-align: center;
    border-bottom: 2px dashed #99f6e4;
}
.bukti-logo {
    display: block;
    width: 50px;
    max-height: 50px;
    object-fit: contain;
    margin: 0 auto 8px;
}
.bukti-title {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .15px;
}
.bukti-subtitle {
    margin: 4px 0 0;
    color: #64748b;
    font-size: .7rem;
    font-weight: 550;
    line-height: 1.45;
}
.bukti-status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px 12px;
    color: #0f766e;
    background: #f0fdfd;
    border: 1px solid #99f6e4;
    border-radius: 11px;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1.45;
    text-align: center;
}
.bukti-status-box i { color: var(--lapor-orange); font-size: .9rem; }
.table-bukti {
    width: 100%;
    border-collapse: collapse;
    color: #1e293b;
    font-size: .75rem;
    line-height: 1.45;
    text-align: left;
    table-layout: fixed;
}
.table-bukti tr { border-bottom: 1px solid #f1f5f9; }
.table-bukti tr:last-child { border-bottom: 0; }
.table-bukti td {
    padding: 8px 0;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.table-bukti .lbl { width: 34%; color: #64748b; font-weight: 650; }
.table-bukti .separator { width: 6%; color: #94a3b8; text-align: center; }
.table-bukti .val { color: #1e293b; font-weight: 650; }
.bukti-footer-note {
    margin-top: 15px;
    padding: 11px;
    color: #64748b;
    background: #f4fbfb;
    border: 1px solid #ccfbf1;
    border-radius: 10px;
    font-size: .67rem;
    line-height: 1.5;
    text-align: center;
}
.dpt-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.dpt-modal-actions .btn-tutup,
.dpt-modal-actions .btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 50%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.dpt-modal-actions .btn-tutup {
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.dpt-modal-actions .btn-tutup:hover { color: var(--lapor-green-dark); background: #e0f2fe; }
.dpt-modal-actions .btn-download {
    color: #fff;
    background: linear-gradient(100deg, var(--lapor-orange), var(--lapor-green));
    border: 0;
    box-shadow: 0 4px 12px rgba(13, 148, 136, .2);
}
.dpt-modal-actions .btn-download:hover { background: var(--lapor-orange-dark); transform: translateY(-1px); }

/* Tablet */
@media (max-width: 768px) {
    .lapor-page { padding-top: 16px !important; padding-bottom: 30px !important; }
    .lapor-page > .dpt-wrapper { max-width: 600px; margin-top: 4px; }
    .lapor-page .dpt-card { padding: 27px 25px 24px; border-radius: 22px; }
}

/* Mobile */
@media (max-width: 576px) {
    .lapor-page { padding-top: 10px !important; padding-bottom: 24px !important; }
    .lapor-page.container { padding-left: 10px !important; padding-right: 10px !important; }
    .lapor-page > .dpt-wrapper { margin: 3px auto 12px; padding: 0 2px; }
    .lapor-page .dpt-card { padding: 23px 17px 20px; border-radius: 20px; }
    .lapor-page .dpt-logo { width: 53px; max-height: 53px; }
    .lapor-page .dpt-brand-title { font-size: 1.62rem; }
    .lapor-page .dpt-brand-sub { margin-bottom: 20px; font-size: .74rem; }
    .lapor-page .dpt-form-group { margin-bottom: 14px; }
    .lapor-page .dpt-label { font-size: .77rem; }
    .lapor-page .dpt-input,
    .lapor-page .form-select { min-height: 45px; padding: 10px 11px !important; font-size: .8rem !important; }
    .lapor-page textarea.dpt-input { min-height: 100px !important; }
    .lapor-page input[type="file"].dpt-input { padding: 7px !important; }
    .lapor-page .dpt-btn-submit { min-height: 47px; margin-top: 17px; font-size: .82rem !important; }
    .dpt-modal-overlay { align-items: center; padding: 10px; }
    .dpt-modal-box { max-width: 100%; max-height: 94vh; padding: 12px; border-radius: 19px; }
    #areaBuktiLapor { padding: 15px !important; border-radius: 13px; }
    .bukti-title { font-size: .88rem; }
    .bukti-subtitle { font-size: .64rem; }
    .bukti-status-box { padding: 8px; font-size: .65rem; }
    .table-bukti { font-size: .68rem; }
    .table-bukti td { padding: 6px 0; }
    .bukti-footer-note { font-size: .62rem; }
    .dpt-modal-actions { gap: 8px; margin-top: 12px; }
    .dpt-modal-actions .btn-tutup,
    .dpt-modal-actions .btn-download { min-height: 42px; padding: 9px 7px; font-size: .74rem; }
}
@media (max-width: 360px) {
    .lapor-page .dpt-card { padding: 19px 12px 17px; }
    .table-bukti { font-size: .63rem; }
    .table-bukti .lbl { width: 32%; }
    .dpt-modal-actions .btn-tutup,
    .dpt-modal-actions .btn-download { font-size: .69rem; }
}
@media (prefers-reduced-motion: reduce) {
    .lapor-page *, .dpt-modal-box, .dpt-modal-actions * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}