@import url('/fonts/poppins.css');

/* ==========================================================================
   CHANGUNARAYAN MUNICIPALITY - DISASTER MISSING PERSONS PORTAL
   Official Clean Modern Municipal UI System (Navy & Minimal Design)
   ========================================================================== */

:root {
    --navy-primary: #041530;
    --navy-hover: #020d20;
    --navy-light: #0a2550;
    --navy-bg-subtle: #f0f7ff;
    
    --gold-primary: #f59e0b;
    --gold-hover: #d97706;
    --gold-light: #fef3c7;
    --gold-text: #facc15;
    
    --blue-accent: #1d4ed8;
    --blue-accent-hover: #1e40af;
    
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --border-color: #cbd5e1;
    --border-subtle: #e2e8f0;
    
    --text-heading: #041530;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Status Badges */
    --status-missing-bg: #fef3c7;
    --status-missing-text: #b45309;
    --status-found-bg: #dcfce7;
    --status-found-text: #15803d;
    --status-safe-bg: #e0f2fe;
    --status-safe-text: #0369a1;
    --status-closed-bg: #f1f5f9;
    --status-closed-text: #475569;
    
    --font-nepali: 'Poppins', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-english: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body, button, input, select, textarea, .table, .card, .navbar, .btn {
    font-family: var(--font-nepali) !important;
}

body {
    font-family: var(--font-nepali);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   POSTER STYLE DISASTER TABLE (MATCHING EXACT SCREENSHOT)
   ========================================================================== */
.disaster-poster-card {
    background-color: #041530;
    border: 3.5px solid #f59e0b;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 12px 30px rgba(4, 21, 48, 0.35);
    margin-bottom: 2.5rem;
    color: #ffffff;
}

.disaster-poster-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 12px;
}

.disaster-poster-phone-box {
    width: 80px;
    height: 80px;
    border: 2.5px solid #f59e0b;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 2.3rem;
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.05);
}

.disaster-poster-titles {
    text-align: center;
    flex-grow: 1;
}

.disaster-poster-heading {
    color: #facc15;
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.35;
    letter-spacing: 0.2px;
}

.disaster-poster-subheading {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.3;
}

.disaster-poster-table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #ffffff;
    background-color: #041530;
    color: #ffffff;
}

.disaster-poster-table th {
    border: 1.5px solid #ffffff;
    color: #facc15;
    font-weight: 800;
    font-size: 1.22rem;
    padding: 12px 14px;
    text-align: center;
    background-color: #041530;
}

.disaster-poster-table th.text-start {
    text-align: left;
}

.disaster-poster-table td {
    border: 1.5px solid #ffffff;
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 1.25rem;
    font-weight: 700;
}

.disaster-poster-table td.cell-sn {
    text-align: center;
    color: #ffffff;
    font-weight: 800;
    width: 70px;
    font-size: 1.3rem;
}

.disaster-poster-table td.cell-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.35rem;
}

.disaster-poster-table td.cell-address {
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
}

.disaster-poster-table td.cell-phone {
    text-align: center;
    color: #facc15;
    font-family: var(--font-nepali), monospace, sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: 0.5px;
}

.disaster-poster-table td.cell-actions {
    text-align: center;
    width: 90px;
}

.btn-poster-view {
    background-color: transparent;
    color: #facc15;
    border: 1px solid #facc15;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.88rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-poster-view:hover {
    background-color: #facc15;
    color: #041530;
}

/* ==========================================================================
   NEPALI DATEPICKER OVERRIDES
   ========================================================================== */
.ndp-container {
    z-index: 999999 !important;
    font-family: var(--font-nepali), 'Noto Sans Devanagari', sans-serif !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
}

.ndp-container .ndp-header {
    background-color: #f8fafc;
    border-radius: 6px 6px 0 0;
}

.nepali-datepicker {
    cursor: pointer;
    background-color: #ffffff !important;
}

@media (max-width: 768px) {
    .disaster-poster-card {
        padding: 16px;
        border-width: 2.5px;
    }
    .disaster-poster-header {
        flex-direction: column;
        gap: 12px;
    }
    .disaster-poster-heading {
        font-size: 1.25rem;
    }
    .disaster-poster-subheading {
        font-size: 0.95rem;
    }
    .disaster-poster-table th, 
    .disaster-poster-table td {
        font-size: 1rem;
        padding: 8px 10px;
    }
    .disaster-poster-table td.cell-phone {
        font-size: 1.15rem;
    }
}

/* ==========================================================================
   MARQUEE TICKER BAR
   ========================================================================== */
.marquee-ticker-bar {
    background: linear-gradient(90deg, #b91c1c 0%, #dc2626 50%, #b91c1c 100%);
    color: #ffffff;
    font-size: 0.88rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.marquee-label {
    background-color: #991b1b;
    color: #ffffff;
    font-weight: 700;
    padding: 6px 16px;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.marquee-content-wrapper {
    overflow: hidden;
    white-space: nowrap;
    flex-grow: 1;
    position: relative;
}

.marquee-text-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 28s linear infinite;
    font-weight: 500;
}

.marquee-text-content:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   PUBLIC NAVBAR
   ========================================================================== */
.portal-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.portal-brand-logo {
    width: 46px;
    height: 46px;
    background-color: var(--navy-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.portal-brand-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 2px;
}

.portal-brand-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Primary Button (Dark Navy) */
.btn-navy {
    background-color: var(--navy-primary);
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
}

.btn-navy:hover {
    background-color: var(--navy-hover);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(15, 41, 66, 0.2);
}

.btn-outline-admin {
    background-color: #ffffff;
    color: var(--text-main) !important;
    border: 1px solid #cbd5e1;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.92rem;
    text-decoration: none;
}

.btn-outline-admin:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

.nav-link-contact {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.nav-link-contact:hover {
    color: var(--navy-primary);
}

/* ==========================================================================
   CENTERED SEARCH HERO SECTION
   ========================================================================== */
.hero-search-section {
    text-align: center;
    padding: 28px 0 16px;
    max-width: 680px;
    margin: 0 auto;
}

.hero-search-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.hero-search-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.search-box-container {
    display: flex;
    background-color: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 8px;
}

.search-box-container:focus-within {
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px rgba(15, 41, 66, 0.12);
}

.search-box-container .search-icon {
    padding-left: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.search-box-container input {
    border: none;
    outline: none;
    padding: 10px 14px;
    width: 100%;
    font-size: 0.94rem;
    color: var(--text-main);
}

.search-box-container input::placeholder {
    color: var(--text-light);
}

.search-box-container button {
    background-color: var(--navy-primary);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.94rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.search-box-container button:hover {
    background-color: var(--navy-hover);
}

.search-example-hint {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.search-quick-report-link {
    color: var(--navy-primary);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-quick-report-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   STAT CARDS (4 STATS ROW)
   ========================================================================== */
.stat-box-container {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
}

.stat-icon-blue {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon-amber {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon-green {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #dcfce7;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon-gray {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-number {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ==========================================================================
   NOTICE RIBBON
   ========================================================================== */
.notice-ribbon-navy {
    background-color: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.notice-icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: bold;
    flex-shrink: 0;
}

.notice-text {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    flex-grow: 1;
}

.notice-btn {
    background-color: #ffffff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.notice-btn:hover {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* ==========================================================================
   FILTER TABS & WARD DROPDOWN
   ========================================================================== */
.filter-pill {
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: inline-block;
}

.filter-pill:hover {
    border-color: var(--navy-primary);
    color: var(--navy-primary);
}

.filter-pill.active {
    background-color: var(--navy-primary);
    border-color: var(--navy-primary);
    color: #ffffff;
}

.ward-dropdown-select {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
    background-color: #ffffff;
    outline: none;
}

/* ==========================================================================
   DATA TABLE STYLING
   ========================================================================== */
.table-card-main {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    margin-bottom: 24px;
}

.table-clean {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.table-clean th {
    background-color: #ffffff;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.84rem;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.table-clean td {
    padding: 12px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.88rem;
    color: var(--text-main);
}

.table-clean tr:last-child td {
    border-bottom: none;
}

.table-clean tbody tr:hover {
    background-color: #fafbfc;
}

.avatar-round-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #e0f2fe;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.avatar-round-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* Status Badges */
.status-pill-amber {
    background-color: #fef3c7;
    color: #b45309;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.status-pill-green {
    background-color: #dcfce7;
    color: #15803d;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.status-pill-slate {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.btn-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action-icon:hover {
    border-color: var(--navy-primary);
    color: var(--navy-primary);
    background-color: #f8fafc;
}

/* ==========================================================================
   NAVY FOOTER
   ========================================================================== */
.footer-navy {
    background-color: #0f2942;
    color: #cbd5e1;
    padding: 14px 0;
    font-size: 0.88rem;
    margin-top: auto;
}

.footer-navy a {
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   ADMIN LAYOUT STYLING
   ========================================================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar-modern {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    flex-shrink: 0;
}

.admin-sidebar-brand {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-sidebar-logo {
    width: 52px;
    height: 52px;
    background-color: var(--navy-primary);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.admin-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-primary);
    line-height: 1.2;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.admin-nav-item:hover {
    background-color: #f0f7ff;
    color: var(--navy-primary);
}

.admin-nav-item.active {
    background-color: #f0f7ff;
    color: var(--navy-primary);
    font-weight: 700;
}

.admin-nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.admin-main-content {
    flex-grow: 1;
    background-color: var(--bg-page);
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-body {
    padding: 28px;
    flex-grow: 1;
}

/* ==========================================================================
   PRINTABLE POSTER
   ========================================================================== */
.poster-container {
    max-width: 780px;
    margin: 20px auto;
    background-color: #ffffff;
    border: 6px solid var(--navy-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media print {
    .no-print, .portal-navbar, .footer-navy, .admin-sidebar-modern, .admin-topbar {
        display: none !important;
    }
    body {
        background-color: #ffffff;
    }
    .poster-container {
        border: 4px solid #000000 !important;
        box-shadow: none !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}