/* =========================================================
   SIDARCO — LAPOR DPT (Kecamatan Comal)
   Tema selaras dengan Home, Rekap, dan Cek DPT
   Dominan Biru Muda & Biru Dongker (Navy/Blue) | Mobile first
   File: assets/css/lapor-dpt.css
   ========================================================= */

:root {
    --lapor-orange: #0284c7;
    --lapor-orange-dark: #0369a1;
    --lapor-orange-soft: #e0f2fe;
    --lapor-green: #1e3a8a;
    --lapor-green-dark: #1e293b;
    --lapor-green-soft: #eff6ff;
    --lapor-ink: #0f172a;
    --lapor-muted: #64748b;
    --lapor-border: #cbd5e1;
    --lapor-surface: #fff;
    --lapor-page: #f1f5f9;
    --lapor-shadow: 0 12px 34px rgba(2, 132, 199, .08);
}

.lapor-page {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1440px !important;
    min-width: 0;
    padding-top: 24px !important;
    padding-bottom: 48px !important;
    color: var(--lapor-ink);
    background: transparent;
}

.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: 34px 34px 30px;
    text-align: left;
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 26px;
    box-shadow: var(--lapor-shadow);
}

.lapor-page .dpt-card-decoration {
    position: absolute;
    z-index: -1;
    top: -115px;
    right: -90px;
    width: 260px;
    height: 210px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(2, 132, 199, .2), rgba(30, 58, 138, .15));
    pointer-events: none;
}

.lapor-page .dpt-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 10px;
    border-radius: 23px;
    background: linear-gradient(145deg, #e0f2fe, #eff6ff);
    border: 1px solid #bae6fd;
    box-shadow: inset 0 1px 0 #fff;
}

.lapor-page .dpt-logo {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.lapor-page .dpt-branding {
    text-align: center;
    margin-bottom: 25px;
}

.lapor-page .dpt-brand-title {
    margin: 0;
    color: var(--lapor-ink);
    text-align: center;
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.7px;
}

.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: .84rem;
    font-weight: 550;
    line-height: 1.5;
}

/* Form fields */
.lapor-page .dpt-form-group {
    min-width: 0;
    margin-bottom: 18px;
    text-align: left;
}

.lapor-page .dpt-label {
    display: block;
    margin: 0 0 8px;
    color: #334155;
    font-size: .83rem;
    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: 52px;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    color: var(--lapor-ink);
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 13px !important;
    outline: none;
    box-shadow: none;
    font-family: inherit;
    font-size: .92rem !important;
    line-height: 1.45;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.lapor-page textarea.dpt-input {
    min-height: 115px !important;
    height: auto !important;
    resize: vertical;
}

.lapor-page input[type="file"].dpt-input {
    height: auto !important;
    min-height: 52px;
    padding: 10px !important;
    font-size: .82rem !important;
}

.lapor-page input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 12px;
    color: #1e3a8a;
    background: #eff6ff;
    border: 0;
    border-radius: 9px;
    font-weight: 750;
    cursor: pointer;
}

.lapor-page .dpt-input::placeholder {
    color: #94a3b8;
    font-weight: 450;
}

.lapor-page .dpt-input:hover,
.lapor-page .form-select:hover {
    border-color: #93c5fd !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(2, 132, 199, .12) !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: #9f1239;
    background: #fff1f2;
}

/* Submit */
.lapor-page .dpt-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100% !important;
    min-height: 51px;
    height: auto !important;
    margin-top: 22px;
    padding: 13px 18px;
    color: #fff !important;
    background: linear-gradient(100deg, var(--lapor-orange), #0ea5e9 52%, var(--lapor-green)) !important;
    border: 0 !important;
    border-radius: 13px !important;
    box-shadow: 0 7px 16px rgba(2, 132, 199, .19);
    font-size: .94rem !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(30, 58, 138, .19);
}

.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: 24px;
    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 #cbd5e1;
    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 #cbd5e1;
}

.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: #1e3a8a;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    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: #0f172a;
    font-weight: 650;
}

.bukti-footer-note {
    margin-top: 15px;
    padding: 11px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    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 #cbd5e1;
}

.dpt-modal-actions .btn-tutup:hover {
    color: var(--lapor-green);
    background: #e2e8f0;
}

.dpt-modal-actions .btn-download {
    color: #fff;
    background: linear-gradient(100deg, var(--lapor-orange), #1e3a8a);
    border: 0;
    box-shadow: 0 4px 12px rgba(2, 132, 199, .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-brand-mark {
        width: 64px;
        height: 64px;
        border-radius: 19px;
        margin-bottom: 9px;
    }
    .lapor-page .dpt-logo {
        width: 49px;
        height: 49px;
    }
    .lapor-page .dpt-brand-title {
        font-size: 1.65rem;
    }
    .lapor-page .dpt-brand-sub {
        margin-bottom: 20px;
        font-size: .75rem;
    }
    .lapor-page .dpt-form-group {
        margin-bottom: 14px;
    }
    .lapor-page .dpt-label {
        font-size: .78rem;
    }
    .lapor-page .dpt-input,
    .lapor-page .form-select {
        min-height: 48px;
        padding: 11px 13px !important;
        font-size: .86rem !important;
    }
    .lapor-page textarea.dpt-input {
        min-height: 105px !important;
    }
    .lapor-page input[type="file"].dpt-input {
        padding: 8px !important;
    }
    .lapor-page .dpt-btn-submit {
        min-height: 48px;
        margin-top: 18px;
        font-size: .87rem !important;
    }
    .dpt-modal-overlay {
        align-items: center;
        padding: 10px;
    }
    .dpt-modal-box {
        max-width: 100%;
        max-height: 94vh;
        padding: 12px;
        border-radius: 20px;
    }
    #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;
    }
}