:root {
    --deep: #050a14;
    --navy: #0a1628;
    --blue: #1a56db;
    --blue-light: #3b7de8;
    --accent: #60a5fa;
    --white: #f0f4ff;
    --gray: #8899bb;
}

* { box-sizing: border-box; }

/* GLOBAL BACKGROUND */
html {
    height: 100%;
    background: linear-gradient(180deg, var(--deep) 0%, #071330 100%) no-repeat center center fixed;
    background-size: cover;
}

body { 
    min-height: 100%; 
    margin: 0; 
    padding: 0; 
    color: var(--white); 
    font-family: 'Barlow', sans-serif; 
    display: flex; 
    flex-direction: column;
    background: transparent; 
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; }

/* UNIFIED HEADER & NAVIGATION */
.main-header {
    background: rgba(5,10,20,0.97);
    border-bottom: 1px solid rgba(26,86,219,0.25);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-link { 
    position: relative; 
    font-family: 'Barlow Condensed', sans-serif; 
    font-weight: 600; 
    letter-spacing: 0.08em; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    color: var(--gray); 
    transition: color 0.2s; 
    cursor: pointer; 
    padding: 6px 0; 
    text-decoration: none; 
}

.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after { 
    content:''; 
    position:absolute; 
    bottom:-2px; 
    left:0; 
    right:0; 
    height:2px; 
    background: var(--blue); 
    border-radius:2px; 
}

.logo-text { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.12em; font-size: 2rem; color: var(--white); }
.logo-dot { color: var(--blue); }

/* DASHBOARD & HERO ELEMENTS */
.hero-bg { 
    background: linear-gradient(135deg, var(--deep) 0%, #0d1f3c 50%, #071330 100%); 
    position: relative; 
    min-height: 100%; 
}
.grid-overlay { 
    position: fixed; 
    inset: 0; 
    background-image: linear-gradient(rgba(26,86,219,0.07) 1px, transparent 1px), 
                      linear-gradient(90deg, rgba(26,86,219,0.07) 1px, transparent 1px); 
    background-size: 50px 50px; 
    z-index: 0;
    pointer-events: none;
}

/* TICKER */
.ticker-wrap { background: var(--blue); overflow: hidden; position: relative; z-index: 2; padding: 6px 0; }
.ticker-inner { display: inline-flex; animation: ticker-scroll 28s linear infinite; white-space: nowrap; }
@keyframes ticker-scroll { 0%{ transform: translateX(0); } 100%{ transform: translateX(-50%); } }
.ticker-item { font-family: 'Barlow Condensed', sans-serif; font-size: 0.82rem; font-weight: 600; padding: 0 32px; color: white; text-transform: uppercase; }

/* WIDGETS & CARDS */
.widget-card { background: rgba(10,22,40,0.85); border: 1px solid rgba(26,86,219,0.25); border-radius: 12px; backdrop-filter: blur(10px); transition: border-color 0.3s, transform 0.2s; }
.widget-card:hover { border-color: rgba(26,86,219,0.6); transform: translateY(-2px); }

/* CLOCK & CALENDAR */
.clock-display { font-family: 'Bebas Neue', sans-serif; font-size: 4.5rem; letter-spacing: 0.05em; color: var(--white); line-height: 1; }
.clock-ampm { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--blue); letter-spacing: 0.1em; }
.clock-date-label { font-family: 'Barlow', sans-serif; font-size: 0.85rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; }
.cal-header { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--gray); text-transform: uppercase; display: flex; justify-content: center; align-items: center; height: 24px; }
.cal-day { width: 100%; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 0.85rem; font-weight: 500; }
.cal-day.today { background: var(--blue); color: white; font-weight: 700; }

/* METRICS & STATS */
.enlarged-card {
    display: flex !important;
    align-items: center !important;
    padding: 30px 24px !important;
    min-height: 120px;
    gap: 20px !important;
    background: rgba(10,22,40,0.5);
    border: 1px solid rgba(26,86,219,0.2);
    border-radius: 10px;
}
.stat-icon-large { width: 42px !important; height: 42px !important; }
.stat-num-large { font-family: 'Bebas Neue', sans-serif; font-size: 2.4rem !important; color: var(--accent); line-height: 1; }
.stat-lbl-large { font-size: 0.85rem !important; color: var(--gray); text-transform: uppercase; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; }

/* BUTTONS */
.btn-primary { background: var(--blue); color: white; border-radius: 6px; padding: 10px 24px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; border: none; cursor: pointer; transition: 0.2s; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid rgba(96,165,250,0.4); border-radius: 6px; padding: 10px 24px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; text-decoration: none; display: inline-block; transition: 0.2s; }

/* REPORT FORM STYLES */
.report-field-label { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--white); letter-spacing: 0.1em; margin-bottom: 10px; opacity: 0.9; }
.report-field-input { width: 100%; padding: 14px 18px; background: rgba(10, 22, 40, 0.85); border: 1px solid rgba(26, 86, 219, 0.3); border-radius: 8px; color: var(--white); font-family: 'Barlow', sans-serif; font-size: 1rem; transition: 0.3s; }
.report-field-input:focus { outline: none; border-color: var(--accent); background: rgba(10, 22, 40, 0.95); }
.was-validated .report-field-input:invalid { border-color: #ef4444 !important; box-shadow: 0 0 8px rgba(239, 68, 68, 0.5) !important; }
.invalid-feedback { display: none; color: #ef4444; font-size: 0.85rem; margin-top: 8px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; }
.was-validated .report-field-input:invalid + .invalid-feedback { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* NEWS SPECIFIC */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.news-card { background: rgba(10,22,40,0.6); border: 1px solid rgba(26,86,219,0.25); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 16px; transition: transform 0.2s; height: 100%; }
.news-image-container { width: 100%; height: 180px; border-radius: 6px; overflow: hidden; background: rgba(26,86,219,0.1); }
.news-image-container img { width: 100%; height: 100%; object-fit: cover; }
.news-badge { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; width: fit-content; }
.news-badge.welfare { color: #22c55e; background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); }
.news-card-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--white); line-height: 1.1; }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(5, 10, 20, 0.9); z-index: 9999; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; transition: 0.3s; }
.modal-overlay.active { visibility: visible; opacity: 1; }
.modal-content { width: 90%; max-width: 440px; padding: 48px 32px; text-align: center; border-top: 4px solid #22c55e; }

/* FOOTER & TYPOGRAPHY */
.footer-bg { background: #030710; border-top: 1px solid rgba(26,86,219,0.2); position: relative; z-index: 2; width: 100%; }
.section-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.78rem; color: var(--blue); }
.section-title { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.06em; color: var(--white); }
.blue-line { width: 48px; height: 3px; background: linear-gradient(90deg, var(--blue), transparent); }
.internal-page-bg { position: relative; min-height: 100vh; display: flex; flex-direction: column; }

@media(max-width:768px) { .hero-grid { grid-template-columns: 1fr !important; } .form-grid { grid-template-columns: 1fr; } }
/* Submit Button Styling & Interaction */
.btn-submit {
    background-color: #2563eb;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem;
    border-radius: 0.5rem;
    width: 100%;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-submit:hover {
    background-color: #1d4ed8;
}

/* Color change and shrink effect when pressed */
.btn-submit:active {
    background-color: #1e40af;
    transform: scale(0.95);
}

/* Success Modal Overlay */
#success-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none; /* Controlled by initial.js */
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

/* Modal Content Box */
.modal-content {
    background-color: #121212;
    border: 1px solid #1f2937;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 24rem;
    width: 90%;
}

.modal-hidden {
    display: none !important;
}