/* Attribution styles moved to external CSS file */
.data-source {
    margin-bottom: 0.5rem;
}

.info-icon {
    cursor: pointer;
    color: #0d6efd;
    font-weight: bold;
    padding: 0 5px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.info-icon:hover {
    text-decoration: none;
    color: #0a58ca;
}

/* Custom tooltip styling - with increased specificity */
body .tooltip,
html body .tooltip {
    position: absolute !important;
    z-index: 9999 !important;
    display: block !important;
    margin: 0 !important;
    font-family: var(--bs-font-sans-serif) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-break: normal !important;
    word-spacing: normal !important;
    white-space: normal !important;
    line-break: auto !important;
    font-size: 14px !important; /* Explicit px size */
    word-wrap: break-word !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body .tooltip.show,
html body .tooltip.show {
    opacity: 0.98 !important;
}

body .tooltip .tooltip-inner,
html body .tooltip .tooltip-inner {
    max-width: 350px !important;
    padding: 12px 16px !important;
    color: #fff !important;
    text-align: center !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* Custom tooltip arrow styling with increased specificity */
body .tooltip .tooltip-arrow,
html body .tooltip .tooltip-arrow {
    position: absolute !important;
    display: block !important;
    width: 12px !important;
    height: 6px !important;
}

body .tooltip .tooltip-arrow::before,
html body .tooltip .tooltip-arrow::before {
    position: absolute !important;
    content: "" !important;
    border-color: transparent !important;
    border-style: solid !important;
}

body .bs-tooltip-top .tooltip-arrow,
html body .bs-tooltip-top .tooltip-arrow {
    bottom: 0 !important;
}

body .bs-tooltip-top .tooltip-arrow::before,
html body .bs-tooltip-top .tooltip-arrow::before {
    top: -1px !important;
    border-width: 6px 6px 0 !important;
    border-top-color: rgba(0, 0, 0, 0.9) !important;
}

/* Direct styling for the tooltip */
#weather-details .info-icon[data-bs-toggle="tooltip"] + .tooltip .tooltip-inner {
    font-size: 14px !important;
    padding: 12px 16px !important;
    max-width: 350px !important;
}

.unavailable {
    background-color: #ffff99;
    padding: 0 4px;
    border-radius: 3px;
    font-style: italic;
}

.cache-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.cache-fresh {
    color: #198754;
}

.cache-stale {
    color: #fd7e14;
}

/* Custom toggle colors for Test Mode */
.form-check-input.normal-mode {
    background-color: #198754;
    /* Bootstrap green */
    border-color: #198754;
}

.form-check-input.test-mode {
    background-color: #dc3545;
    /* Bootstrap red */
    border-color: #dc3545;
}

#refresh-btn {
    margin-left: 10px;
    padding: 3px 10px;
    font-size: 0.9rem;
}

#data-status-btn {
    margin-left: 10px;
    padding: 3px 10px;
    font-size: 0.9rem;
}

/* Style for cached data display (REMOVED - Handled by modal now) */
/* .cached-data-banner {
    background-color: #fff3cd;
    border: 2px dashed #ffc107;
    border-left: 10px solid #ffc107;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #856404;
} */
/* .cached-data-content {
    background-color: #fff8e6;
    border: 1px solid #ffeeba;
    padding: 15px;
} */
/* Wind gust tooltip styles removed to standardize with other tooltips */

.weather-value-label {
    display: inline-block;
    /* Allows setting width */
    min-width: 250px;
    /* Increased from 230px to accommodate the longest label */
    /* Optional: margin-right: 5px; */
}

.threshold-info {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.85rem;
    color: #6c757d;
    border-left: 1px solid #ddd;
    padding-left: 10px;
    width: 100px;
    text-align: right;
}

.data-age {
    font-size: 0.8rem;
    color: #fd7e14;
    font-style: italic;
    display: block;
    margin-top: 2px;
    margin-left: 12px;
    /* Indent slightly */
}
