/* =======================================================
   NET MONITOR - PUBLIC COVERAGE CHECK & TRACKING STYLES
   Modern Indigo-Violet Theme & Glassmorphism UI
   File: css/coverage.css
   ======================================================= */

:root {
    --primary: #5c6cf2;
    --primary-dark: #4b5be0;
    --primary-light: #eff2fe;
    --primary-gradient: linear-gradient(135deg, #5c6cf2 0%, #7b51db 100%);
    --bg-page-gradient: linear-gradient(135deg, #5b73e8 0%, #6857eb 40%, #7e4cd8 75%, #8843d1 100%);
    --accent-gold: #fbbf24;
    --secondary: #2563eb;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: inherit;
}

body {
    font-family: var(--app-font, 'Plus Jakarta Sans', sans-serif);
    background: var(--bg-page-gradient);
    background-attachment: fixed;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Ambient Decorative Glowing Orbs */
.bg-ambient-orb-1 {
    position: fixed;
    top: 8%;
    left: 4%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-ambient-orb-2 {
    position: fixed;
    bottom: 8%;
    right: 4%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   TOP HEADER & GLASSMORPHIC NAVBAR
   ========================================== */
.public-navbar-container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.navbar-glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    padding: 10px 22px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
}

.navbar-glass-badge:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

.brand-icon-box {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1b4b;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.btn-staff-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn-staff-login:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .public-navbar-container {
        padding: 16px 16px 8px;
        flex-direction: column;
        gap: 12px;
    }
    .navbar-glass-badge {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   SEGMENTED PILL TAB SWITCHER
   ========================================== */
.nav-tabs-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px;
    border-radius: 18px;
    gap: 8px;
    max-width: 540px;
    margin: 22px auto 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 10;
}

.tab-button {
    flex: 1;
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.tab-button i {
    font-size: 15px;
    transition: color 0.2s;
}

.tab-button:hover:not(.active),
.tab-button:focus-visible:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.tab-button.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.tab-button.active i {
    color: var(--primary);
}

@media (max-width: 600px) {
    .nav-tabs-wrapper {
        margin: 16px auto 20px;
        padding: 4px;
        border-radius: 14px;
    }
    .tab-button {
        font-size: 12.5px;
        padding: 10px 8px;
        gap: 6px;
    }
}

/* ==========================================
   MAIN CONTAINER & FLOATING CARDS
   ========================================== */
.main-container {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 20px;
    flex: 1;
    position: relative;
    z-index: 10;
}

.tab-content-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
    padding: 36px 32px;
    position: relative;
    transition: all 0.3s ease;
}

/* Khusus Kartu Tab Lacak (Centered Modern Card) */
.track-card-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 32px 32px;
}

.card-icon-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eff2fe;
    color: var(--primary);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px rgba(92, 108, 242, 0.15);
}

.card-header-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.card-header-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 26px;
    line-height: 1.5;
}

/* Input Track Group with Icon Box */
.track-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 6px 10px;
    transition: all 0.25s ease;
    margin-bottom: 16px;
}

.track-input-wrapper:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(92, 108, 242, 0.15);
}

.track-input-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eff2fe;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.track-input-field {
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    width: 100%;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.track-input-field::placeholder {
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}

.btn-track-action {
    width: 100%;
    padding: 14px 18px;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(107, 82, 219, 0.35);
    transition: all 0.25s ease;
}

.btn-track-action:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(107, 82, 219, 0.42);
}

/* Help Box (Cara Mencari ID Pengajuan) */
.help-info-section {
    text-align: center;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.help-info-icon {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 8px;
}

.help-info-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.help-info-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

/* ==========================================
   TAB 1: FORMULIR CEK COVERAGE & MAP
   ========================================== */
.coverage-split-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    grid-template-areas:
        "form-fields map-col"
        "submit-btn  map-col";
    gap: 18px 30px;
    align-items: start;
}

.form-fields-wrapper {
    grid-area: form-fields;
}

.submit-btn-wrapper {
    grid-area: submit-btn;
}

.map-column-wrapper {
    grid-area: map-col;
}

.form-section {
    margin-bottom: 20px;
}

.section-label {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label i {
    color: var(--primary);
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.form-group label .req {
    color: var(--danger);
}

.form-control, select.form-control {
    width: 100%;
    padding: 11px 14px;
    font-size: 13.5px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.form-control:focus, select.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(92, 108, 242, 0.14);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* Map Box & Controls */
.map-wrapper {
    position: relative;
    margin-top: 6px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

#mapCoverage {
    height: 380px;
    width: 100%;
    z-index: 10;
}

.btn-gps-current {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 500;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-gps-current:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary);
}

.map-layer-selector {
    position: absolute;
    top: 12px;
    left: 52px;
    z-index: 500;
    display: flex;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    padding: 3px;
    border-radius: 10px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-layer-opt {
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-layer-opt:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-layer-opt.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Coordinate & Google Maps Search Bar Floating on Coverage Map */
.map-coord-search-bar {
    position: absolute;
    top: 54px;
    left: 12px;
    right: 12px;
    max-width: 480px;
    z-index: 500;
    pointer-events: auto;
}

.map-coord-search-inner {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 38px;
    transition: all 0.25s ease;
}

.map-coord-search-inner:focus-within {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.map-coord-search-icon {
    color: #38bdf8;
    margin-right: 8px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.map-coord-search-icon:hover {
    transform: scale(1.15);
    color: #7dd3fc;
}

.map-coord-search-inner input {
    background: transparent;
    color: #ffffff;
    border: none;
    outline: none;
    font-size: 12px;
    width: 100%;
    min-width: 0;
    font-family: inherit;
}

.map-coord-search-inner input::placeholder {
    color: #94a3b8;
    font-size: 11.5px;
}

.btn-clear-coord-search {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 0 4px;
    line-height: 1;
    display: none;
    transition: color 0.15s;
}

.btn-clear-coord-search:hover {
    color: #f87171;
}

@media (max-width: 600px) {
    .map-coord-search-bar {
        top: 50px;
        left: 8px;
        right: 8px;
        max-width: calc(100% - 16px);
    }
    .map-coord-search-inner {
        height: 34px;
        padding: 0 10px;
    }
    .map-coord-search-inner input {
        font-size: 11px;
    }
}


.map-hint-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Status Geocoding Peta */
.geocode-status-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    animation: fadeInPill 0.3s ease-out;
}

.geocode-status-pill.loading {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.geocode-status-pill.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

@keyframes fadeInPill {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Submit Button Tab Coverage */
.btn-submit-coverage {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(107, 82, 219, 0.35);
    transition: all 0.25s ease;
    margin-top: 4px;
}

.btn-submit-coverage:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(107, 82, 219, 0.42);
}

.btn-submit-coverage:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 960px) {
    .coverage-split-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "form-fields"
            "map-col"
            "submit-btn";
        gap: 20px;
    }

    #mapCoverage {
        height: 310px;
    }

    .tab-content-card {
        padding: 24px 18px;
    }
}

/* ==========================================
   BOTTOM GLASSMORPHIC 3-CARD GRID
   ========================================== */
.bottom-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 36px;
    position: relative;
    z-index: 10;
}

.feature-glass-card {
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 22px;
    padding: 28px 22px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

.feature-glass-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
}

.feature-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent-gold);
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.feature-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.feature-card-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

@media (max-width: 820px) {
    .bottom-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }
}

/* ==========================================
   TRACKING RESULT & TIMELINE STEPPER
   ========================================== */
.timeline-container {
    margin-top: 24px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.timeline-step {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 13px;
    bottom: -14px;
    width: 2px;
    background: #e2e8f0;
}

.timeline-step:last-child::before {
    display: none;
}

.step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    z-index: 2;
}

.step-icon.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(92, 108, 242, 0.25);
}

.step-icon.done {
    background: var(--success);
    color: #ffffff;
}

.step-body {
    flex: 1;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.step-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Modal Respon Pendaftaran */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 16px;
}

.modal-card {
    background: #ffffff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 25px 40px -5px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon-circle {
    width: 72px;
    height: 72px;
    background: #eff2fe;
    border: 2px solid #bfdbfe;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 18px;
}

.tracking-code-box {
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    padding: 14px;
    margin: 18px 0;
}

.tracking-code-value {
    font-size: 22px;
    font-weight: 800;
    font-family: monospace;
    color: #0f172a;
    letter-spacing: 1.5px;
    margin: 4px 0 6px;
}

.btn-copy-code {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.btn-copy-code:hover {
    color: var(--text-dark);
    border-color: #94a3b8;
}

/* ==========================================
   FOOTER MINIMALIS
   ========================================== */
.public-footer {
    padding: 28px 20px;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: auto;
    position: relative;
    z-index: 10;
}
