/* ============================================================================
   MESHANTICUT BROOK PROJECT - STYLESHEET
   ============================================================================ */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1a1a2e;
    color: #eee;
}

/* Header */
header {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    background-color: #16213e;
}

header h1 {
    color: #80FFEC;
    font-size: 28px;
    margin-bottom: 10px;
    margin-top: 10px;  /* ADDED: Move title up additional 15px (total 30px up from original) */
}

header iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
} 

.header-content {
    position: relative;
    z-index: 10;
    padding: 20px 40px;
    margin-top: -12px;  /* ADDED: Move content up 15px */
}

nav {
    display: flex;
    gap: 25px;
    margin-top: -10px;  /* ADDED: Move nav up additional 10px (total 25px up from title) */
}

nav a {
    color: #FFF94F;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: #80FFEC;
}

#lsystem-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}

/* Map Container */
#map-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 100px);
}

#map {
    width: 100%;
    height: 100%;
}

/* Leaflet Info Controls */
.info {
    padding: 10px 15px;
    font: 14px/18px 'Montserrat', sans-serif;
    background: white;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
}

.stream-detail {
    padding: 15px;
    background-color: #5D5D81;
    color: #FFF94F;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.stream-detail h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.stream-detail b {
    font-size: 18px;
    color: #FFF94F;
}

.stream-detail small {
    display: block;
    margin: 5px 0;
    font-size: 12px;
    color: #FFFFFF;
}

/* Remove focus outline from Leaflet interactive elements */
.leaflet-interactive:focus {
    outline: none;
}

/* Also remove from any SVG elements */
svg.leaflet-interactive:focus {
    outline: none;
}

/* Remove from clickable paths */
path.leaflet-interactive:focus {
    outline: none;
}

/* Marching Ants Animation */
@keyframes marchingAnts {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -20;
    }
}

.animated-river {
    animation: marchingAnts var(--march-duration, 1000ms) linear infinite;
}

/* Gauge Info Display */
#gauge-status {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(93, 93, 129, 0.95);
    color: #FFF94F;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    z-index: 1000;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.gauge-header {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.gauge-flow {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0;
}

.gauge-flow strong {
    color: #80FFEC;
}

.gauge-desc {
    font-size: 12px;
    color: #FFD700;
    margin: 4px 0;
}

.gauge-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 6px;
}

.gauge-stage {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
}


/* Footer */
footer {
    background-color: #16213e;
    padding: 20px 40px;
    text-align: center;
    font-size: 14px;
    color: #aaa;
}

footer a {
    color: #80FFEC;
    text-decoration: none;
}

footer a:hover {
    color: #FFF94F;
}