/* ==========================
   SGI KEU - Estilos Adicionales
   ========================== */

/* Animaciones suaves */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Aplicar animaciones */
.card {
    animation: fadeIn 0.5s ease-in-out;
}

.sidebar .nav-link {
    animation: slideInRight 0.3s ease-in-out;
}

/* Mejoras visuales para tablas */
.table-responsive {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(47, 28, 106, 0.02);
}

/* Mejoras para inputs */
.form-control::placeholder,
.form-select::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Loader personalizado */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid rgba(47, 28, 106, 0.2);
    border-right-color: #2f1c6a;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

/* Tooltips mejorados */
.tooltip-inner {
    background: #2f1c6a;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Modales mejorados */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    padding: 1.15rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 8px 8px;
    padding: 1.15rem 1.5rem;
}

/* Breadcrumbs personalizados */
.breadcrumb {
    background: white;
    padding: 0.85rem 1.35rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.breadcrumb-item.active {
    color: #2f1c6a;
    font-weight: 600;
}

/* Stats cards elegantes */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 3px 12px rgba(47, 28, 106, 0.12);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    background: linear-gradient(135deg, #2f1c6a 0%, #4a2d8f 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(47, 28, 106, 0.25);
}

.stat-card .stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: #2f1c6a;
    margin: 0.5rem 0;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress bars elegantes */
.progress {
    height: 8px;
    border-radius: 8px;
    background: #e9ecef;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.progress-bar {
    border-radius: 8px;
    background: linear-gradient(90deg, #2f1c6a 0%, #4a2d8f 100%);
    box-shadow: 0 1px 3px rgba(47, 28, 106, 0.25);
}

/* Lista de tareas elegante */
.task-list {
    list-style: none;
    padding: 0;
}

.task-list-item {
    background: white;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #2f1c6a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.task-list-item:hover {
    box-shadow: 0 3px 10px rgba(47, 28, 106, 0.12);
}

/* Dropdown menus mejorados */
.dropdown-menu {
    border: none;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    font-size: 0.95rem;
}

.dropdown-item {
    border-radius: 4px;
    padding: 0.6rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: #f5f3fa;
    color: #2f1c6a;
}

/* Efectos de texto */
.text-gradient {
    background: linear-gradient(135deg, #2f1c6a 0%, #4a2d8f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Sombras personalizadas */
.shadow-sm-custom {
    box-shadow: 0 1px 3px rgba(47, 28, 106, 0.06) !important;
}

.shadow-custom {
    box-shadow: 0 3px 10px rgba(47, 28, 106, 0.1) !important;
}

.shadow-lg-custom {
    box-shadow: 0 6px 20px rgba(47, 28, 106, 0.15) !important;
}

/* Separadores elegantes */
hr.separator {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2f1c6a, transparent);
    margin: 2rem 0;
}

/* Iconos con círculos */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2f1c6a 0%, #4a2d8f 100%);
    color: white;
    font-size: 1.25rem;
}

/* Tabs personalizados */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.4rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #2f1c6a;
    border-bottom: 2px solid #2f1c6a;
}

.nav-tabs .nav-link.active {
    color: #2f1c6a;
    background: transparent;
    border-bottom: 3px solid #2f1c6a;
}

/* Empty states */
.empty-state {
    padding: 3.5rem 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 3.75rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    color: #6c757d;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #adb5bd;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Scrollbar fino para todo */
@supports (scrollbar-width: thin) {
    /* Firefox and supporting browsers */
    * {
        scrollbar-width: thin;
        scrollbar-color: #2f1c6a #f1f1f1;
    }
}

/* WebKit-based browsers (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #2f1c6a;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

*::-webkit-scrollbar-thumb:hover {
    background: #4a2d8f;
}

/* Utilidades */
.hover-lift {
    transition: box-shadow 0.3s ease;
}

.hover-lift:hover {
    box-shadow: 0 6px 16px rgba(47, 28, 106, 0.12);
}

.cursor-pointer {
    cursor: pointer;
}

/* Print styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .no-print {
        display: none !important;
    }

    .content-area {
        padding: 0 !important;
        max-height: none !important;
    }

    .card {
        page-break-inside: avoid;
        box-shadow: none !important;
    }
}

/* Badges con colores menos brillantes */
.badge.bg-success {
    background-color: #6c9a6f !important;
    color: #fff !important;
}

.badge.bg-primary {
    background-color: #5a7fa3 !important;
    color: #fff !important;
}

.badge.bg-danger {
    background-color: #b56f6f !important;
    color: #fff !important;
}

.badge.bg-warning {
    background-color: #c9a65c !important;
    color: #fff !important;
}

.badge.bg-info {
    background-color: #6b9fb3 !important;
    color: #fff !important;
}

.badge.bg-secondary {
    background-color: #7a8288 !important;
    color: #fff !important;
}

/* Botones con colores menos brillantes */
.btn-primary {
    background-color: #5a7fa3 !important;
    border-color: #4e6d8c !important;
}

.btn-primary:hover {
    background-color: #4e6d8c !important;
    border-color: #425d78 !important;
}

.btn-success {
    background-color: #6c9a6f !important;
    border-color: #5d8660 !important;
}

.btn-success:hover {
    background-color: #5d8660 !important;
    border-color: #4f7352 !important;
}

.btn-danger {
    background-color: #b56f6f !important;
    border-color: #a25f5f !important;
}

.btn-danger:hover {
    background-color: #a25f5f !important;
    border-color: #8f5050 !important;
}

.btn-warning {
    background-color: #c9a65c !important;
    border-color: #b5944f !important;
    color: #fff !important;
}

.btn-warning:hover {
    background-color: #b5944f !important;
    border-color: #a18243 !important;
    color: #fff !important;
}

.btn-info {
    background-color: #6b9fb3 !important;
    border-color: #5c8a9c !important;
}

.btn-info:hover {
    background-color: #5c8a9c !important;
    border-color: #4e7686 !important;
}

.btn-secondary {
    background-color: #7a8288 !important;
    border-color: #6a7077 !important;
}

.btn-secondary:hover {
    background-color: #6a7077 !important;
    border-color: #5a5e65 !important;
}

/* Íconos con colores menos brillantes */
.text-primary,
i.text-primary {
    color: #5a7fa3 !important;
}

.text-success,
i.text-success {
    color: #6c9a6f !important;
}

.text-danger,
i.text-danger {
    color: #b56f6f !important;
}

.text-warning,
i.text-warning {
    color: #c9a65c !important;
}

.text-info,
i.text-info {
    color: #6b9fb3 !important;
}

.text-secondary,
i.text-secondary {
    color: #7a8288 !important;
}
