#dum-calculator {
    max-width: 1000px;
    padding: 40px;
    background: #ffffff;
    border: none;
    border-radius: 16px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: #2d3748;
}

#dum-calculator h2 {
    text-align: center;
    color: #1a365d;
    margin-bottom: 35px;
    font-size: 2.2em;
    font-weight: 700;
    border-bottom: 3px solid #e2e8f0;
    padding-bottom: 15px;
}

#dum-calculator h3 {
    color: #2c5282;
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.5em;
    font-weight: 600;
}

#dum-calculator p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #4a5568;
}

.input-group, .checkbox-group {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.input-group:hover, .checkbox-group:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.input-group label, .checkbox-group label {
    flex-basis: 200px;
    text-align: right;
    font-weight: 600;
    color: #4a5568;
    font-size: 1.05em;
}

.input-group input[type="date"],
.input-group select {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.05em;
    background: white;
    color: #2d3748;
    transition: all 0.3s ease;
    max-width: 300px;
}

.input-group input[type="date"]:focus,
.input-group select:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.3);
    accent-color: #4299e1;
}

#dum-calculator table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#dum-calculator th, #dum-calculator td {
    border: 1px solid #e2e8f0;
    padding: 15px 20px;
    text-align: center;
}

#dum-calculator thead th {
    background-color: #2c5282;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

#dum-calculator tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

#dum-calculator tbody tr:hover {
    background-color: #ebf8ff;
}

#dum-calculator input[type="number"] {
    width: 95%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    font-size: 1.05em;
    transition: all 0.3s ease;
}

#dum-calculator input[type="number"]:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
}

#dum-calculator tfoot td {
    font-weight: 600;
    background-color: #ebf8ff;
    text-align: right;
    padding: 15px 20px;
}

#dum-calculator tfoot td:last-child {
    text-align: center;
    color: #2c5282;
    font-size: 1.15em;
}

.result-label {
    font-size: 1.15em;
    margin-bottom: 12px;
    color: #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.result-label:hover {
    background: #ebf8ff;
    transform: translateX(5px);
}

.result-label span {
    font-weight: 600;
    color: #2c5282;
    font-size: 1.25em;
    min-width: 180px;
    text-align: right;
}

.final-total {
    font-size: 2em;
    color: #2c5282;
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border: none;
    background-color: #ebf8ff;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#calcular {
    display: block;
    width: 100%;
    padding: 18px 25px;
    background-color: #2c5282;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.3em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#calcular:hover {
    background-color: #2b6cb0;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(44, 82, 130, 0.2);
}

#calcular:active {
    background-color: #2c5282;
    transform: translateY(-1px);
}

hr {
    border: 0;
    height: 2px;
    background: #e2e8f0;
    margin: 40px 0;
    border-radius: 2px;
}

/* Estilos para el botón de llenar salarios */
.fill-salary-group {
    background: #ebf8ff;
    border: 2px solid #bee3f8;
}

.fill-salary-group input[type="number"] {
    max-width: 200px;
}

#apply_fill_salary {
    padding: 10px 20px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#apply_fill_salary:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    #dum-calculator {
        padding: 20px;
        margin: 20px;
    }

    .input-group, .checkbox-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .input-group label, .checkbox-group label {
        text-align: left;
        flex-basis: auto;
    }

    .input-group input[type="date"],
    .input-group select,
    .input-group input[type="number"] {
        max-width: 100%;
    }

    #dum-calculator table {
        display: block;
        overflow-x: auto;
    }
}

.checkbox-group {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.checkbox-group label {
    flex: 1;
    margin: 0;
    text-align: left;
}

.result-value {
    font-weight: 600;
    color: #2c5282;
    font-size: 1.1em;
    min-width: 150px;
    text-align: right;
    padding: 5px 10px;
    background: #ebf8ff;
    border-radius: 6px;
}

.result-days {
    font-size: 0.9em;
    color: #4a5568;
    margin-left: 10px;
    font-style: italic;
}