/* Import new font */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600&display=swap');

/* Modern, clean styling for HydroInsight */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    background: url('/images/wwp1.jpg') no-repeat center center fixed;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.65); /* More transparent */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

header {
    background: rgba(255, 255, 255, 0.1); /* Very transparent */
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    color: #0b8eca;
    font-size: 3.2em;
    font-weight: 600;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4),
                 0 0 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

header p {
    color: #0b8eca;
    font-size: 1.2em;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(0, 0, 0, 0.2);
    margin: 5px 0;
}

header p small {
    opacity: 1;
    font-weight: 300;
}

.controls {
    background: rgba(248, 249, 250, 0.45);
    padding: 20px 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e9ecef;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9em;
}

.control-group select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 0.9em;
    transition: border-color 0.3s ease;
}

.control-group select:focus {
    outline: none;
    border-color: #2196F3;
}

.stats-panel {
    background: rgba(248, 249, 250, 0.45);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.65);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card h3 {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card span {
    font-size: 2em;
    font-weight: bold;
    color: #0b8eca;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.map-section, .chart-section {
    background: rgba(255, 255, 255, 0.65);
}

.map-section h2, .chart-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

#map {
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#chart {
    max-height: 400px;
}

.station-details {
    background: rgba(248, 249, 250, 0.45);
    padding: 30px;
    border-top: 1px solid #e9ecef;
}

.station-details h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

#stationInfo {
    background: rgba(255, 255, 255, 0.65);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: #202b35;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    header h1 {
        font-size: 2em;
    }
}

/* Status color indicators */
.status-good { color: #28a745 !important; }
.status-fair { color: #ffc107 !important; }
.status-poor { color: #dc3545 !important; }

/* Custom popup styling */
.leaflet-popup-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.popup-header {
    font-weight: bold;
    color: #2196F3;
    margin-bottom: 10px;
}

.popup-parameter {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 3px 0;
    border-bottom: 1px solid #eee;
}

.popup-parameter:last-child {
    border-bottom: none;
}

.popup-label {
    font-weight: 600;
    color: #495057;
}

.popup-value {
    color: #2196F3;
    font-weight: 500;
}

.social-links {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 20px;  /* Increased gap between icons */
}

.social-icon {
    width: 32px;  /* Increased from 24px */
    height: 32px; /* Increased from 24px */
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.1); /* Subtle hover effect */
    transition: all 0.2s ease;
}