/* 🔥 SIDEBAR LAYOUT - CSS COMPLETO CON ESTRUCTURA DEFINITIVA */

/* Layout principal */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
}

/* ===============================================
   SIDEBAR BASE
=============================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #2c3e50;
    color: white;
    z-index: 1000;
    transition: width 0.3s ease;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #34495e #2c3e50;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #2c3e50;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #34495e;
    border-radius: 3px;
}

/* Sidebar colapsado - ocultar textos */
.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .sidebar-badge,
.sidebar.collapsed .sidebar-note,
.sidebar.collapsed .sidebar-divider-text {
    display: none;
}

/* Sidebar colapsado - centrar iconos */
.sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .sidebar-divider {
    padding: 8px;
    justify-content: center;
}

/* ===============================================
   HEADER DEL SIDEBAR
=============================================== */
.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #34495e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.sidebar-brand:hover {
    opacity: 0.8;
}

.sidebar-logo {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.sidebar-title {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Botón toggle interno del sidebar */
.sidebar-toggle-internal {
    background: #2c3e50;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar-toggle-internal:hover {
    background-color: #34495e;
}

/* Icono que rota */
#toggleIcon {
    transition: transform 0.3s ease;
}

.sidebar.collapsed #toggleIcon {
    transform: rotate(180deg);
}

/* ===============================================
   NAVEGACIÓN Y MENÚS
=============================================== */
.sidebar-menu {
    padding: 0;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin: 0;
}

/* ===============================================
   SEPARADORES DE SECCIÓN
=============================================== */
.sidebar-divider {
    padding: 12px 20px 8px 20px;
    border-top: 1px solid #34495e;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-divider:first-child {
    border-top: none;
    margin-top: 0;
}

.sidebar-divider-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bdc3c7;
    opacity: 0.8;
}

.sidebar-divider-text i {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ===============================================
   ENLACES DEL SIDEBAR
=============================================== */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-link:hover {
    background-color: #34495e;
    color: white;
    transform: translateX(2px);
}

.sidebar-link.active {
    background-color: #3498db;
    color: white;
    border-right: 3px solid #2980b9;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar-text {
    white-space: nowrap;
    flex-grow: 1;
}

/* ===============================================
   BADGES Y NOTIFICACIONES
=============================================== */
.sidebar-badge {
    background-color: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
    min-width: 18px;
    text-align: center;
    animation: pulse 2s infinite;
}

/* Badge pequeño para submenús */
.sidebar-badge-small {
    background-color: #e74c3c;
    color: white;
    border-radius: 8px;
    padding: 1px 4px;
    font-size: 0.6rem;
    font-weight: 600;
    margin-left: auto;
    min-width: 14px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* ===============================================
   NOTAS INFORMATIVAS
=============================================== */
.sidebar-note {
    display: block;
    font-size: 0.65rem;
    color: #95a5a6;
    font-style: italic;
    margin-top: 2px;
    opacity: 0.8;
}

/* ===============================================
   SUBMENÚS
=============================================== */
.sidebar-submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #34495e;
}

.has-submenu.active .sidebar-submenu {
    display: block;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 40px;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sidebar-sublink:hover {
    background-color: #3498db;
    color: white;
    transform: translateX(4px);
}

.sidebar-sublink i {
    width: 16px;
    font-size: 0.8rem;
}

/* Flecha para submenús */
.submenu-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.has-submenu.active .submenu-arrow {
    transform: rotate(90deg);
}

/* ===============================================
   ESTILOS PARA SUBMENU MEJORADO DE HERRAMIENTAS
=============================================== */

/* Separador en submenús */
.submenu-divider {
    border-top: 1px solid #4a5568;
    margin: 8px 0;
    padding: 0;
    list-style: none;
}

/* Notas en submenús */
.submenu-note {
    display: block;
    font-size: 0.6rem;
    color: #a0aec0;
    font-style: italic;
    margin-top: 1px;
    opacity: 0.7;
    line-height: 1.1;
}

/* Ajustar padding de sublinks con notas */
.sidebar-sublink {
    padding: 8px 40px;
    line-height: 1.3;
}

/* Mejorar hover en sublinks */
.sidebar-sublink:hover .submenu-note {
    color: white;
    opacity: 0.9;
}

/* Modo colapsado - ocultar notas de submenu */
.sidebar.collapsed .submenu-note {
    display: none;
}

/* Espaciado mejorado para sublinks de tiendas */
.sidebar-sublink i {
    width: 16px;
    margin-right: 8px;
    text-align: center;
}

/* ===============================================
   TOOLTIPS PARA MODO COLAPSADO
=============================================== */
.sidebar.collapsed .sidebar-link {
    position: relative;
}

.sidebar.collapsed .sidebar-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1001;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar.collapsed .sidebar-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Submenús en modo colapsado */
.sidebar.collapsed .has-submenu .sidebar-link::after {
    display: none;
}

.sidebar.collapsed .submenu-arrow {
    display: none;
}

/* Submenú flotante para modo colapsado */
.sidebar.collapsed .sidebar-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #34495e;
    min-width: 200px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
    margin-left: 10px;
}

.sidebar.collapsed .has-submenu:hover .sidebar-submenu {
    opacity: 1;
    visibility: visible;
}

/* ===============================================
   MAIN CONTENT AREA
=============================================== */
.main-content {
    margin-left: 250px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 60px;
}

/* ===============================================
   TOP NAVBAR MEJORADA
=============================================== */
.top-navbar {
    position: fixed;
    /* CAMBIO: De normal a fixed */
    top: 0;
    /* NUEVO: Posición en la parte superior */
    left: 250px;
    /* NUEVO: Alineado con el sidebar */
    right: 0;
    /* NUEVO: Ocupa todo el ancho disponible */
    background-color: white;
    border-bottom: 1px solid #dee2e6;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* CAMBIO: Sombra más pronunciada */
    z-index: 999;
    /* NUEVO: Por encima del contenido pero debajo del sidebar */
    transition: left 0.3s ease;
    /* NUEVO: Transición suave */
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    /* Reducido de 12px a 8px */
    min-height: 60px;
}

/* Botón toggle (solo móvil) */
.sidebar-toggle.mobile-only {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
}

.sidebar-toggle:hover {
    background-color: #f8f9fa;
}

.hamburger-icon {
    width: 20px;
    height: 20px;
}

/* ===============================================
   INFO DEL USUARIO EN HEADER
=============================================== */
.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
    justify-content: center;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.user-location,
.current-time {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-location i,
.current-time i {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===============================================
   ICONOS DEL HEADER
=============================================== */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.header-icon:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
    transform: translateY(-1px);
}

.header-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
    animation: pulse 2s infinite;
}

/* ===============================================
   DROPDOWN DE NOTIFICACIONES
=============================================== */
.notification-dropdown {
    min-width: 350px;
    max-width: 400px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0;
    margin-top: 10px;
}

.notification-dropdown .dropdown-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    margin: 0;
    font-weight: 600;
}

.notification-dropdown .dropdown-footer {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e9ecef;
}

.notification-item {
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-content {
    min-width: 0;
}

.notification-title {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #2c3e50;
}

.notification-message {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Animación para nuevas notificaciones */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ===============================================
   DROPDOWN DEL USUARIO
=============================================== */
.user-dropdown {
    position: relative;
}

.user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.user-toggle:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

/* ===============================================
   PAGE CONTENT
=============================================== */
.page-content {
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 80px
}

/* ===============================================
   WIDGET DE FICHAJE
=============================================== */
.fichaje-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    min-width: 200px;
    max-width: 300px;
    min-height: 50px;
    /* ALTURA FIJA */
    max-height: 50px;
    /* ALTURA FIJA */
    justify-content: center;
    overflow: hidden;
}

/* Contenido interno del widget */
.fichaje-widget .d-flex.flex-column {
    width: 100%;
    height: 100%;
    justify-content: center;
}

/* Texto pequeño para que quepa */
.fichaje-widget small {
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badges más pequeños */
.fichaje-widget .badge {
    font-size: 0.65rem;
    padding: 1px 4px;
}

/**/
/* ===============================================
   FOOTER FIJO CON FICHAJE
=============================================== */
.footer-fichaje {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.footer-spacer {
    height: 70px;
    /* Espacio para que el contenido no se tape */
}

.footer-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.footer-info .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
}

/* Widget de fichaje en el footer */
.fichaje-footer-widget {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 8px 20px;
    color: #333;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.fichaje-footer-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.fichaje-footer-widget.sin-fichar {
    background: linear-gradient(135deg, #fff3cd, #ffffff);
    border: 2px solid #ffc107;
}

.fichaje-footer-widget.fichado-entrada {
    background: linear-gradient(135deg, #d1ecf1, #ffffff);
    border: 2px solid #17a2b8;
}

.fichaje-footer-widget.fichado-completo {
    background: linear-gradient(135deg, #d4edda, #ffffff);
    border: 2px solid #28a745;
}

.fichaje-footer-widget.con-incidencia {
    background: linear-gradient(135deg, #f8d7da, #ffffff);
    border: 2px solid #dc3545;
}

.fichaje-footer-widget .fichaje-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.fichaje-footer-widget .fichaje-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.fichaje-footer-widget .badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-fichaje {
        padding: 8px 0;
    }

    .footer-info {
        justify-content: center;
        margin-bottom: 8px;
    }

    .fichaje-footer-widget {
        padding: 6px 15px;
        font-size: 0.85rem;
    }

    .fichaje-footer-widget .fichaje-btn {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .footer-spacer {
        height: 90px;
    }
}

/* Ajuste para sidebar */
@media (min-width: 769px) {
    .footer-fichaje {
        left: 250px;
    }

    .sidebar.collapsed~.footer-fichaje {
        left: 60px;
    }
}

/**/

.fichaje-widget.sin-fichar {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.fichaje-widget.fichado-entrada {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.fichaje-widget.fichado-completo {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.fichaje-widget.con-incidencia {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.fichaje-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
}

.fichaje-btn.btn-entrada {
    background: #ffc107;
    color: #000;
}

.fichaje-btn.btn-entrada:hover {
    background: #ffca2c;
    transform: translateY(-1px);
}

.fichaje-btn.btn-salida {
    background: #dc3545;
    color: white;
}

.fichaje-btn.btn-salida:hover {
    background: #e55353;
    transform: translateY(-1px);
}

.fichaje-widget .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
}

/* Responsive para el widget */
@media (max-width: 768px) {
    .fichaje-widget {
        min-width: 150px;
        max-width: 200px;
        font-size: 0.8rem;
        padding: 6px 12px;
        min-height: 45px;
        /* ALTURA FIJA MÓVIL */
        max-height: 45px;
        /* ALTURA FIJA MÓVIL */
    }

    .fichaje-btn {
        font-size: 0.7rem;
        min-width: 50px;
        padding: 3px 6px;
    }
}

/* ===============================================
   RESPONSIVE DESIGN
=============================================== */
@media (max-width: 768px) {

    /* Mostrar hamburguesa en móvil */
    .sidebar-toggle.mobile-only {
        display: block;
    }

    /* Ocultar botón interno en móvil */
    .sidebar-toggle-internal {
        display: none;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        /* Ancho completo en móvil */
    }

    .sidebar.show {
        transform: translateX(0);
    }

    /* En móvil, ignorar estado collapsed - siempre mostrar completo */
    .sidebar.collapsed .sidebar-text,
    .sidebar.collapsed .sidebar-title,
    .sidebar.collapsed .sidebar-badge,
    .sidebar.collapsed .sidebar-note,
    .sidebar.collapsed .sidebar-divider-text {
        display: block !important;
    }

    .sidebar.collapsed {
        width: 250px !important;
    }

    .sidebar.collapsed .sidebar-link {
        justify-content: flex-start !important;
        padding: 12px 20px !important;
        gap: 12px !important;
    }

    .sidebar.collapsed .sidebar-divider {
        padding: 12px 20px 8px 20px !important;
        justify-content: flex-start !important;
    }

    /* Ocultar tooltips en móvil */
    .sidebar.collapsed .sidebar-link::after {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
    }

    /* NUEVO: Navbar ocupa todo el ancho en móvil */
    .top-navbar {
        left: 0;
        right: 0;
    }

    .user-info {
        gap: 10px;
    }

    .user-location,
    .current-time {
        display: none;
    }

    .header-icons {
        gap: 10px;
    }

    .header-icon {
        padding: 6px 8px;
        font-size: 1rem;
    }

    /* ACTUALIZADO: Mantener margen superior en móvil */
    .page-content {
        margin-top: 80px;
        padding: 15px;
    }
}

/* ===============================================
   VARIABLES CSS Y ESTILOS GENERALES
=============================================== */
:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --secondary-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f6fa;
    line-height: 1.6;
}

/* ===============================================
   PÁGINA DE LOGIN CON BRANDING
=============================================== */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 450px;
    width: 100%;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-login {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 10px;
}

/* ===============================================
   PÁGINA PRINCIPAL Y HEADERS
=============================================== */
.page-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ===============================================
   TARJETAS Y CARDS
=============================================== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: white;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
    padding: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ===============================================
   ESTILOS PARA SELECTOR DE TIENDAS CON HORARIOS
=============================================== */

/* Cards de tiendas mejoradas */
.tienda-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tienda-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    text-decoration: none !important;
}

.tienda-card .card-title {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.tienda-card:hover .card-title {
    color: var(--primary-color);
}

.tienda-icon {
    transition: transform 0.3s ease;
}

.tienda-card:hover .tienda-icon {
    transform: scale(1.1);
}

/* Sección de horarios */
.horarios-section {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.horarios-content {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badges de horarios */
.horarios-section .badge {
    font-size: 0.65rem;
    padding: 3px 6px;
    margin: 1px;
    border-radius: 4px;
}

.horarios-section .badge.bg-light {
    border-color: #dee2e6 !important;
}

.horarios-section .badge.bg-secondary {
    opacity: 0.7;
}

/* Botón de acción */
.tienda-card .btn {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tienda-card:hover .btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Badge de estado */
.tienda-card .badge {
    transition: all 0.3s ease;
}

.tienda-card:hover .badge {
    transform: scale(1.05);
}

/* Spinner de carga */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Efectos de hover adicionales */
.tienda-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tienda-card:hover::before {
    left: 100%;
}

/* Grid responsive optimizado */
@media (max-width: 1200px) {
    .col-xl-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .col-xl-4.col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .horarios-section .badge {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
}

/* Mejoras para texto y legibilidad */
.tienda-card .text-muted {
    transition: color 0.3s ease;
}

.tienda-card:hover .text-muted {
    color: #6c757d !important;
}

/* Animación de carga */
@keyframes pulseLoad {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.horarios-content .spinner-border {
    animation: pulseLoad 1.5s ease-in-out infinite;
}


/* ===============================================
   DASHBOARD Y ESTADÍSTICAS
=============================================== */
.stats-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.stats-label {
    color: var(--dark-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.stats-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ===============================================
   BOTONES
=============================================== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 10px 20px;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
}

.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(255, 193, 7, 0.3);
}

/* ===============================================
   FORMULARIOS
=============================================== */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* ===============================================
   TABLAS
=============================================== */
.table-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

/* ===============================================
   BADGES Y ESTADOS
=============================================== */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

/* ===============================================
   ALERTAS
=============================================== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

/* ===============================================
   MODALES
=============================================== */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border-bottom: none;
}

/* ===============================================
   UTILIDADES
=============================================== */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

/* ===============================================
   ANIMACIONES
=============================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* ===============================================
   LOADING Y SPINNER
=============================================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==============================================
   MEJORAS SIMPLES PARA SIDEBAR
============================================== */

/* Indicador visual para submenús con página activa */
.has-active-page>.sidebar-link {
    background-color: #3498db !important;
    color: white !important;
    position: relative;
}

.has-active-page>.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

/* Mejoras para sublinks activos */
.sidebar-sublink.active {
    background-color: #3498db;
    color: white;
    font-weight: 600;
    position: relative;
}

.sidebar-sublink.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #2980b9;
}

/* Animaciones suaves para submenús */
.sidebar-submenu {
    transition: all 0.3s ease;
    transform-origin: top;
}

.has-submenu.active .sidebar-submenu {
    animation: slideDownSubmenu 0.3s ease;
}

@keyframes slideDownSubmenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 500px;
    }
}

/* ==============================================
   LOGOS DINÁMICOS PARA SIDEBAR
============================================== */

/* Logo expandido - mostrar solo cuando sidebar está desplegado */
.sidebar-logo-expanded {
    width: auto;
    height: 12px;
    max-width: 180px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

/* Logo colapsado - mostrar solo cuando sidebar está colapsado */
.sidebar-logo-collapsed {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

/* Sidebar desplegado: mostrar logo completo, ocultar logo pequeño */
.sidebar .sidebar-logo-expanded {
    display: block;
}

.sidebar .sidebar-logo-collapsed {
    display: none;
}

/* Sidebar colapsado: mostrar logo pequeño, ocultar logo completo */
.sidebar.collapsed .sidebar-logo-expanded {
    display: none;
}

.sidebar.collapsed .sidebar-logo-collapsed {
    display: block;
}

/* Ajustar el header cuando está colapsado */
.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center;
}

/* Transiciones suaves para el cambio de logo */
.sidebar-brand {
    transition: all 0.3s ease;
}

/* Responsive - en móvil siempre mostrar logo completo */
@media (max-width: 768px) {
    .sidebar.collapsed .sidebar-logo-expanded {
        display: block !important;
    }

    .sidebar.collapsed .sidebar-logo-collapsed {
        display: none !important;
    }

    .sidebar.collapsed .sidebar-header {
        justify-content: space-between !important;
        padding: 1rem !important;
    }

    .sidebar.collapsed .sidebar-brand {
        justify-content: flex-start !important;
    }
}



/* ===============================================
   SISTEMA DE LOADING ESCALABLE
=============================================== */

/* ⏳ LOADING OVERLAY GLOBAL - Para páginas completas */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.page-loading-overlay .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--primary-color);
}

.page-loading-overlay .loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.page-loading-overlay .loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #6b7280;
}

/* 🔄 BUTTON LOADING - Para botones individuales */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Variante para botones grandes */
.btn-lg.btn-loading::after {
    width: 1.25rem;
    height: 1.25rem;
    border-width: 2.5px;
    border-top-width: 2.5px;
}

/* Variante para botones pequeños */
.btn-sm.btn-loading::after {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 1.5px;
    border-top-width: 1.5px;
}

/* 📝 FORM LOADING - Para formularios completos */
.form-loading {
    position: relative;
    overflow: hidden;
}

.form-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.form-loading.show::before {
    opacity: 1;
    visibility: visible;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.form-loading.show::after {
    opacity: 1;
    visibility: visible;
}

/* 🎯 TABLE LOADING - Para tablas de datos */
.table-loading {
    position: relative;
}

.table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.table-loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.table-loading-overlay .loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 📱 INLINE LOADING - Para elementos pequeños */
.inline-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.inline-loading .spinner-sm {
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 🎨 LOADING ANIMACIONES */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ✨ LOADING VARIANTS - Diferentes estilos */
.loading-dots {
    display: inline-flex;
    gap: 0.25rem;
}

.loading-dots .dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite both;
}

.loading-dots .dot:nth-child(2) { animation-delay: -0.16s; }
.loading-dots .dot:nth-child(3) { animation-delay: -0.32s; }

/* 🎯 SKELETON LOADING - Para contenido que se carga */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-skeleton 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes loading-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 📱 RESPONSIVE LOADING */
@media (max-width: 768px) {
    .page-loading-overlay .loading-spinner {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .page-loading-overlay .loading-text {
        font-size: 1rem;
    }
}

/* 🎯 LOADING ESTADOS ESPECÍFICOS */
.btn[data-loading="true"] {
    pointer-events: none;
}

.form[data-loading="true"] {
    pointer-events: none;
}

/* ✅ LOADING SUCCESS STATE */
.loading-success {
    color: #10b981 !important;
}

.loading-error {
    color: #ef4444 !important;
}

/* ===============================================
   FILTRO HÍBRIDO (TYPING + DROPDOWN)
=============================================== */

/* 🎯 Contenedor principal del filtro híbrido */
.hybrid-filter-container {
    position: relative;
    width: 100%;
}

/* 📝 Input principal con botón integrado */
.hybrid-filter-input {
    width: 100%;
    padding-right: 40px !important; /* Espacio para el botón */
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 12px 16px;
    transition: var(--transition);
    font-size: 1rem;
    background-color: white;
}

.hybrid-filter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

/* 🔽 Botón de toggle del dropdown */
.hybrid-filter-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    z-index: 3;
}

.hybrid-filter-toggle:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.hybrid-filter-toggle i {
    transition: transform 0.3s ease;
}

.hybrid-filter-container.open .hybrid-filter-toggle i {
    transform: rotate(180deg);
}

/* 📋 Dropdown del filtro */
.hybrid-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hybrid-filter-container.open .hybrid-filter-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 🎯 Opciones del dropdown */
.hybrid-filter-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hybrid-filter-option:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.hybrid-filter-option.selected {
    background-color: var(--primary-color);
    color: white;
}

.hybrid-filter-option.hidden {
    display: none;
}

.hybrid-filter-option:last-child {
    border-bottom: none;
}

/* 📱 Texto de las opciones */
.option-text {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ✨ Estado activo del input cuando está abierto */
.hybrid-filter-container.open .hybrid-filter-input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-color);
}

/* 🎨 Scrollbar personalizado para el dropdown */
.hybrid-filter-dropdown::-webkit-scrollbar {
    width: 6px;
}

.hybrid-filter-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.hybrid-filter-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.hybrid-filter-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 📱 Responsive para móviles */
@media (max-width: 768px) {
    .hybrid-filter-dropdown {
        max-height: 150px;
    }
    
    .hybrid-filter-option {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .hybrid-filter-toggle {
        right: 6px;
        padding: 3px 6px;
        font-size: 0.8rem;
    }
}

/* 🔍 Estado de "Sin resultados" */
.hybrid-filter-no-results {
    padding: 12px 16px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
    background-color: #f8f9fa;
}

/* ⚡ Animaciones */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hybrid-filter-container.open .hybrid-filter-dropdown {
    animation: slideDown 0.3s ease;
}

/* ===============================================
   MODAL TIPO DE VESTIDO - SELECCIÓN PERSONALIZADO/ESTÁNDAR
=============================================== */

/* Cards de selección de tipo */
.tipo-vestido-card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
}

.tipo-vestido-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

.tipo-vestido-card .card-body {
    padding: 2rem;
}

.tipo-vestido-card .fa-store {
    color: #007bff;
}

.tipo-vestido-card .fa-scissors {
    color: #28a745;
}

/* Modal vestido personalizado */
#modalVestidoPersonalizado .form-control {
    border-radius: 8px;
}

#modalVestidoPersonalizado .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

#modalVestidoPersonalizado .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Sección de medidas */
.medidas-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.medidas-section .form-label {
    font-weight: 600;
    color: #495057;
}

/* Sección de tejido */
.tejido-section {
    background-color: #e8f5e8;
    border-radius: 8px;
    padding: 1.5rem;
}

/* Botones del modal personalizado */
.btn-personalizado {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    font-weight: 500;
}

.btn-personalizado:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-personalizado:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);
}

/* Cards de opción de vestido (estándar vs personalizado) */
.opcion-vestido-card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.opcion-vestido-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}

/* ===============================================
   ANIMACIONES PARA MENSAJES
=============================================== */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}