/* Estilos para a página de configuração */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

h2 {
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-top: 20px;
}

h3 {
    color: #2c3e50;
    margin-top: 15px;
    margin-bottom: 10px;
}

.config-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.config-section {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.mode-selector {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    flex-wrap: wrap;
}

.mode-option {
    flex: 1;
    text-align: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 10px;
    transition: all 0.3s ease;
    min-width: 250px;
}

.mode-option:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
}

.mode-option input[type="radio"] {
    margin-right: 10px;
}

.mode-option label {
    font-weight: bold;
    font-size: 1.2em;
    display: block;
    margin-bottom: 10px;
}

.mode-description {
    font-size: 0.9em;
    color: #666;
}

.time-settings, .metrics-settings {
    margin: 15px 0;
}

.time-setting, .metric-setting {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.time-setting label {
    flex: 1;
    margin-right: 10px;
}

.time-setting input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Media queries para responsividade */
@media only screen and (max-width: 768px) {
    .config-section {
        padding: 10px;
    }
    
    .time-setting, .metric-setting {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .time-setting input {
        margin-top: 5px;
    }
}

@media only screen and (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    .mode-option {
        min-width: 200px;
    }
    
    .config-container {
        padding: 10px;
    }
}


.metric-setting {
    margin-bottom: 10px;
}

.metric-setting input[type="checkbox"] {
    margin-right: 10px;
}

select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    width: 100%;
    max-width: 300px;
    margin-top: 5px;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.primary-button, .secondary-button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.primary-button {
    background-color: #3498db;
    color: white;
}

.primary-button:hover {
    background-color: #2980b9;
}

.secondary-button {
    background-color: #95a5a6;
    color: white;
}

.secondary-button:hover {
    background-color: #7f8c8d;
}

/* Estilos para o histórico de versões */
.version-info {
    background-color: #f0f8ff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.version-info p {
    margin: 5px 0;
    font-size: 0.9em;
}

.version-history {
    margin-top: 15px;
}

.version-history h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

#version-history-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #fff;
}

.version-entry {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 0.85em;
}

.version-entry:last-child {
    border-bottom: none;
}

.version-entry .date {
    color: #7f8c8d;
    font-size: 0.9em;
}

.version-entry .type {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 5px;
    color: white;
}

.version-entry .type.upgrade {
    background-color: #2ecc71;
}

.version-entry .type.downgrade {
    background-color: #e74c3c;
}

.version-entry .type.instalacao {
    background-color: #3498db;
}

/* Estilos para dispositivos móveis */
@media (max-width: 768px) {
    .mode-selector {
        flex-direction: column;
    }

    .mode-option {
        margin: 10px 0;
    }

    .time-setting {
        flex-direction: column;
        align-items: flex-start;
    }

    .time-setting label {
        margin-bottom: 5px;
    }

    .buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .primary-button, .secondary-button {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
}
