/* Estilos para Calculadora Tributaria BCB */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
}

.header {
    background: linear-gradient(135deg, #2c5aa0 0%, #3d6bb8 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(44, 90, 160, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-height: 50px;
    width: auto;
}

.header-title {
    text-align: center;
    flex-grow: 1;
}

.header-title h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.header-title p {
    font-size: 12px;
    opacity: 0.9;
}

.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    min-height: calc(100vh - 200px);
}

.panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(44, 90, 160, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: linear-gradient(135deg, #2c5aa0 0%, #3d6bb8 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.panel-header p {
    font-size: 12px;
    opacity: 0.9;
}

.panel-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 6px;
    font-size: 13px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-control {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e1e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* UFV Display */
.ufv-display {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.ufv-display.no-disponible {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Botones */
.form-buttons {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0 0%, #3d6bb8 100%);
    color: white;
    grid-column: 1 / -1;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-report {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-report:hover {
    transform: translateY(-1px);
}

/* Resultados */
.results-content {
    max-height: 700px;
    overflow-y: auto;
    padding-right: 10px;
}

.calc-section {
    background: #f8f9fa;
    border-left: 4px solid #2c5aa0;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.calc-title {
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 10px;
    font-size: 14px;
}

.calc-formula {
    background: #fff;
    font-family: 'Courier New', monospace;
    padding: 8px;
    border-radius: 4px;
    margin: 5px 0;
    font-size: 11px;
    line-height: 1.3;
    border: 1px solid #e9ecef;
}

.calc-result {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 8px;
    font-size: 12px;
}

/* Tablas */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.results-table th,
.results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.results-table th {
    background: #2c5aa0;
    color: white;
    font-size: 13px;
}

.results-table .total-row {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
}

/* Alertas y Notificaciones */
.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 13px;
}

.info-note {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    padding: 15px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.siat-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 11px;
    line-height: 1.4;
}

.bcb-notice {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #28a745;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-buttons {
        grid-template-columns: 1fr;
    }
    
    .panel-content {
        padding: 20px;
    }
}