/* Basic reset */
body, h1, h2, p, ul, li, form, select, input, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Control the size of the logo */
.logo {
    margin-left: 5px;
    width: 250px;  /* Adjust the width as needed */
    height: 69px;  /* Maintain aspect ratio */
}

/* General body styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Header styling */
header {
    background: #357ca5;
    padding: 10px 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 17.4vh;
}

main {
    padding-top: 17.4vh; /* Replace with your header's actual height */
}

/* Navigation styling */
nav ul.nav {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul.nav li {
    display: inline;
}

nav ul.nav li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul.nav li a:hover {
    text-decoration: underline;
}

.page-title {
    margin-left: -0.5vh;
    text-align: center;
    color: #043e88;
    font-size: 20px;
    font-weight: 900;
}

/* Flash messages styling */
.flash-messages {
    margin: 10px 20px;
}

.flashes {
    list-style: none;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
}

.flashes li {
    margin-bottom: 5px;
}

/* Main content and sidebar styling */
.container {
    display: flex;
    margin: 0px !important;
    padding-inline: 0px;
    flex-direction: row;
    height: 82.6vh;
}

.sidebar {
    margin-top: 10px;
    color: white;
    background: -moz-linear-gradient(top left, #3b3b3b 0%, #868686 100%);
    background: -o-linear-gradient(top left, #3b3b3b 0%, #868686 100%);
    background: linear-gradient(to bottom right, #3b3b3b 0%, #868686 100%);
    flex: 0 0 250px; /* Adjust width as needed */
    width: 300px; /* Adjust width as needed */
    border-radius: 8px; /* Rounded corners */
    padding: 10px; /* Space inside the panel */
}

/* .sidebar h2 {
    margin-bottom: 5px;
    font-size: 25px;
    font-weight: bold;
} */

.sidebar label {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.sidebar input, .sidebar select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sidebar button {
    font-weight: bold;
    width: 100%;
    margin-top: 5px;
}

.submit-button {
    background-color: #106ebe;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #013664;
}

/* Main content section */
.plot-section h2 {
    margin-bottom: 15px;
}

#plot-container {
    position: relative;
}

#progress-container {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 4px;
}

#progress-bar {
    height: 100%;
    width: 0;
    background: #229b2c;
    border-radius: 4px;
    transition: width 0.5s;
}


/* Sidebar and Main Content Styling */
.main-content {
    flex: 1;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-box {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.value-box h2 {
    margin-bottom: 10px;
}

.prediction-value {
    font-size: 1.5em;
    color: #106ebe;
    font-weight: bold;
}

/* Plot Section Styling */
.plot-section {
    flex: 1;
}

/* Center content in the viewport */
.centered-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 60px); /* Adjust if you have a header height */
}

/* Login panel styling */
.login-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 400px; /* Max width of the panel */
    width: 100%; /* Full width up to max-width */
}

/* Form styling */
.login-panel form {
    display: flex;
    flex-direction: column;
}

.login-panel form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.login-panel form input {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-panel form button {
    background-color: #106ebe;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.login-panel form button:hover {
    background-color: #013664;
}

/* Margine inferiore per la barra di navigazione principale */
header nav {
    margin-bottom: 20px;
}

/* Aggiunge uno stile più visibile ai tab */
.nav-tabs .nav-link.active {
    background-color: #007bff;
    color: white;
}

.nav-tabs .nav-link {
    color: #007bff;
}

.nav-tabs {
    border-bottom: 1px solid #ddd;
}

.nav-item {
    margin-right: 10px;
}



/* Aggiungi uno sfondo alla barra dei tab per differenziarla */
.nav-tabs {
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

/* Rimuovi il margine extra a sinistra dei tab */
.nav-tabs .nav-item {
    margin-left: 0;
}

/* Stile per il tab attivo */
.nav-tabs .nav-link.active {
    background-color: #007bff;
    color: white;
}

/* Per dare più spazio ai tab */
.nav-item {
    margin-right: 10px;
}


/* Stile personalizzato per il dropdown del tab Prezzo */
.nav-item .dropdown-menu {
    background-color: #f8f9fa;
}

.dropdown-item.active {
    background-color: #007bff;
    color: white;
}

.dropdown-item:hover {
    background-color: #0056b3;
    color: white;
}


/* ADDED BY ME */
.selection-content-left {
    flex: 0 0 335px; 
    max-height: 100vh; 
    overflow-y: auto; 
    padding: 15px; 
    background: #333333;
}

.result-content-right {
    flex: 1; 
    padding: 30px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column;
}

.dark-on-hover:hover {
    background-image: linear-gradient(rgb(0 0 0/20%) 0 0);
}

.button-list {
    height:60vh; 
    display:flex; 
    flex-direction:column; 
    align-items:center; 
    justify-content:center; 
    gap:20px;
}

.choose-tool-button {
    font-size: 26px;
    padding: 15px 20px;
    background-color: #043e88;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    width: 40vh;
    text-align: center;
}

.logout-tool-button {
    font-size: 26px;
    padding: 15px 20px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    width: 40vh;
    text-align: center;
}