/* assets/styles.css */

/* Import from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap");

body, h1, h2, h3, p, div {
    font-family: 'Oswald', sans-serif !important;
}

/* Background Colour */
body {
    background-color: rgb(12, 13, 26); /* very light grey */
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

/* Dashboard max-width constraint */
#app, #_dash-app-content {
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Title Container */
.title_container {
    display: flex;
    align-items: center;       /* Vertical centering */
    justify-content: space-between;   /* Space between title and buttons */
    height: 5%;             /* Adjust as needed */
    background-color:  #26262c;
    width: 90%;
    padding-left: 2%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 0.5%;
    border-radius: 10px
}

.dashboard_title {
    font-size: 32px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    color: white;
    padding-right: 1%;
    padding-left: 1%;
    margin: 0;
}

/* Navigation Buttons Container */
.nav_buttons_container {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-right: 2%;
}

/* Navigation Buttons */
.nav_button {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px 10px;
    text-decoration: none;
}

.nav_button:hover {
    color: #ccc;
}

.nav_button_active {
    color: #00CC96;
    border-bottom: 2px solid #00CC96;
}

.table_title {
    font-size: 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: normal;
    color: white;
    padding-right: 1%;
    padding-left: 1%;
    margin-left: 50%;
    margin-right: 5%;
    margin-bottom: 1%;
    border-radius: 10px
}

.table_subtitle {
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
    font-weight: normal;
    color: white;
    padding-right: 1%;
    padding-left: 1%;
    margin-left: 0%;
    margin-right: 5%;
    margin-bottom: 1%;
    border-radius: 10px
}

.section_title {
    font-size: 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: normal;
    color: white;
    padding-right: 1%;
    padding-left: 1%;
    margin-left: 6.5%;
    margin-right: 5%;
    margin-bottom: 1%;
    border-radius: 10px
}



.message_area {
    font-size: 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: normal;
    color: white;
    padding-right: 1%;
    padding-left: 1%;
}

/* Description Text */
.description_text {
    font-size: 18px;
    font-family: 'Oswald', sans-serif;
    font-weight: normal;
    color: #ccc;
    line-height: 1.6;
    padding-left: 1%;
    margin: 0;
}

/* Message Container */
.content_container {
    display: flex;
    background-color:  #26262c;
    width: 88%;
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 0.5%;
    padding-bottom: 0.5%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 0.5%;
    border-radius: 10px;
    flex-direction: column
}

/* Message Container */
.content_container_overview {
    display: flex;
    background-color:  #26262c;
    width: 88%;
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 0%;
    padding-bottom: 0.5%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 0.5%;
    border-radius: 10px;
    flex-direction: column
}

.chart_wrapper {
    display: flex;
    background-color:  #26262c;
    width: 90%;
    padding-left: 2%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 0.5%;
    border-radius: 10px
}

/* Chart*/
.chart {
    margin-top: 0%;
    margin-bottom: 0.5%;
    width: 100%;
    background-color: #26262c;
    padding: 1% 1%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    border-radius: 10px
}

/* Dash Tabs: hide default tab buttons and selectors */

.tabs_container > div:first-child {
    display: none !important;
}

.tabs_container > div:nth-child(2) {
    display: none !important;
}

.dropdown {
    background-color: #79797c 
}

/* Wind Farm Grid Layout */
.wind_farm_grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-left: 0%;
    margin-right: 0%;
    padding: 0px;
    border-radius: 10px
}

/* Wind Farm Grid Columns */
.wind_farm_column {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

/* Wind Farm Info Boxes */
.wind_farm_box {
    padding: 14px;
    background-color: #2a2a30;
    border: 1px solid #444;
    border-radius: 10px;
    flex: 1
}

.wind_farm_info_box {
    padding: 15px;
    background-color: #2a2a30;
    border: 1px solid #444;
    border-radius: 10px;
    flex: 1;
    width: 80%;
}


/* Wind Farm Box Titles */
.wind_farm_box_title {
    color: white;
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    text-align: center
    
}

.wind_farm_box_title_center {
    text-align: center;
}

/* Wind Farm Box Text */
.wind_farm_box_text {
    color: #90EE90;
    margin: 5px 0;
    font-size: 16px;
    text-align: end;
    margin-left: auto;
}

/* Wind Farm Info Heading */
.wind_farm_info_heading {
    color: #ffffff;
    margin: 5px 0;
    font-size: 16px;
    font-weight: bold;
}

/* Wind Farm Info Row */
.wind_farm_info_row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

/* Wind Farm Info Columns */
.wind_farm_info_columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wind_farm_info_column {
    flex: 1;
}

/* Wind Farm Status Active */
.wind_farm_status_active {
    color: #90EE90;
}

/* Wind Farm Generation Output */
.wind_farm_generation_output {
    color: #FFD700;
    margin: 5px 0;
    font-size: 20px;
    font-weight: normal;
}

/* Wind Farm Generation Time */
.wind_farm_generation_time {
    color: #ccc;
    margin: 5px 0;
    font-size: 12px;
}

/* Wind Farm Placeholder */
.wind_farm_placeholder {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    background-color: #1a1a1f;
    border-radius: 3px;
}

/* Generation Stats Container */
.gen_stats_container {
    display: flex;
    flex-direction: row;
    gap: 12.5px;
    justify-content: space-between;
    width: 99%;
}

/* Generation Stat Heading */
.gen_stat_heading {
    color: white;
    font-weight: bold;
    margin-top: 10%;
    margin-bottom: 2px;
    font-size: 14px;
}

/* Generation Stat Value */
.gen_stat_value {
    color: #90EE90;
    margin-top: 5px;
    font-size: 20px;
    margin: 0;
}
