:root {
    --primary-color: #b4b29a;
    --primary-dark: #666c64;
    --secondary-color: #dfd7c5;
    --text-color: #333;
    --light-text: #777;
    --success-color: #4caf50;
    --error-color: #f44336;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f5f7ff;
    padding: 2rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.calculator-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.input-group {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.input-group input,
.input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1em;
}
.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.calculate-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-container {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.result-container h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hidden {
    display: none;
}

.success-result {
    background: rgba(76, 175, 80, 0.1);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--success-color);
    margin-top: 1rem;
}

.error-result {
    background: rgba(244, 67, 54, 0.1);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--error-color);
    margin-top: 1rem;
}
.success-result {
    background: rgba(76, 175, 80, 0.1);
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid var(--success-color);
    margin-top: 1rem;
}
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.termo-resultado {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 4px solid;
    min-height: 100px;
}
.termo-resultado.valido {
    border-left-color: var(--success-color);
}

.termo-resultado.invalido {
    border-left-color: var(--error-color);
    opacity: 0.7;
}

.disponivel {
    color: var(--success-color);
    font-weight: 500;
}

.indisponivel {
    color: var(--error-color);
    font-weight: 500;
}
.termo-resultado p {
    margin: 0.3rem 0;
    text-align: center;
}
.termo-resultado p.text-xl {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.termo-resultado:nth-child(odd) {
    background: rgba(255, 255, 255, 0.9);
}

.calculos-detalhados {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.calculo-termo {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.calculo-termo h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calculo-termo table {
    width: 100%;
    border-collapse: collapse;
}

.calculo-termo td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.calculo-termo tr:last-child td {
    border-bottom: none;
}

.calculo-termo td:first-child {
    font-weight: 500;
    width: 50%;
}
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 2rem;
    }
}