
/* Top Page */
.top_red_bar {
    position: fixed;
    top: 0%;
    left: 0%;
    width: 100%;
    height: 60px;
    justify-content: center;
    align-items: center;
    display: flex;
    text-align: center;
    z-index: 1000;
    background-color: #d63c45  
}

.top_red_bar_text {
    text-align: center;
    color: white;
    font-size: 35px;
    font-weight: bold
}

.top_menu_bar {
    position: fixed; 
    top: 60px;
    left: 0%;
    justify-content: space-between; 
    width: 100%; 
    height: 120px;
    display: flex; 
    align-items: center; 
    z-index: 1001;
    background-color: white;
}

/* Menu Bar */
.logo_link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding-left: 20px;
    margin: 0;
    
}

.nav_links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav_item {
    text-decoration: none;
    color: #111;
    font-size: 16px;
    font-weight: 450;
    padding: 18px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
    max-height: 20px;
}

.nav_item:hover {
    color: white;
    background-color: #005baa;
    transform: translateY(-3px)
}

.nav_item.active {
    background-color: #005baa;
    color: white
}

.nav_profile img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
    
}

.nav_profile span {
    margin: 0;
}

/* Stations List Bar */

.station_list {
    display: inline-flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
    padding: 20px 24px;
}

.station_card {
    display: block;
    text-decoration: none;
    color: #111;
    font-size: 14px;
    padding: 12px;
    width: fit-content;
    border-radius: 18px;
    border: 3px solid #d3cfcf;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.station_card:hover {
    color: white;
    background-color: #005baa;
}

.station_card_content {
    padding-top: 70px;
    padding-left: 25px;
}
.station_card h2,
.station_card h3 {
    margin: 0;
}

.station_list_text {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: absolute;
    left: 0%;
    top: 40px;
}

/* Footer */
.site_footer {
    margin-top: 60px;
    padding: 20px 16px 28px;
    border-top: 1px solid #e3e3e3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.site_footer_text {
    margin: 0;
    line-height: 1.5;
}

.site_footer_link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site_footer_link:hover {
    background-color: #f3f3f3;
    color: #111;
    transform: translateY(-1px)
}

.site_footer_icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Main Page */

.main_page_img {
    display: block;
    align-items: center;
    text-decoration: none;
    padding-top: 180px;
    left: 0%;
    width: 100%;
    
}

.main_page_small_img {
    text-decoration: none;
    padding: 25px;
    width: 500px;
    border-radius: 32px;
}

.main_p_side_by {
    display: flex;
    flex-direction: row;
}

.main_page {
    /* padding-top: 275px; */
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
}

.main_p_container {
    width: min(1100px, 92%);
}

.text_title {
    color: #005baa;
    font-size: 33px;
    margin: 0;
    padding: 15px;
}

.text_subtitle {
    color: #666;
    font-size: 18px;
    margin: 0;
    padding: 10px;
}

.main_p_button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 18px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    background-color: #d63c45;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.main_p_button:hover {
    background: #b00020;
    transform: translateY(-3px)
}

/*---Public Dashboard---*/

.status_bar {
    position: fixed;
    display: flex;
    top: 230px;
    left: 0;
    width: 100%;
    height: 50px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    z-index: 1003;
    background-color: white;
    color: black;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.status_bar a {
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.status_bar a:hover {
    transform: translateY(-3px);
}

.status_link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    background: #f7f7f8;
    border: 3px solid #d3cfcf;
    border-radius: 999px;
    padding: 6px 14px;
    line-height: 1;
}

.status_link:hover {
    background: #005baa;
    color: white;
    border: 2px solid #d3cfcf
}

.online_dot,
.offline_dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #333;
    display: inline-block;
}

.online_dot {
    background-color: #18a558;
}

.offline_dot {
    background-color: #d63c45;
}

.p_status_text {
    margin: 0;
    color: inherit;
    font-size: 16px;
    line-height: 1;
}


.p_time_bar {
    position: fixed;
    display: flex;
    top: 180px;
    left: 0%;
    width: 100%;
    height: 50px;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1002;
    background-color: #d63c45;
    color: white;
}

.p_time_bar h1 {
    font-size: 26px;
}

.unit_toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    
}

.unit_toggle a {
    text-decoration: none;
    color: #333;
    padding: 8px 14px;
    border: 2px solid #d3cfcf;
    background: white;
    border-radius: 10px;
    color: black;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.unit_toggle a:hover {
    color: white;
    background: #005baa;
    transform: translateY(-3px)
}

.unit_toggle a.active_unit {
    background: #005baa;
    color: white;
    border-color: #005baa;
}

/* Static Img Cards */

.p_solar_img {
    object-fit: cover; 
    width: 150px; 
    height: 150px;
    flex-shrink: 0;
}

.p_solar_card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 420px;
}

.p_dash_text {
    flex: 1
}

.p_dash_text h1 {
    margin: 0 0 6px 0;
    font-size: 24px;
}

.p_station_card h1,
.p_station_card h3 {
    margin: 0;
}

.p_station_card h1 {
    margin-bottom: 8px;
}
.p_station_card h3 {
    margin-bottom: 18px;
}

.p_station_content {
    padding-top: 20px;
    padding-left: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
}

/* Cards */

.p_station_card {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    border: 3px solid #d3cfcf;
    background: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 20px 18px;
    gap: 28px;
    overflow: hidden;
}

.p_temp_card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    width: fit-content
}

.thermo_widget {
    position: relative;
    width: 60px;
    height: 175px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: flex-end;
}

.thermo_tube {
    position: relative;
    width: 16px;
    height: 160px;
    border: 3px solid #333;
    border-radius: 20px;
    background: white;
    overflow: hidden;
    display: flex;
    align-items: flex-end
}

.thermo_fill {
    width: 100%;
    background: linear-gradient(to top, #d63c45, #ff6b6b);
    border-radius: 0 0 14px 14px;
}

.thermo_bulb {
    width: 36px;
    height: 40px;
    border-radius: 50%;
    background: #d63c45;
    border: 3px solid #333;
    margin-top: -16px;
    z-index: 20;
}


.temp_text h1,
.temp_text h2 {
    margin: 0
}

.temp_text h2{
    margin-top: 12px
}

.pressure_card {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    width: fit-content;
}

.pressure_widget {
    width: 90px;
    height: 90px;
    margin: 4px;
    display: flex;
    align-items: center;
    justify-items: center;
}

.pressure_circle {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: white;
    border: 3px solid #333;
}

.pressure_needle {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 4px;
    height: 42px;
    background: #d63c45;
    border-radius: 4px;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(deg);
    
}

.pressure_center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: black;
    border-radius: 50%;
    transform: translate(-50%, -50%);

}

.tick_label {
    position: absolute;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.tick {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 12px;
    background: #333;
    border-radius: 2px;
    transform-origin: 50% 39px;
}

.tick_small {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 8px;
    background: #666;
    border-radius: 2px;
    transform-origin: 50% 39px;
}

.tick_label1 {
    left: -25px;
    bottom: 10px;
    transform: rotate(60deg);
}

.tick_label2 {
    left: 20px;
    top: -18px;
}

.tick_label3 {
    left: 70px;
    bottom: 10px;
    transform: rotate(-60deg)
}

.tick1 { transform: translateX(-50%) rotate(-120deg);}
.tick2 { transform: translateX(-50%) rotate(-60deg);}
.tick3 { transform: translateX(-50%) rotate(0deg);}
.tick4 { transform: translateX(-50%) rotate(60deg);}
.tick5 { transform: translateX(-50%) rotate(120deg);}

.wind_card {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    width: fit-content;
}

.wind_widget {
    width: 200px;
    height: 190px;
    margin: 4px;
    display: flex;
    align-items: center;
    justify-items: center;
}

.wind_compass {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: white;
    border: 3px solid #333;
    overflow: visible;
}

.wind_arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform-origin: 100% 50%;
}

.wind_arrow_tail {
    position: absolute;
    width: 48px;
    height: 12px;
    background: #14a8e5;
    top: 50%;
    left: 28px;
    border-radius: 10px;
    transform: translateY(-50%)
}

.wind_arrow_head {
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-right: 34px solid #13a8e5;
    border-radius: 8px;
    transform: translateY(-50%);
}

.wind_center {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #333;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.compass_label {
    position: absolute;
    font-size: 24px;
    font-weight: 800px;
    color: black;
}

.compass_label_s {
    position: absolute;
    font-size: 20px;
    font-weight: 700px;
    color: #444;
}

.north {
    top: -30px;
    left: 50%;
    transform: translateX(-50%)
}

.ne {
    top: -0px;
    right: -15px;
    transform: translateX(-50%)
}

.east {
    top: 50%;
    right: -19px;
    transform: TranslateY(-50%)
}

.se {
    bottom: -0px;
    right: -13px;
    transform: translateX(-50%)
}

.south {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%)
}

.sw {
    bottom: 0px;
    left: 8px;
    transform: translateX(-50%);
}

.west {
    top: 50%;
    left: -25px;
    transform: translateY(-50%);
}


.nw {
    top: -2px;
    left: 10px;
    transform: translateX(-50%) 
}

.wind_tick {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 24px;
    background: #333;
    border-radius: 2px;
    transform-origin: 50% 74px;
}

.wind_tick_s {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 18px;
    background: #666;
    border-radius: 2px;
    transform-origin: 50% 74px;
}

.wind_tick_ss {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 12px;
    background: #888;
    border-radius: 2px;
    transform-origin: 50% 74px;
}

.wind_tick_n { transform: translateX(-50%) rotate(0deg); }
.wind_tick_nne { transform: translateX(-50%) rotate(22.5deg); }
.wind_tick_ne { transform: translateX(-50%) rotate(45deg); }
.wind_tick_ene { transform: translateX(-50%) rotate(67.5deg); }

.wind_tick_e { transform: translateX(-50%) rotate(90deg); }
.wind_tick_ese { transform: translateX(-50%) rotate(112.5deg);}
.wind_tick_se { transform: translateX(-50%) rotate(135deg); }
.wind_tick_sse { transform: translateX(-50%) rotate(157.5deg); }

.wind_tick_south { transform: translateX(-50%) rotate(180deg); }
.wind_tick_ssw { transform: translateX(-50%) rotate(202.5deg); }
.wind_tick_sw { transform: translateX(-50%) rotate(225deg); }
.wind_tick_wsw { transform: translateX(-50%) rotate(247.5deg)}

.wind_tick_w { transform: translateX(-50%) rotate(270deg); }
.wind_tick_wnw { transform: translateX(-50%) rotate(292.5deg)}
.wind_tick_nw { transform: translateX(-50%) rotate(315deg)}
.wind_tick_nnw { transform: translateX(-50%) rotate(337.5deg)}

.p_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background-color: #005baa;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Owner Dashboard */
.toggle_button button{
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    color: white;
    border: none;
    border-radius: 4px;
    background-color: black;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.toggle_button .maintenance_on {
    background-color: #d63c45;
}

.toggle_button .maintenance_on:hover {
    background-color: #b00020;
}

.toggle_button .maintenance_off {
    background-color: #2e7d32;
}

.toggle_button .maintenance_off:hover {
    background-color: #1b5e20;
}

.toggle_button button:hover {
    transform: translateY(-1px);
}

.toggle_button button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.toggle_button .button_text {
    font-size: 1.5rem;
    font-weight: 700;
}

.popup_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.popup_box {
    background: white;
    padding: 24px;
    border-radius: 8px;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.popup_close {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 16px;
    background: #005baa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* Graphs */

.graph_bar {
    position: fixed;
    top: 175px;
    padding-bottom: 14px;
    left: 0%;
    justify-content: center;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    z-index: 1003;
    background-color: white;
    border-bottom: 2px solid #d3cfcf;
}

.graph_nav {
    display: flex;
    gap: 14px;
    align-items: center
}

.graph_nav_item {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 22px;
    border: 3px solid #d3cfcf;
    border-radius: 12px;
    background-color: white;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.graph_nav_item:hover {
    color: white;
    background-color: #005baa;
    border-color: #005baa;
    transform: translateY(-2px);
}

.graph_nav_item.active {
    color: white;
    background-color: #005baa;
    border-color: #005baa;
}

.graph_page {
    padding-top: 275px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
}

.graph_container {
    width: min(1100px, 92%);
}

.graph_title {
    margin: 0 0 8px 0;
    font-size: 34px;
    color: #333;
}

.graph_subtitle {
    margin: 0 0 22px 0;
    font-size: 17px;
    color: #444;
}

.graph_form_card,
.graph_preview_card {
    background: white;
    border: 3px solid #d3cfcf;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    margin-bottom: 22px;
}

.graph_form_row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.graph_label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.graph_input,
.graph_select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 2px solid #d3cfcf;
    border-radius: 10px;
    background: white;
    color: #333;
    box-sizing: border-box;
}

.graph_input:focus,
.graph_select:focus {
    outline: none;
    border-color: #005baa;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.graph_checkbox_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px 18px;
    margin-top: 6px;
}

.graph_checkbox_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid #d3cfcf;
    border-radius: 12px;
    background-color: white;
    transition: border-color 0.2s ease, transform 0.2s ease
}

.graph_checkbox_item:hover {
    border-color: #005baa;
    transform: translateY(-1px)
}

.graph_checkbox_input {
    width: 18px;
    height: 18px;
    accent-color: #005baa;
    flex-shrink: 0;
}

.graph_button_row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.graph_checkbox_label {
    font-size: 15px;
    color: black;
    cursor: pointer;
}

.graph_submit_button,
.graph_clear_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    background-color: #005baa;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.graph_item {
    justify-content: center;
}

.graph_submit_button {
    color: white;
    background-color: #005baa;
}

.graph_submit_button:hover {
    background-color: #00498a;
    transform: translateY(-2px);
}

.graph_clear_button {
    color: white;
    background-color: #d63c45;
}

.graph_clear_button:hover {
    background-color: #b00020;
    transform: translateY(-2px);
}

.graph_preview_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.graph_preview_title {
    margin: 0 0 14px 0;
    font-size: 24px;
    color: #333;
}

.graph_image_wrap {
    display: wrap;
    justify-content: center;
    overflow-x: auto
}

.graph_image {
    width: 100%;
    max-width: 1000px;
    display: block;
    background: white;
}

.graph_border {
    border: 3px solid #d3cfcf;
    border-radius: 16px;
}

@media (max-width: 900px) {
    .graph_form_split {
        grid-template-columns: 1fr;
    }

    .graph_checkbox_grid {
        grid-template-columns: 1fr;
    }
}

.graph_preset_row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.graph_preset_button {
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 700;
    color: black;
    background: white;
    border: 3px solid #d3cfcf;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.graph_preset_button:hover {
    background: #005baa;
    color: white;
    transform: translateY(-2px)
}

.graph_preset_clear {
    color: #d63c45;
    border-color: #d63c45;
}

.graph_preset_color:hover {
    background-color: #d63c45;
    color: white;
}

.dashboard_table_card {
    margin-top: 28px;
    background: white;
    border: 2px solid #d3cfcf;
    border-radius: 18px;
    padding: 22px;
    box-sizing: border-box;
}

.dashboard_table_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.dashboard_table_header h2 {
    margin: 0;
    font-size: 22px;
    color: #111827;
}

.day_switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.day_picker_form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.day_input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cfd4dc;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: white;
}

.day_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #005baa;
    border-radius: 10px;
    background: white;
    color: #005baa;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

.day_button:hover {
    background: #005baa;
    color: white;
}

.dashboard_table_wrap {
    overflow-x: auto;
    border-radius: 12px;
}

.dashboard_table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    font-size: 14px;
}

.dashboard_table thead th {
    background: #f3f6fa;
    color: #1f2937;
    font-weight: 700;
    text-align: center;
    padding: 14px 12px;
    white-space: nowrap;
    border-bottom: 2px solid #e5e7eb;
}

.dashboard_table tbody td {
    text-align: center;
    padding: 12px;
    border-bottom: 1px solid #eceff3;
    white-space: nowrap;
}

.dashboard_table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.dashboard_table tbody tr:hover {
    background: #eef5ff;
}

/* Analysis Page */
.analysis_page {
    padding-top: 290px;
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
}

.analysis_container {
    width: min(1100px, 92%);
}

.analysis_form_card,
.analysis_summary_card,
.analysis_detail_card,
.analysis_empty_card {
    background: white;
    border: 3px solid #d3cfcf;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06)
}

.analysis_summary_header {
    margin-bottom: 16px;
}

.analysis_section_title {
    margin: 0 0 6px 0;
    font-size: 24px;
    color: black;
}

.analysis_section_subtitle {
    margin: 0;
    font-size: 15px;
    color: #333;
}

.analysis_stats_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
}

.analysis_stat_card {
    border: 2px solid #d3cfcf;
    border-radius: 14px;
    padding: 18px;
    background: white;
}

.analysis_stat_label {
    font-size: 14px;
    font-weight: 700;
    color: #666;
}

.analysis_stat_value {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
}

.analysis_stat_meta {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.analysis_details_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px 20px;
    margin-top: 16px;
}

.analysis_detail_item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 2px solid #d3cfcf;
    border-radius: 12px;
    padding: 14px 16px;
    background: white;
}

.analysis_detail_label {
    font-size: 14px;
    font-weight: 700;
    color: #666;
}

.analysis_detail_value {
    font-size: 16px;
    color: #333;
    word-break: break-word;
}

.analysis_empty_text {
    margin: 8px 0 0 0;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .analysis_stats_grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .analysis_range_row,
    .analysis_details_grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .analysis_stats_grid {
        grid-template-columns: 1fr;
    }
}    

.trend_img {
    padding-bottom: 5px;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

/* Map Page */
.loading_text {
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
}

/* 404 Page */

.error_page {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
}

.error_page h1 {
    margin: 0;

}

.error_page a {
    background-color: #d63c45;
    display: inline-block;
    margin-top: 1px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Login Page */

.login_page {
    padding-top: 180px;
    display: flex;
    justify-content: center;
}

.login_card {
    width: 400px;
    background: white;
    border: 3px solid #d9d9d9;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.login_card h1 {
    margin-top: 0;
    margin-bottom: 20px
}

.login_form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login_form input {
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 4px;
}

.login_form button {
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
    color: white;
    background-color: #d63c45;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.login_form button:hover {
    background-color: #b00020;
    transform: translateY(-1px)
}

.login_links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.login_option_button {
    display: inline;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #005baa;
    background: transparent;
    border: none;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.login_option_button:hover {
    color: #00498a;
    background-color: rgba(0, 91, 170, 0.08);
}

.login_error {
    color: #b00020;
    font-weight: 600;
}

/*---Settings Page---*/
.settings_page {
    padding: 180px 24px 48px;
    display: flex;
    justify-content: center;
    background: #f8fafc;
}

.settings_container {
    width: min(1100px, 100%);
}

.settings_header {
    margin-bottom: 28px;
}

.settings_title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.settings_subtitle {
    font-size: 1rem;
    color: #6b7280;
}

.settings_section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 28px;
}

.settings_section_head {
    margin-bottom: 24px;
}

.settings_section_head h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.settings_section_head p {
    color: #6b7280;
    margin: 0;
}

.settings_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.settings_card {
    background: #fcfcfd;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.settings_card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #111827;
}

.settings_help {
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
}

.settings_form {
    display: grid;
    gap: 16px;
}

.form_group {
    display: grid;
    gap: 7px;
}

.form_group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.settings_results {
    margin-top: 24px;
    min-width: 0;
}

.settings_results h4 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 1rem;
}

.settings_table_wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.station_access_row {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.station_access_row + .station_access_row {
    margin-top: 10px;
}

.station_access_row span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 900px) {
    .main_page .main_p_side_by {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 24px;
    }

    .main_page .main_p_side_by > div {
        width: 100%;
        min-width: 0;
    }

    .main_page .main_page_small_img {
        display: block;
        box-sizing: border-box;
        width: 100%;
        max-width: 500px;
        height: auto;
        padding: 15px;
        margin: 0 auto;
    }

    .main_page .text_title {
        font-size: 27px;
        padding: 12px 10px;
        overflow-wrap: anywhere;
    }

    .main_page .text_subtitle {
        overflow-wrap: anywhere;
    }
}
@media (max-width: 600px) {
    .main_page .main_p_container {
        width: 94%;
    }

    .main_page .text_title {
        font-size: 24px;
    }

    .main_page .text_subtitle {
        font-size: 17px;
        line-height: 1.6;
    }

    .main_page .main_page_small_img {
        padding: 10px;
    }
}

.mobile_nav_toggle {
    display: none;
}

@media (max-width: 900px) {
    .top_red_bar_text {
        font-size: clamp(18px, 4.5vw, 26px);
        line-height: 1.15;
        margin: 0;
        padding: 0 12px;
    }

    .top_menu_bar {
        box-sizing: border-box;
        padding-right: 16px;
    }

    .logo_link {
        padding-left: 12px;
        min-width: 0;
    }

    .logo_link img {
        display: block;
        max-width: min(60vw, 260px);
        max-height: 100px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .mobile_nav_toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
        margin-left: 12px;
        padding: 0;
        border: 1px solid #005baa;
        border-radius: 8px;
        background-color: white;
        color: #005baa;
        font-size: 30px;
        cursor: pointer;
    }

    .mobile_nav_toggle:focus-visible {
        outline: 3px solid #005baa;
        outline-offset: 3px;
    }

    /* Panel begins below the fixed white menu bar. */
    .top_menu_bar .nav_links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 12px;
        background-color: white;
        border-top: 1px solid #ddd;
        box-shadow: 0 8px 16px rgb(0 0 0 / 15%);
        max-height: calc(100dvh - 180px);
        overflow-y: auto;
    }

    .top_menu_bar .nav_links.is_open {
        display: flex;
    }

    .top_menu_bar .nav_item {
        box-sizing: border-box;
        width: 100%;
        min-height: 48px;
        max-height: none;
        padding: 14px 16px;
        justify-content: flex-start;
        white-space: normal;
    }

    .top_menu_bar .nav_item:hover {
        transform: none;
    }
}

/* Header layout */
.top_menu_bar .menu_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
}

.top_menu_bar .logo_link {
    flex-shrink: 0;
}

.top_menu_bar .nav_profile {
    gap: 8px;
}

@media (max-width: 900px) {
    .top_menu_bar {
        z-index: 1100;
    }
}

/* Desktop nav center */
@media (min-width: 901px) {
    .top_menu_bar .menu_bar {
        justify-content: flex-start;
        gap: 18px;
    }
}

/*---Smooth Transition Between Pages---*/
@view-transition {
    navigation: auto;
}

::view-transition-group(root) {
    animation-duration: 0.25s;
}


/* Enable for page translate out and in
::view-transition-group(root) {
    animation-duration: 1s;
    animation-timing-function: ease;
}

::view-transition-old(root) {
    animation-name: slide-out;
}

::view-transition-new(root) {
    animation-name: slide-in;
}

@keyframes slide-out {
    to {
        translate: -100vw;
    }
}

@keyframes slide-in {
    from {
        translate: 100vw;
    }
}

*/
