body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s;
}

h1, h2 {
    color: #4CAF50;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.8em;
    margin-top: 40px;
}

.intro-box {
    background-color: #e9f7ef;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #4CAF50;
}

.intro-box h2 {
    margin-top: 0;
}

.intro-box ol {
    padding-left: 20px;
}

.form-control {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chart-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    transition: background-color 0.3s;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    transition: background-color 0.3s, color 0.3s;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.highlight {
    background-color: #d4edda;
}

footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    transition: background-color 0.3s, color 0.3s;
}

footer a {
    color: #4CAF50;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Tooltip icon styles */
.input-with-tooltip {
    position: relative;
}

.tooltip-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #4CAF50;
    cursor: pointer;
}

.tooltip-icon i {
    font-size: 18px;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #2c2c2c;
    color: #ffffff;
}

body.dark-mode .container {
    background-color: #3c3c3c;
}

body.dark-mode .form-control {
    background-color: #4c4c4c;
    color: #ffffff;
    border-color: #5c5c5c;
}

body.dark-mode .btn-primary {
    background-color: #007bff;
}

body.dark-mode .btn-secondary {
    background-color: #6c757d;
}

body.dark-mode .chart-container {
    background-color: #3c3c3c;
}

body.dark-mode table {
    background-color: #3c3c3c;
}

body.dark-mode th {
    background-color: #4c4c4c;
}

body.dark-mode .highlight {
    background-color: #2a5934;
}

body.dark-mode footer {
    background-color: #3c3c3c;
    color: #b0b0b0;
}

body.dark-mode footer a {
    color: #7bdb7f;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-group {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .tooltip-icon {
        right: 10px;
    }
}

/* Additional improvements */
.form-group {
    margin-bottom: 20px;
}

label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.tooltip {
    font-size: 14px;
}

#darkModeToggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#summaryTableContainer {
    overflow-x: auto;
}

.result-value {
    font-weight: bold;
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

/* Stili per il pulsante di condivisione, se necessario */
/* ... (eventuali stili personalizzati per il pulsante di condivisione) ... */
