/*** ===================================================================================== ***/
/*** WIDGET ***/
/*** ===================================================================================== ***/
.widgets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    font-size: 14px;
}

.widget {
    border: 1px solid #999999;
    border-radius: 0px;
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.widget.full-width {
    width: 100%;
}

.widget.half-width {
    width: calc(50% - 10px);
}

.output {
    margin-top: 10px;
    color: #333;
}

/*** ===================================================================================== ***/
/*** BUTTON ***/
/*** ===================================================================================== ***/

.cda-btn {
    margin: 5px 0;
    margin-right: 10px;
    padding: 7px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.test-btn {
    background-color: #FFE5B4;
    /* very light orange */
    color: #333333;
    text-align: center;
}

.prev-btn,
.next-btn {
    text-align: center;
}

.modern-button {
    background-color: darkblue;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.modern-button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modern-button:active {
    background-color: #004085;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(2px);
}

/*** ===================================================================================== ***/
/*** GAGE DATA ***/
/*** ===================================================================================== ***/

#gage_data {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 25px;
    overflow-x: auto;
    font-size: 1em;
}

#gage_data th {
    /* padding: 10px 5px; */
    text-align: center;
    background-color: #002366;
    color: #ffffff;
    border: 1px solid #ddd;
    font-weight: bold;
    padding-left: 10px;
}

#gage_data th a {
    color: #ffffff;
    text-decoration: underline;
}

#gage_data td {
    border: 1px solid #ddd;
    padding: 0px;
    text-align: center;
    color: #000000;
}

#gage_data td a {
    color: #0000EE;
    text-decoration: underline;
}

#gage_data td a:hover,
#gage_data th a:hover {
    text-decoration: underline;
}

#gage_data tr:nth-child(even) {
    background-color: #f9f9f9;
}

#gage_data tr:nth-child(odd) {
    background-color: white;
}

#gage_data tr:hover {
    background-color: #e0e0e0;
}

hr {
    border: none;
    border-top: 1px solid #000;
}

/*** ===================================================================================== ***/
/*** loadTime ***/
/*** ===================================================================================== ***/

#loadTime {
    display: none;
    /* Hide the div initially */
    position: fixed;
    bottom: 20px;
    left: 20px;
    /* Move to the left side */
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/*** ===================================================================================== ***/
/*** date-selection-wrapper ***/
/*** ===================================================================================== ***/

#date-selection-wrapper {
    width: 100%;
    /* full width */
    background-color: #f9f9f9;
    /* optional light background */
    padding: 10px 15px;
    margin-bottom: 20px;
    /* space between date selector and plot */
    border: 1px solid #ccc;
    border-radius: 5px;
    display: block;
    /* ensures it occupies full line */
    box-sizing: border-box;
    /* include padding in width */
}

/* Inputs and labels inline */
#date-selection-wrapper label,
#date-selection-wrapper input {
    margin-right: 10px;
    vertical-align: middle;
}

#date-selection-wrapper button {
    margin-top: 5px;
}

/*** ===================================================================================== ***/
/*** report-issue-button ***/
/*** ===================================================================================== ***/

/* CSS for Report Issue Button */
.report-issue-button {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Hover effect */
.report-issue-button:hover {
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Focus effect */
.report-issue-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 117, 252, 0.5);
}

/*** ===================================================================================== ***/
/*** note ***/
/*** ===================================================================================== ***/

/* Style for the entire note section */
.note {
    line-height: 1.6;
    margin: 20px 0;
}

/* Style for individual note text */
.noteText {
    display: block;
    margin-bottom: 10px;
}

/* ============================= */
/* instruction-span */
/* ============================= */
.instruction-span {
    color: #b8860b;
    font-weight: 600;
    background: #fff8dc;
    border: 1px solid #b8860b;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
    display: block;
    box-sizing: border-box;
    line-height: 1.35;
    font-family: inherit;
}

.instruction-span:focus {
    outline: 3px solid rgba(184, 134, 11, 0.15);
    outline-offset: 2px;
}

.instruction-span:hover {
    background: #fff6c9;
    cursor: default;
}

.instruction-span--small {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.notice {
    display: block;
    padding: 10px 14px;
    margin: 12px 0;

    /* Notice theme */
    background-color: #fff8cc;
    /* soft notice yellow */
    color: #5c4700;
    /* readable dark text */

    font-weight: 600;

    border: 1px solid #f0d878;
    /* subtle notice border */
    border-radius: 6px;

    line-height: 1.45;
    box-sizing: border-box;

    /* subtle separation from background */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    display: block;
    margin: 10px auto;
}

.loading-main-spinner {
    width: 60px;
    height: 60px;
    display: block;
    margin: 10px auto;
}

/*** ===================================================================================== ***/
/*** GAGE DATA ***/
/*** ===================================================================================== ***/

#forecast_comparison {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 25px;
    overflow-x: auto;
    font-size: 1em;
}

#forecast_comparison th {
    /* padding: 10px 5px; */
    text-align: center;
    background-color: #002366;
    color: #ffffff;
    border: 1px solid #ddd;
    font-weight: bold;
    padding-left: 10px;
}

#forecast_comparison th a {
    color: #ffffff;
    text-decoration: underline;
}

#forecast_comparison td {
    border: 1px solid #ddd;
    padding: 0px;
    text-align: center;
    color: #000000;
}

#forecast_comparison td a {
    color: #0000EE;
    text-decoration: underline;
}

#forecast_comparison td a:hover,
#forecast_comparison th a:hover {
    text-decoration: underline;
}

/* Rows 4–5, 8–9, 12–13... */
#forecast_comparison tr:nth-child(4n),
#forecast_comparison tr:nth-child(4n+1) {
    background-color: white;
}

/* Rows 6–7, 10–11, 14–15... */
#forecast_comparison tr:nth-child(4n+2),
#forecast_comparison tr:nth-child(4n+3) {
    background-color: #eeeeee;
}

#forecast_comparison tr:hover {
    background-color: #e0e0e0;
}