/*
PROJECT:        Outbreak Tracker & Analysis Platform
COPYRIGHT:    © 2026 Rubayat M. All Rights Reserved.
DEVELOPER:   Rubayat M

NOTICE: This file is part of the Outbreak Tracker & Analysis Platform. 
Subject to the license terms defined in the 'License-&-Copyright' file in the project root.
*/

:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

/* --- GLOBAL RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: var(--font-main); 
    color: var(--text-main); 
    line-height: 1.6; 
    background: var(--white); 
    overflow-x: hidden;
}
ul { list-style: none; }
a { text-decoration: none; transition: var(--transition); }

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 80px;
    display: flex;
    align-items: center;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
}

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-actions { 
    display: flex; 
    align-items: center; 
    margin-left: 1.5rem; 
}

/* --- DROPDOWN (Pill-button style) --- */
.dropdown { position: relative; display: flex; align-items: center; }

.dropdown-trigger {
    background-color: #eff6ff !important; /* Light blue button background */
    color: var(--primary) !important;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px; /* Pill shape */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 0;
}
.dropdown-menu.active { display: block !important; }
.dropdown-menu li a { padding: 12px 20px; display: block; color: var(--text-muted); border-radius: 0; }
.dropdown-menu li a:hover { background: var(--bg-light); color: var(--primary); }

.arrow { font-size: 0.7rem; transition: transform 0.3s ease; }
.arrow.rotate { transform: rotate(180deg); }

/* --- BUTTONS (Matched to Explore Platform) --- */
.btn {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 1rem 2rem; 
    border-radius: 8px; 
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer; 
    border: none; 
    transition: var(--transition); 
    text-decoration: none;
    font-family: var(--font-main);
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--white) !important; }
.btn-primary:hover { 
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-outline { 
    border: 1px solid var(--border); 
    background: var(--white); 
    color: var(--text-main); 
}

/* --- GRIDS & SECTIONS --- */
.hero, .info-hero, .map-hero-section { padding: 160px 0 80px; text-align: center; }
h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }

.stats-grid, .agent-grid, .features-grid, .map-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 40px 0;
}

.card, .agent-card, .stat-item {
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
}

/* --- FOOTER --- */
/*footer { background: #0f172a; padding: 4rem 0; color: #94a3b8; margin-top: 4rem; } */
/* --- FOOTER --- */
/* --- FOOTER --- */
footer { 
    background: #0f172a; /*#0f172a; /*#E7E7E7; /*#0f172a; */
    padding: 4rem 0;  
    margin-top: 4rem; 
}

.footer-content {   
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* 1. Target the Logo specifically */
footer .logo { 
    color: #ffffff !important; 
}

/* 2. Target the Copyright Paragraph text specifically */
footer p { 
    font-size: 0.9rem;
    color: #ffffff !important; 
}

/* 3. Target the Links (Normal state) */
footer a {
	font-size: 1.1rem;
    color: #ffffff !important;
    text-decoration: none;
    margin-right: 15px;
    transition: opacity 0.3s ease;
}

/* 4. Target the Links (Special states) - FIXED THE MISSING BRACKET HERE */
footer a:hover, 
footer a:active, 
footer a:visited {
    color: #ffffff !important;
    opacity: 0.8;
} /* This was the missing bracket that broke your code */


/*Start > option style */
/* Container layout to hold the grid */
/* Custom 2-Column Split for Map View */
.map-split-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.map-column-box {
    flex: 1; /* Takes up exactly 50% width */
    min-width: 0; /* Prevents overflow bugs */
}


/*start > html url button*/
/* --- MODERN URL BUTTON STYLE --- */

.url-btn-link {
  font-family: 'Segoe UI', sans-serif;
    font-size: 17px;
  background-color: white; 
  border: 2px solid #f44336;
  color: black;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}

/* Hover State: Darkens slightly when cursor rolls over */
.url-btn-link:hover {
   background-color: #f44336;
  color: white;
}

/* Active State: Looks pushed down when clicked */
.url-btn-link:active {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 1rem 2rem; 
    border-radius: 8px; 
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer; 
    border: none; 
    transition: var(--transition); 
    text-decoration: none;
    font-family: var(--font-main);
    white-space: nowrap;
}

/* --- Optional Container to keep multiple buttons neatly separated --- */
.btn-group-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Ensures buttons never collide or overlap */
    padding: 10px 0;
    align-items: center;
}
/*end > html url button */


/* Responsive fix: stack them vertically on smaller screens */
@media (max-width: 1200px) {
    .map-split-container {
        flex-direction: column;
    }
}

/*
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates two equal columns */
 /*   gap: 25px; /* Spaces out the boxes perfectly */
/*    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fcfcfc; /* Subtle off-white background matching the image */
/*}

/* Individual Grid Box Layout */
/* Individual Grid Box Layout with Accent Left Border */
/*
.grid-box {
    background-color: #ffffff;
    
    /* 1. Add your thick blue accent border on the left side */
/*    border-left: 5px solid #3498db; /* Professional Vibrant Blue */
    
    /* 2. Keep or adjust the remaining thin borders for the other 3 sides */
/*    border-top: 1px solid #e0e4e8;
    border-right: 1px solid #e0e4e8;
    border-bottom: 1px solid #e0e4e8;
    
    border-radius: 4px; /* Slightly lower radius so the thick left edge stays crisp */
/*    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}*/

/* Header Text Bar styling */
/*
.grid-box h3 {
    margin: 0;
    padding: 15px 20px;
    background-color: #2c3e50; /* Professional Dark Blue/Slate */
/*    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #1a252f;
}

/* Content Area inside the boxes */
/* Alternative: Left border ONLY on the text area below the header */
/*
.grid-box p {
    margin: 0;
    padding: 20px;
    color: #444444;
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    
    /* Apply it directly here instead */
/*    border-left: 5px solid #3498db; 
}

/* Responsive adjustment for small screens / tablets */
/*
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr; /* Drops to single column on mobile */
 /*       gap: 15px;
    }
}*/
/*End > option style */


/* --- RESPONSIVENESS --- */
@media (max-width: 992px) {
    .stats-grid, .agent-grid, .features-grid { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px; left: 0; width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-links.active { display: flex; }

    .dropdown { width: 100%; justify-content: center; margin: 10px 0; }
    .dropdown-menu { position: static; transform: none; width: 100%; box-shadow: none; background: var(--bg-light); }

    .stats-grid, .agent-grid, .features-grid, .map-details-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.2rem; }
    .footer-content { flex-direction: column; gap: 1.5rem; text-align: center; }
}