/* Importa a fonte Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body, input, select, button, fieldset, legend, label, h1, h2, h3, p, table {
    font-family: 'Roboto', sans-serif;
}

/* Container principal do plugin */
#calculadora-holding {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #142437;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}
.logo-container img {
    max-width: 200px;
}

/* Títulos */
#calculadora-holding h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #142437;
}

/* Fieldset e legend */
#calculadora-holding fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}
#calculadora-holding legend {
    font-weight: 700;
    padding: 0 10px;
    color: #142437;
}

/* Labels e inputs */
#calculadora-holding label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #142437;
}

/* Inputs genéricos e menus alinhados à esquerda */
#calculadora-holding input[type="text"],
#calculadora-holding input[type="number"],
#calculadora-holding select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Apenas os campos monetários terão alinhamento à direita */
.money {
    text-align: right;
}

#calculadora-holding input[type="text"]:focus,
#calculadora-holding input[type="number"]:focus,
#calculadora-holding select:focus {
    outline: none;
    border-color: #DAA520;
}

/* Botões gerais - ovais */
#calculadora-holding button,
#calculadora-holding input[type="submit"] {
    background-color: #DAA520;
    color: #FFFFFF;
    border: none;
    border-radius: 50px;  /* Bordas ovais */
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
    margin-top: 10px;
}

/* Botão Calcular */
#calculadora-holding input[type="submit"] {
    background-color: #61ce70; /* Cor solicitada */
    text-align: center;
    margin-top: 20px;
}
#calculadora-holding input[type="submit"]:hover {
    background-color: #56ba63;
}

/* Botão Cancelar - ficará vermelho */
.cancel-btn {
    background-color: #FF0000 !important;
    margin-left: 10px;
    border-radius: 50px;
}
.cancel-btn:hover {
    background-color: #cc0000 !important;
}

/* Botão de Download PDF - vermelho */
.pdf-btn {
    background-color: #FF0000 !important;
    color: #FFFFFF;
    border-radius: 50px;
    padding: 12px;
    font-size: 16px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.pdf-btn:hover {
    background-color: #cc0000 !important;
}

/* Seções para filhos e bens */
.filho, .bem {
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Seções de resultados */
#resultados {
    margin-top: 30px;
}
.planilha-section {
    margin-bottom: 40px;
}
.planilha-section h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 20px;
    color: #142437;
    font-weight: 700;
}

/* Tabelas de resultados */
#resultados-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    font-size: 14px;
}
#resultados-content th, 
#resultados-content td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: right;
    color: #142437;
}
#resultados-content th {
    background-color: #DAA520;
    color: #FFFFFF;
    font-weight: 700;
}

/* Separador entre planilhas */
hr {
    border: none;
    border-top: 3px solid #142437;
    margin: 30px 0;
}

/* Responsividade básica */
@media (max-width: 480px) {
    #calculadora-holding {
        padding: 20px;
    }
    
    #calculadora-holding button,
    #calculadora-holding input[type="submit"],
    .pdf-btn {
        font-size: 14px;
    }
    
    #resultados-content table,
    #resultados-content th, 
    #resultados-content td {
        font-size: 12px;
    }
}
