body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Search Control Styles */
.leaflet-control-search {
    background: white;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    margin: 10px;
}

.search-input {
    width: 200px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.leaflet-top.leaflet-right .leaflet-control-search {
    margin-right: 10px;
}

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

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    height: 90vh;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-body {
    max-height: calc(80vh - 100px);
    overflow-y: auto;
    flex: 1;
}

#modalChartContent {
    flex: 1;
    min-height: 0;
    padding: 20px;
    background: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

#obsChart {
    flex: 1;
    width: 100%;
    height: 100%;
}

/* Time picker styles */
.time-picker-control {
    margin-bottom: 10px !important;
}

.display-control {
    margin-bottom: 10px !important;
}

.display-control select {
    width: 200px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

#time-picker {
    width: 200px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

#time-picker::-webkit-calendar-picker-indicator {
    cursor: pointer;
}

.station-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.title-control {
    margin-left: 10px !important;
    background: white;
    padding: 8px 12px;
    border: 2px solid #666;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.leaflet-left {
    display: flex;
    align-items: center;
    padding-top: 10px;
}

.station-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
    line-height: 1.6;
}

.filter-control,
.display-control {
    background: white;
    padding: 5px;
    margin-bottom: 5px;
}

#station-type-filter,
#display-mode-filter {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 14px;
    cursor: pointer;
    background: white;
    margin: 0;
    min-width: 120px;
}

.value-marker {
    background: none !important;
    border: none !important;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    padding: 0 20px;
}

.view-btn {
    padding: 8px 16px;
    border: 1px solid #2b6cb0;
    background: white;
    color: #2b6cb0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #ebf8ff;
}

.view-btn.active {
    background: #2b6cb0;
    color: white;
}

/* Table styles */
.obs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.obs-table th,
.obs-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.obs-table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
}
