/* ========================================
   INVOPANEL - TEMA VERDE (G001) - BOOTSTRAP
   ======================================== 
   
 Para futuros temas:
Solo cambiar las variables --theme-primary y --theme-primary-dark en el :root y tendrás un tema completamente nuevo.
¡Ahora tienes lo mejor de ambos mundos: la robustez de Bootstrap + la personalización única de cada tema! 
 
*/

/* Colores del tema verde */
:root {
    --theme-primary: #a72828;
    --theme-primary-dark: #5d0c0c;
    --theme-primary-light: #d4edda;
    --theme-secondary: #6c757d;
    --theme-success: #28a745;
    --theme-warning: #ffc107;
    --theme-danger: #dc3545;
    --theme-info: #17a2b8;
    --theme-light: #f8f9fa;
    --theme-dark: #343a40;
}

/* Modern background for the body */
body {
    background: linear-gradient(135deg, 
        var(--theme-light) 0%, 
        rgba(40, 167, 69, 0.08) 50%, 
        var(--theme-light) 100%);
    min-height: 100vh;
    background-attachment: fixed;
    font-size: 0.875rem; /* 14px - más pequeño para contabilidad */
}

/* Optimización de fuentes para aplicación de contabilidad */
td, th {
    font-size: 0.8rem !important; /* 12.8px - compacto para datos */
    padding: 0.375rem 0.5rem !important; /* Padding más pequeño */
    line-height: 1.3 !important; /* Interlineado más compacto */
}

/* Tablas más compactas */
.table {
    font-size: 0.8rem;
}

.table td, .table th {
    padding: 0.375rem 0.5rem;
    vertical-align: middle;
}

/* Cards con texto más compacto */
.card-body {
    font-size: 0.875rem;
}

.card-title {
    font-size: 1rem;
}

.card-text {
    font-size: 0.8rem;
}

/* Personalización de enlaces para el tema verde */
a {
    color: var(--theme-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--theme-primary-dark);
    text-decoration: underline;
}

/* Personalización de botones primarios */
.btn-primary {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--theme-primary-dark) 0%, #155724 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Personalización de cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Personalización de pestañas */
.nav-tabs .nav-link {
    color: var(--theme-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
    background-color: var(--theme-primary-light);
}

.nav-tabs .nav-link.active {
    color: var(--theme-primary);
    background-color: white;
    border-bottom-color: var(--theme-primary);
    font-weight: 600;
}

/* Personalización de tablas */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(40, 167, 69, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(40, 167, 69, 0.1);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Personalización de badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Personalización de alertas */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Personalización de formularios */
.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Personalización de iconos */
.fas, .far, .fab {
    transition: transform 0.3s ease;
}

.btn:hover .fas,
.btn:hover .far,
.btn:hover .fab {
    transform: scale(1.1);
}

/* Animaciones suaves */
.card, .btn, .nav-link, .table tr {
    transition: all 0.3s ease;
}

/* Responsive mejoras */
@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .table-responsive {
        border-radius: 8px;
    }
}

/* Estilos específicos para el tema verde */
.theme-green .card-header {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
    color: white;
}

.theme-green .btn-outline-primary {
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.theme-green .btn-outline-primary:hover {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
    color: white;
}

a:link {color: #610f04; text-decoration: none;}
a:visited {color: #610f04; text-decoration: none;}
a:hover {color: #e8270d; text-decoration: underline;}
a:active {color: #610f04; text-decoration: underline;}

