/* Belt DB Geological Map Styles */

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

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

.header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 300;
}

.header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.main-container {
    display: flex;
    height: calc(100vh - 80px);
}

.actions-bar {
    flex: 0 0 250px;
    background-color: #f5f5f5;
    border-right: 2px solid #ddd;
    padding: 20px;
    overflow-y: auto;
}

.actions-bar h3 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.action-section {
    margin-bottom: 25px;
}

.action-button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

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

.action-button.secondary {
    background-color: #95a5a6;
}

.action-button.secondary:hover {
    background-color: #7f8c8d;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 13px;
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.search-button {
    width: 100%;
    padding: 6px;
    margin-top: 5px;
    background-color: #95a5a6;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

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

.map-container {
    flex: 2;
    position: relative;
    height: 100%;
}

.info-panel {
    flex: 0 0 350px;
    padding: 20px;
    background-color: #f5f5f5;
    overflow-y: auto;
    border-left: 2px solid #ddd;
    display: flex;
    flex-direction: column;
}

.info-panel h2 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.info-content {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.no-selection {
    color: #666;
    font-style: italic;
}

.kde-graph-container {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.kde-graph-container img {
    max-width: 100%;
    height: auto;
}

.data-table-container {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px;
    flex: 1;
    min-height: 300px;
}

.data-table-container h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

#zirconTable {
    width: 100%;
    height: 250px;
}

/* Custom marker colors using hue rotation with saturation for vibrant colors */
.marker-pre-belt { filter: hue-rotate(85deg) saturate(2.5) brightness(1.1); }        
.marker-lower-belt { filter: hue-rotate(145deg) saturate(2.5) brightness(1.1); }       
.marker-ravalli { filter: hue-rotate(265deg) saturate(2.5) brightness(1.2); }         
.marker-piegan { filter: hue-rotate(205deg) saturate(2.5) brightness(1.1); }           
.marker-missoula { filter: hue-rotate(325deg) saturate(2.5) brightness(1.1); }         
.marker-lemhi { filter: hue-rotate(25deg) saturate(2.5) brightness(1.1); }            /* Blue */
.marker-post-belt { filter: hue-rotate(215deg) saturate(3.5) brightness(1.4); }       
.marker-unknown { filter: hue-rotate(240deg) saturate(2.5) brightness(1.1); }        

/* Hover effects - decrease saturation by 1 */
.marker-pre-belt:hover { filter: hue-rotate(85deg) saturate(1.5) brightness(1.5); }
.marker-lower-belt:hover { filter: hue-rotate(145deg) saturate(1.5) brightness(1.5); }
.marker-ravalli:hover { filter: hue-rotate(265deg) saturate(1.5) brightness(1.5); }
.marker-piegan:hover { filter: hue-rotate(205deg) saturate(1.5) brightness(1.5); }
.marker-missoula:hover { filter: hue-rotate(325deg) saturate(1.5) brightness(1.5); }
.marker-lemhi:hover { filter: hue-rotate(25deg) saturate(1.5) brightness(1.5); }
.marker-post-belt:hover { filter: hue-rotate(215deg) saturate(2.5) brightness(1.9); }
.marker-unknown:hover { filter: hue-rotate(240deg) saturate(1.5) brightness(1.5); }        

.export-button {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

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

.stats-box {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.stats-box h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 13px;
}

/* Autocomplete styles */
.autocomplete-container {
    position: relative;
    width: 100%;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

.suggestion-item.highlighted {
    background-color: #3498db;
    color: white;
}

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

/* Single sample selection ring - separate element */
.selection-ring-marker {
    pointer-events: none !important;
}

.selection-ring {
    width: 35px;
    height: 35px;
    border: 3px solid #ff0000;
    border-radius: 50%;
    pointer-events: none;
    box-sizing: border-box;
    background: transparent;
}