.sidebar {
    background: #1a1a2e;
    min-height: 100vh;
    padding: 20px 0;
}
.sidebar .logo h4 { color: #fff; text-align: center; }
.sidebar .nav-link { color: rgba(255,255,255,0.7); padding: 10px 20px; }
.sidebar .nav-link:hover { background: rgba(255,255,255,0.1); }
.sidebar .nav-link.active { background: #e94560; color: #fff; }

.card { border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.card-header { font-weight: 600; background: #f8f9fa; }

.table thead { background: #1a1a2e; color: #fff; }
.table tbody tr:hover { background: #f8f9fa; }

.btn { border-radius: 8px; }
.btn-primary { background: #667eea; border: none; }
.btn-primary:hover { background: #5a6fd6; }
.btn-danger { background: #e94560; border: none; }
.btn-danger:hover { background: #d63851; }
.btn-success { background: #11998e; border: none; }
.btn-success:hover { background: #0e7d74; }

.badge-success { background: #11998e; }
.badge-danger { background: #e94560; }

.stat-card { padding: 20px; border-radius: 12px; }
.stat-card .number { font-size: 2rem; font-weight: 700; }
.bg-primary-gradient { background: #667eea; color: #fff; }
.bg-success-gradient { background: #11998e; color: #fff; }
.bg-warning-gradient { background: #f2994a; color: #fff; }
.bg-danger-gradient { background: #e94560; color: #fff; }
/* ============================================
   ANIMACIONES Y MEJORAS VISUALES
   ============================================ */

/* Transiciones suaves */
* {
    transition: all 0.3s ease-in-out;
}

/* Efecto hover en tarjetas */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* Efecto hover en botones */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.btn:active {
    transform: scale(0.95);
}

/* Efecto hover en filas de tabla */
.table tbody tr {
    transition: background-color 0.2s ease;
}
.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.06) !important;
}

/* Animación de entrada para tarjetas */
.card {
    animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de entrada para estadísticas */
.stat-card {
    animation: fadeInScale 0.5s ease forwards;
}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Efecto shimmer (carga) */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Notificaciones toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
.toast-message {
    padding: 15px 25px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    animation: slideInRight 0.4s ease forwards;
}
.toast-success { background: linear-gradient(135deg, #11998e, #38ef7d); }
.toast-error { background: linear-gradient(135deg, #eb3349, #f45c43); }
.toast-info { background: linear-gradient(135deg, #4facfe, #00f2fe); }
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Barra lateral colapsable */
.sidebar {
    transition: width 0.3s ease, transform 0.3s ease;
}
.sidebar.collapsed {
    width: 70px;
}
.sidebar.collapsed .nav-link span {
    display: none;
}
.sidebar.collapsed .logo h4 {
    font-size: 0;
}
.sidebar.collapsed .logo h4::after {
    content: "ISP";
    font-size: 16px;
}

/* Badges animados */
.badge {
    transition: all 0.3s ease;
}
.badge:hover {
    transform: scale(1.1);
}

/* Inputs con efecto focus */
.form-control, .form-select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

/* Modales con animación */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.9);
    opacity: 0;
}
.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f2f5;
}
::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5a6fd6;
}

/* Efecto glassmorphism para algunas tarjetas */
.glass {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Pulsar en elementos interactivos */
.pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}