/* Base Styles & Typography */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #eef2f5; /* Light ocean mist grey/blue */
    color: #334155;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; color: #1e3d59; } /* Midnight Blue */
p { color: #475569; margin-bottom: 1.2rem; }

/* =========================================================
   Hero Header & Navigation (Oceanic Theme)
   ========================================================= */
.hero-header {
    background-color: #0B2447; /* Deep Sea Blue */
    color: #ffffff; 
    text-align: center;
    padding: 60px 20px 30px; 
}

.hero-header h1 {
    font-size: 2.6em;
    margin: 0 0 15px 0;
    color: #ffffff; 
    letter-spacing: -0.5px;
}

/* Header Credit */
.header-credits {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.header-credits .author {
    font-size: 1.4em;
    font-weight: 500;
    color: #00b4d8; /* Vibrant Cyan accent */
    margin: 0 0 3px 0;
}

.header-credits .professor, 
.header-credits .institution {
    font-size: 1.05em;
    color: #cbd5e1; /* Soft grey/blue for credentials */
    margin: 0 0 2px 0;
    font-weight: 300;
}


/* Next Navigation */
.button-nav {
    background-color: #0B2447; /* Seamless Deep Sea Blue */
    padding: 10px 0 40px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.button-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px; 
}

.button-nav ul li a {
    display: block;
    background-color: #19376D; /* Nav Button Normal */
    color: #ffffff; 
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 50px; 
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #19376D;
}

.button-nav ul li a:hover {
    background-color: #00b4d8; /* Vibrant Cyan/Teal Hover */
    border: 1px solid #00b4d8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 180, 216, 0.2); 
}

/* =========================================================
   "About This Project" Section 
   ========================================================= */
.about-section {
    background-color: #0B2447; 
    padding: 10px 20px 80px 20px;
    display: flex;
    justify-content: center;
}

.about-container {
    max-width: 900px;
    text-align: center;
}

.about-section h2 {
    color: #00b4d8; /* Vibrant Cyan */
    font-size: 2.2em;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.15em;
    color: #e2e8f0; 
    text-align: left;
}

/* =========================================================
   Dashboard Main Content 
   ========================================================= */
.dashboard-wrapper {
    max-width: 1100px;
    margin: -50px auto 40px auto; 
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

/* KPI Row Grid */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.kpi-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 5px solid #00b4d8; /* Ocean Teal accent */
}

.kpi-card h3 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kpi-card .kpi-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #1e3d59; /* Midnight Blue */
    margin-bottom: 10px;
}

.kpi-card p { font-size: 0.9em; margin: 0; color: #64748b; }

/* Dashboard Panels */
.dashboard-panel {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.panel-alt {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.panel-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.panel-header h2 { color: #1e3d59; font-size: 1.8em; margin: 0 0 5px 0; }
.panel-header p { margin: 0; font-style: italic; color: #64748b; }

/* Layout Utilities */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.align-center { align-items: center; }
.mt-40 { margin-top: 40px; }

/* Visuals & Typography Details */
.card-text h3 {
    color: #1e3d59;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
}

figure {
    margin: 0;
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

figure img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

figcaption {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    color: #94a3b8;
    font-size: 0.85em;
}

/* Map sizing */
.map-container { height: 100%; min-height: 400px; }
#leaflet-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    z-index: 1;
}

/* Equation Box */
.equation-box {
    background: #eef8f9; 
    border-left: 4px solid #00b4d8;
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
    color: #1e293b;
}

.equation-box code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    display: block;
    margin-top: 8px;
    color: #0f4c75; 
    font-weight: 600;
}

/* Technical Appendix Tables & Details */
details {
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 20px;
}

details summary {
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: #1e3d59;
    outline: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 1.5em; color: #00b4d8; }
details[open] summary::after { content: '-'; }

.details-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.tech-img {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: none;
    border: none;
    padding: 0;
    margin-top: 15px;
    box-shadow: none;
}
.tech-img img { max-width: 100%; border: 1px solid #cbd5e1; }

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.95em;
}
.dashboard-table th, .dashboard-table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    text-align: left;
}
.dashboard-table th { background-color: #f1f5f9; color: #1e3d59; }

/* =========================================================
   Downloadable Files Section 
   ========================================================= */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.download-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border: 1px solid #00b4d8;
}

.download-card .icon { font-size: 2.5em; margin-bottom: 10px; }
.download-card h4 { margin: 0 0 10px 0; color: #1e3d59; }
.download-card p { font-size: 0.85em; color: #64748b; margin-bottom: 15px; }

.download-btn {
    display: inline-block;
    background-color: #19376D;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.download-btn:hover {
    background-color: #00b4d8; 
    color: #ffffff;
}

/* Map Error */
.map-error-message { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(255,255,255,0.95); padding: 20px; border-radius: 5px; text-align: center; color: #cc0000; font-weight: bold; border: 2px solid #cc0000; z-index: 500; }

/* =========================================================
   Footer 
   ========================================================= */
footer { 
    background-color: #0a192f; 
    color: #a0aec0; 
    text-align: center; 
    padding: 40px 20px;
}

/* Scroll to Top */
#scrollTopBtn {
    display: none; position: fixed; bottom: 30px; right: 30px; z-index: 999; font-size: 22px;
    border: none; background-color: #00b4d8; color: #fff; cursor: pointer; width: 50px; height: 50px;
    border-radius: 50%; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); transition: all 0.3s ease;
    align-items: center; justify-content: center; opacity: 0; pointer-events: none;
}
#scrollTopBtn.show { opacity: 1; pointer-events: auto; }
#scrollTopBtn:hover { background-color: #0B2447; transform: translateY(-5px); }

@media (max-width: 900px) {
    .grid-2-col { grid-template-columns: 1fr; gap: 20px; }
    .hero-header h1 { font-size: 2em; }
    .dashboard-panel { padding: 25px; }
}
