.map {
    width: 100%;
    height: 60vh;
}


.set_transparency {
    top: 0.5em;
    right: .5em;
}

.legend_div {
    position: absolute;
    bottom: 1em;

    z-index: 10000;

    height: 70%;
    width: auto;

    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    overflow: hidden;
    padding: 6px;
    border: 1px solid black;
}

.legend-img{
    width: auto;
    height: 100%;
}


.legend_div.legend_left {
    left: 0.5em;
}

.legend_div.legend_right {
    right: 0.5em;
}

#popup_plot_div {
    width: 400px;
    height: 200px;
}

#plot_div_admin {
    width: 500px;
    height: 350px;
}


.ol-popup {
    position: absolute;
    left: -50px;

    background-color: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
}

.ol-popup:after,
.ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}

.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}

.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
}

.ol-popup-closer:after {
    content: "✖";
}



.hover-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner:after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    top: 40%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border-radius: 50%;
    border: 5px solid rgba(180, 180, 180, 0.6);
    border-top-color: rgba(0, 0, 0, 0.6);
    animation: spinner 0.6s linear infinite;
}

/* Card styles - these enhance the existing hover-card styles */
.status-card {
    height: 100%;
    border-radius: 0.375rem;
    overflow: hidden;
}

.content-card {
    margin-bottom: 1.5rem;
}

.card-header-primary {
    background-color: #0d6efd;
    color: white;
    border-bottom: 0;
}

.card-header-light {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.125);
}

.card-footer-indicator {
    padding: 0.5rem 1rem;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-top: 0;
}

.card-footer-neutral {
    padding: 0.5rem 1rem;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.125);
}

/* Data status specific styles */
.timestamp-info {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.timestamp-info i {
    margin-right: 0.5rem;
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.25rem;
    background-color: #ffc107;
    color: #212529;
}

.warning-badge i {
    margin-right: 0.25rem;
}

/* Page section spacing */
.page-section {
    margin-bottom: 1.5rem;
}

.page-title {
    margin-bottom: 1rem;
    text-align: center;
}

/* Add these new styles */
.status-indicator {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

.status-indicator i {
    margin-right: 0.25rem;
}

.status-good {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.status-outdated {
    background-color: rgba(255, 193, 7, 0.1);
    color: #fd7e14;
}

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}