/* Estilos personalizados para la Calculadora Financiera */

/* Variables de colores */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Estilos generales */
body {
    background-color: #f7f7f7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tarjetas */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

/* Dashboard cards */
.dashboard-card {
    height: 100%;
}

.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
}

.dashboard-card .icon-container {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Formularios */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Botones */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Tablas */
.table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 2rem;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(13, 110, 253, 0.05);
}

.table-hover > tbody > tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Gráficos */
.chart-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 2rem;
    height: 400px;
}

/* Secciones */
.section-heading {
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Resultados financieros */
.financial-result {
    background-color: var(--light-color);
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.financial-result-heading {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.financial-result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Alertas y notificaciones */
.alert {
    border-radius: 8px;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Navegación */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.dropdown-menu {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Footer */
footer {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
    }
    
    .financial-result-value {
        font-size: 1.2rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Modales */
.modal-header {
    background-color: var(--primary-color);
    color: white;
}

.modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Clases de utilidad */
.rounded-custom {
    border-radius: 8px;
}

.text-small {
    font-size: 0.875rem;
}

.bg-light-blue {
    background-color: rgba(13, 110, 253, 0.05);
}

.cursor-pointer {
    cursor: pointer;
}

/* Imprimir */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .table {
        border-collapse: collapse;
        width: 100%;
    }
    
    .table td, .table th {
        border: 1px solid #ddd;
    }
}