/**
 * Volt Template - Configuraciones adicionales para CodeIgniter
 * Este archivo complementa volt.css con utilidades específicas
 */

/* ========================================
   CONFIGURACIONES GENERALES
   ======================================== */

:root {
    --ci-primary: #262B40;
    --ci-success: #18634B;
    --ci-info: #0056B3;
    --ci-warning: #A04000;
    --ci-danger: #A91E2C;
}

/* ========================================
   UTILIDADES DE LAYOUT
   ======================================== */

.main-content {
    min-height: 100vh;
}

.content-wrapper {
    padding: 1rem;
}

@media (min-width: 992px) {
    .content-wrapper {
        padding: 2rem;
    }
}

/* ========================================
   SIDEBAR PERSONALIZADO
   ======================================== */

.sidebar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar-fixed.show {
    transform: translateX(0);
}

@media (min-width: 992px) {
    .sidebar-fixed {
        position: relative;
        transform: translateX(0);
    }
}

/* ========================================
   NOTIFICACIONES PERSONALIZADAS
   ======================================== */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.notification-item {
    margin-bottom: 0.5rem;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   TABLAS RESPONSIVAS
   ======================================== */

.table-responsive {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bs-gray-700);
    border-bottom: 2px solid var(--bs-gray-200);
}

/* ========================================
   FORMULARIOS MEJORADOS
   ======================================== */

.form-floating > label {
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.form-group-icon {
    position: relative;
}

.form-group-icon .form-control {
    padding-left: 2.5rem;
}

.form-group-icon .form-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-gray-500);
    z-index: 5;
}

/* ========================================
   CARDS Y COMPONENTES
   ======================================== */

.card-stats {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.stats-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-size: 1.25rem;
}

/* ========================================
   NAVEGACIÓN BREADCRUMB
   ======================================== */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.1rem;
    color: var(--bs-gray-500);
}

/* ========================================
   UTILIDADES DE ESPACIADO
   ======================================== */

.section-padding {
    padding: 2rem 0;
}

.content-padding {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .content-padding {
        padding: 2rem;
    }
}

/* ========================================
   ESTADOS DE LOADING
   ======================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.75rem 0 0 -0.75rem;
    border: 2px solid var(--bs-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 991.98px) {
    .d-lg-none-mobile {
        display: none !important;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1039;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}