* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #2c6d8d;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header idêntico ao da página de login */
.calc-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #2c6d8d;
    color: white;
}

.calc-header h1 {
    margin: 0;
    font-size: 24px;
}

.back-link {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: #ddd;
    color: #2c6d8d;
}

/* Container principal - mais limpo e focado */
.calc-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 800px;
    margin: 80px auto 20px;
    color: #333;
}

.calc-title {
    text-align: center;
    color: #2c6d8d;
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: bold;
}

/* Seções mais limpas e organizadas */
.section-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h3 {
    color: #2c6d8d;
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Labels e inputs mais limpos */
.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-group label {
    color: #555;
    font-weight: 600;
    font-size: 16px;
    flex: 1;
    min-width: 200px;
}

.caixaDeTexto {
    width: 100px;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.caixaDeTexto:focus {
    outline: none;
    border-color: #2c6d8d;
    box-shadow: 0 0 0 3px rgba(44, 109, 141, 0.1);
    transform: scale(1.02);
}

/* Checkboxes mais modernos */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.checkbox {
    width: 20px;
    height: 20px;
    accent-color: #2c6d8d;
    cursor: pointer;
}

.checkbox-label {
    color: #555;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
}

/* Resultado destacado */
.resultado-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 3px solid #2c6d8d;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.resultado-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 109, 141, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

#resultado {
    font-size: 36px;
    font-weight: bold;
    color: #2c6d8d;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

/* Botão de sair melhorado */
.clear {
    background: transparent;
    border: 2px solid #2c6d8d;
    color: #2c6d8d;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.clear:hover {
    background: #2c6d8d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 109, 141, 0.3);
}

/* Grupos de área (Verde/Vermelha) */
.area-group {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e1e5e9;
}

.area-title {
    font-weight: bold;
    color: #2c6d8d;
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 8px;
}

.area-verde .area-title {
    color: #28a745;
}

.area-vermelha .area-title {
    color: #dc3545;
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
    .calc-container {
        margin: 100px 15px 15px;
        padding: 25px;
    }
    
    .calc-header {
        padding: 15px;
    }
    
    .calc-header h1 {
        font-size: 20px;
    }
    
    .form-group {
        gap: 8px;
    }
    
    .form-group label {
        min-width: auto;
    }
    
    .caixaDeTexto {
        width: 80px;
    }
    
    #resultado {
        font-size: 28px;
        padding: 20px;
    }
    
    h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .calc-container {
        margin: 90px 10px 10px;
        padding: 20px;
    }
    
    .section-content {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .calc-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
}
