/* main elements */
html {
    font-family: 'ABeeZee';
}

button, select, input {
    font-family: 'ABeeZee';
}

h1, h2 {
    font-family: 'ABeeZee';
}

body { 
    margin: 0 auto;  
    background: url('data/webb.png');
    background-repeat: repeat;
}

h2 {
    font-size: 1.2em;
}

.page-content {    
    max-width: 900px;
    margin: 0 auto;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; 
}

/* login */
#login-form {
    margin: 1em auto;
    background-color: white;
    padding: 30px;   
    border-radius: 8px;
    width: 60%;       
    border: 2px solid #1e3362;
}

label {
    display: block;
    margin-bottom: 8px;
    color: black;
    font-weight: bold;
}

.textual-input {
    width: 96%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.textual-input:focus {
    outline: none;
    border-color: #1e3362;
    box-shadow: 0 0 5px #1e3362;
}

#login-button {
    background-color: #1e3362;
    border: 2px solid #1e3362;
    color: #f3f3f3;
    width: 100%;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
}

#login-button:hover {    
    background-color: #f3f3f3;
    color: #1e3362;
}

/* header and navigation */
.header-icon {
    width:146px;
    margin-right:20px;
}

.header-icon-no-margin {
    width:146px;
}

nav {
    background: #3155a1;
    display: flex;
    align-items: center;
    padding: 10px 36px;
    border: 2px solid #3155a1;
}

nav h1 {
    font-size: 1.4em;    
    color: white;
    flex: auto;
    align-self: center;
    margin-block: 4px;
    padding-left: 8px;
}

.navigation {
    display: flex;
    justify-content: center;
}

.navigation a {
    font-size: 0.8em;
    margin: 0 5px;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    background-color: #1e3362;    
    border: 2px solid #1e3362;
    color: #f3f3f3;
    border-radius: 4px;
}

.navigation a:hover {
    background-color: #f3f3f3;
    color: #1e3362;
}

.navigation a.logout-button {    
    background-color: #4d0000;    
    border: 2px solid #4d0000;
}

.navigation a.logout-button:hover {
    background-color: #f3f3f3;
    color: #4d0000;
}

/* Other Graphs  */
.highcharts-figure {
    margin: 1em auto;
    padding-block: 10px;
    padding-inline: 20px;
    background-color: white;
    border: 2px solid #1e3362;
    border-radius: 6px;
}

#chart-container {
    width: 100%;
    height: 540px;
    font-family: 'ABeeZee';
}

/* index (different navigation) */
.index {
    margin-top: 20px;
    display: flex;
    justify-content: center;    
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.index a {
    width: 400px;
    font-size: 1.2em;
    margin: 0 5px;
    padding: 10px 15px;
    margin-block: 10px;
    text-decoration: none;
    font-weight: bold;
    background-color: #1e3362;    
    border: 2px solid #1e3362;
    color: #f3f3f3;
    border-radius: 4px;
}

.index a:hover {
    background-color: #f3f3f3;
    color: #1e3362;
}

.index a.logout-button {    
    background-color: #4d0000;    
    border: 2px solid #4d0000;
}

.index a.logout-button:hover {
    background-color: #f3f3f3;
    color: #4d0000;
}

/* Prediction gauge */
.table-with-prediction-container {
    margin: 1em auto;
}

.prediction-title {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;        
    background-color: white;
    border-inline: 2px solid #1e3362;
    border-top: 2px solid #1e3362;
    border-radius: 6px 6px 0px 0px;
}

.dashboard-container {
    display: flex;
    height: 60vh;       
    border: 2px solid #1e3362;
    border-radius: 0px 0px 6px 6px;
}
.form-section {
    width: 50%;
    background-color: #3155a1; 
    border-right: 2px solid #1e3362;
    border-radius: 0px 0px 0px 3px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gauge-section {
    width: 500px;
    height: 60vh;
    display: flex;        
    border-radius: 0px 0px 3px 0px;
    background-color: white;
    justify-content: center;
    align-items: center;
}

#prediction-gauge-container {    
    width: 500px;
    height: 350px;
    font-family: 'ABeeZee';
}

/* Prediction insertion table */
.table-input-edit {
    width: 90%;
    height: 16px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 0.5px solid;
    font-size: 16px;
}

#predict-button {
    padding-block: 8px;
    font-size: 18px;
    transition-duration: 0.2s;
    cursor: pointer;
    border: 0px;    
    border-block: 2px solid #3155a1;
    font-weight: bold;
    background-color: #1e3362;
    width: 100%;
    color: #f3f3f3;
    text-decoration: none;
    text-align: center;
}

#predict-button:hover {
    background-color: #f3f3f3;
    color: #1e3362;
    border-block: 2px solid #1e3362;
}

#insertion-table {
    /* Overall table styling */
    background-color: #f3f3f3; /* Light gray background */
    color: black; /* Dark text color */
}

#insertion-table thead {
    /* Header row styling */
    background-color: #1e3362; /* Blue header background */
    color: #f3f3f3; /* White header text */
}

#insertion-table tbody tr:nth-child(even) {
    /* Zebra striping for even rows */
    background-color: #f3f3f3;
}

#insertion-table tbody tr:hover {
    /* Hover effect */
    background-color: #e0e0e0;
}