/* Minnesota Lake Explorer Styles */

/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Header */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 900;
    padding-top: 60px;
}

.controls {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.control-group {
    margin-bottom: 1rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.search-container {
    display: flex;
    gap: 0.5rem;
}

#search-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

#clear-search {
    background-color: #95a5a6;
}

#clear-search:hover {
    background-color: #7f8c8d;
}

select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

#results-count {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #7f8c8d;
    /* display: none; // Keep this if you want to control visibility via JS */
}

/* Search results list styles */
#search-results-list {
    margin-top: 0.75rem;
    max-height: 200px; /* Adjust as needed */
    overflow-y: auto;
    /* border: 1px solid #eee; */ /* Removed default border */
    border-radius: 4px;
}

#search-results-list.search-results-border {
    border: 1px solid #eee;
}

.search-result-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-item.active {
    background-color: #e0eafc; /* A light blue to indicate active selection */
    font-weight: 600;
}

/* Lake details panel */
#lake-details {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: none;
    background-color: #fff;
    border-top: 1px solid #eee;
}

#lake-details.active {
    display: block;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#lake-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

#close-details {
    background-color: transparent;
    color: #95a5a6;
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
}

#close-details:hover {
    color: #7f8c8d;
    background-color: #f8f9fa;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.info-table th {
    width: 40%;
    font-weight: 600;
    color: #7f8c8d;
}

/* Map container */
.map-container {
    flex: 1;
    position: relative;
    padding-top: 60px;
}

#map {
    height: 100%;
    width: 100%;
}

/* Fish species styles */
.fish-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.fish-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1rem;
    background-color: #f9f9f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fish-card h4 {
    margin: 0 0 0.25rem;
    color: #2c3e50;
}

.scientific-name {
    font-style: italic;
    color: #7f8c8d;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.fish-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat {
    flex: 1;
    min-width: 100px;
    background-color: #f0f4f8;
    padding: 0.5rem;
    border-radius: 4px;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #7f8c8d;
}

.stat-value {
    display: block;
    font-weight: 600;
    color: #2c3e50;
}

.length-distribution {
    margin-top: 1rem;
}

.length-distribution h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.length-chart {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.length-bar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 20px;
}

.length-label {
    width: 30px;
    font-size: 0.75rem;
    text-align: right;
    color: #7f8c8d;
}

.length-bar {
    height: 12px;
    background-color: #3498db;
    border-radius: 2px;
}

.length-count {
    font-size: 0.75rem;
    color: #7f8c8d;
    min-width: 20px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        padding-top: 60px;
    }
    
    .map-container {
        height: 60vh;
    }
    
    #lake-details {
        max-height: 40vh;
    }
    
    .fish-list {
        grid-template-columns: 1fr;
    }
} 