body {
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #04203d;
    margin-bottom: 30px;
}

h2 {
    color: #04203d;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

h4, h5 {
    color: #555;
    margin-top: 15px;
    margin-bottom: 10px;
}

.hidden {
    display: none;
}

.control-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.top-action-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.bottom-action-buttons {
    text-align: center;
    margin-top: 30px;
}

/* Stile comune per tutti i pulsanti */
.control-buttons button,
.top-action-buttons button,
.bottom-action-buttons button {
    padding: 12px 25px;
    font-size: 17px;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 10px;
}

/* Colori per i pulsanti "Crea/Modifica" e "Carica" (giallo con testo nero) */
#showConfigForm,
#uploadConfigBtn {
    background-color: #f5f251; /* Giallo */
    color: #212529; /* Nero */
    font-weight: bold;
    
}

#showConfigForm:hover,
#uploadConfigBtn:hover {
    background-color: #e0a800; /* Giallo più scuro al hover */
    transform: translateY(-2px);
    font-weight: bold;
}

/* Colori per il pulsante "Salva Configurazione e Avvia Attività" (verde con testo nero) */
#saveAndStartButton {
    background-color: #93e6a6; /* Verde */
    color: #212529; /* Nero */
    font-weight: bold;
}

#saveAndStartButton:hover {
    background-color: #218838; /* Verde più scuro al hover */
    transform: translateY(-2px);
}

/* Colori per il pulsante "Scarica Configurazione JSON" (rimane blu come prima) */
#downloadConfig {
    background-color: #0e0b50; /* Blu */
    color: white; /* Bianco */
}

#downloadConfig:hover {
    background-color: #0056b3; /* Blu più scuro al hover */
    transform: translateY(-2px);
}


/* Stile per il contenitore dei set affiancati */
.sets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    margin-top: 20px;
}

.form-set {
    flex: 1;
    min-width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.form-section, .page-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    background-color: #fff;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

input[type="text"],
input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
    outline: none;
}