/* app/static/style.css */

/* Importar una fuente moderna de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
    /* Fondos - Profundidad y riqueza cromática */
    --tech-dark-bg: #0d1b2a;        /* Azul muy oscuro casi negro, base principal */
    --tech-darker-bg: #0a141f;      /* Aún más oscuro para contraste en secciones */
    --tech-card-bg: #1b263b;        /* Azul/gris oscuro para tarjetas y elementos elevados */
    --tech-header-bg: #14213d;      /* Azul oscuro para headers y barras laterales */

    /* Textos - Claridad y contraste */
    --tech-text-primary: #e0e1dd;   /* Gris muy claro, casi blanco, para texto principal */
    --tech-text-secondary: #d6d8d9; /* Gris medio claro para texto secundario */
    /* --tech-text-secondary: #b8c1ec; */ /* Opcional: Ligeramente azulado para un toque tecnológico */
    --tech-text-muted: #93a0a8;     /* Gris apagado para texto de apoyo o metadatos */

    /* Acentos - Colores vibrantes para acciones e interacción */
    --tech-accent-primary: #4cc9f0; /* Cian brillante (neón suave) - Principal */
    --tech-accent-secondary: #7209b7; /* Púrpura intenso - Secundario */
    --tech-accent-danger: #f72585;  /* Rosa/magenta vibrante - Alertas/Peligro */

    /* Bordes y Líneas - Definición sutil */
    --tech-border: #415a77;         /* Azul/gris medio para bordes, más definido */

    /* Glows/Sombras - Efectos de iluminación tecnológica */
    --tech-glow-primary: 0 0 15px rgba(76, 201, 240, 0.4);     /* Glow cian suave */
    --tech-glow-secondary: 0 0 15px rgba(114, 9, 183, 0.4);   /* Glow púrpura suave */
    --tech-glow-danger: 0 0 15px rgba(247, 37, 133, 0.4);     /* Glow rosa suave */
    --tech-glow-success: 0 0 15px rgba(64, 224, 100, 0.3);    /* Glow verde (si se usa) */

    /* Dimensiones del layout (mantenidas) */
    --admin-sidebar-width: 220px;
    --admin-topbar-height: 65px;
}

/* --- Estilos para el Layout con Sidebar y Topbar Mejorado --- */
#admin-layout-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* --- Topbar Superior Estático (Desktop & Mobile) --- */
#admin-topbar {
    background: linear-gradient(90deg, var(--tech-header-bg) 0%, var(--tech-darker-bg) 100%);
    border-bottom: 1px solid var(--tech-border);
    height: var(--admin-topbar-height);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
#admin-topbar .topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
#admin-topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
#admin-topbar .navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--tech-text-primary);
    text-shadow: var(--tech-glow-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none; /* Asegurar que no tenga subrayado */
}
#admin-topbar .navbar-brand:hover {
    color: var(--tech-accent-primary);
}

/* --- Sidebar Izquierdo Estático --- */
#admin-sidebar {
    width: var(--admin-sidebar-width);
    background: linear-gradient(180deg, var(--tech-header-bg) 0%, var(--tech-darker-bg) 85%, var(--tech-dark-bg) 100%);
    color: var(--tech-text-primary);
    border-right: 1px solid var(--tech-border);
    padding: calc(var(--admin-topbar-height) + 15px) 0 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1040;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}
#admin-sidebar .sidebar-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - var(--admin-topbar-height) - 30px);
}
#admin-sidebar .sidebar-brand-mobile {
    display: none;
    padding: 0 20px 15px 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--tech-border);
}
#admin-sidebar .sidebar-brand-mobile a {
    color: var(--tech-text-primary);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hora del sistema en el sidebar */
#system-time-display {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px 15px;
    margin: 10px 10px 20px 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--tech-border);
    color: var(--tech-accent-primary);
    text-shadow: var(--tech-glow-primary);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Navegación del sidebar */
#admin-sidebar .nav {
    flex-grow: 1;
    padding: 0 5px;
}
#admin-sidebar .nav-link {
    color: var(--tech-text-primary);
    /* Reducir el padding para que se vea más compacto */
    padding: 10px 15px; /* Cambiado de 12px 20px */
    margin: 4px 0; /* Reducido margen vertical */
    border-radius: 6px; /* Bordes un poco menos redondeados */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px; /* Reducido espacio entre icono y texto */
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.92rem; /* Texto ligeramente más pequeño */
}
#admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}
#admin-sidebar .nav-link.active {
    /* Fondo sólido del color de acento para máximo contraste */
    background-color: var(--tech-accent-primary);
    /* Degradado sutil como detalle, no como fondo principal */
    /* background: linear-gradient(90deg, var(--tech-accent-primary), rgba(187, 134, 252, 0.3)); */
    /* Color del texto */
    color: rgb(219, 218, 218);
    /* Mantener el borde del color de acento */
    border-color: var(--tech-accent-primary);
    /* Mantener la sombra de brillo */
    box-shadow: var(--tech-glow-primary);
    /* Texto en negrita */
    font-weight: 600;
    /* Eliminar transform para mantener alineación */
    transform: none;
}
#admin-sidebar .nav-link i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Footer del sidebar */
#admin-sidebar .sidebar-footer {
    padding: 20px 15px 10px 15px;
    border-top: 1px solid var(--tech-border);
    margin-top: auto;
}

/* --- Contenido Principal --- */
#admin-content-wrapper {
    flex-grow: 1;
    /* Mantener el margen superior para el topbar */
    margin-top: var(--admin-topbar-height);
    /* Ajuste clave: Usar la variable para el margen izquierdo */
    margin-left: var(--admin-sidebar-width); /* Debe ser 220px */
    /* Mantener padding interno */
    padding: 20px 15px 20px 20px; /* Top Right Bottom Left */
    overflow-y: auto;
    /* Ajustar altura */
    height: calc(100vh - var(--admin-topbar-height));
    transition: margin 0.3s ease;
    /* Asegurar fondo del tema */
    background: linear-gradient(135deg, var(--tech-dark-bg) 0%, var(--tech-darker-bg) 100%);
}

/* --- Selector de Tema Mejorado (en topbar y sidebar) --- */
.admin-theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--tech-border);
    color: var(--tech-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none; /* Asegurar que no tenga subrayado si es un <a> */
}
.admin-theme-toggle-btn:hover {
    background-color: var(--tech-accent-primary);
    color: white;
    border-color: var(--tech-accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.admin-theme-toggle-btn i {
    font-size: 1.2rem;
}

/* --- Botón de Logout Mejorado (en topbar) --- */
.tech-navbar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
    text-decoration: none; /* Es un <a>, asegurar que no tenga subrayado */
}
.tech-navbar-logout:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
}
.tech-navbar-logout i {
    font-size: 1.2rem;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    #admin-sidebar {
        transform: translateX(-100%);
        padding-top: 20px;
    }
    #admin-sidebar.show {
        transform: translateX(0);
    }
    #admin-sidebar .sidebar-brand-mobile {
        display: block;
    }
    #admin-content-wrapper {
        margin-left: 0;
    }
    #admin-topbar .navbar-brand {
        font-size: 1.1rem;
    }
    /* Ajustar placeholder en móviles */
    #admin-sidebar-placeholder {
        display: none !important;
    }
}

/* --- Espacio reservado para el sidebar en desktop --- */
#admin-sidebar-placeholder {
    display: none !important;
}

/* --- Tema Claro Elegante y Tecnológico Mejorado --- */
/* Se aplican cuando body tiene la clase tema-claro */
body.tema-claro {
    /* --- Redefinición de Variables para el Tema Claro Mejorado --- */

    /* Fondos - Profundidad y riqueza cromática (tonos suaves) */
    --tech-dark-bg: #f0f2f5;        /* Fondo principal: Gris azulado muy claro */
    --tech-darker-bg: #e4e7eb;      /* Fondo secundario: Gris azulado claro */
    --tech-card-bg: #ffffff;        /* Fondo de tarjetas: Blanco puro */
    --tech-header-bg: #e9ecef;      /* Fondo de encabezados/barras: Gris muy claro */
    --tech-footer-bg: #e4e7eb;      /* Fondo del pie de página: Igual a darker-bg */

    /* Textos - Claridad y buen contraste sin ser duros */
    --tech-text-primary: #212529;   /* Texto principal: Negro/gris muy oscuro */
    --tech-text-secondary: #495057; /* Texto secundario: Gris oscuro */
    --tech-text-muted: #6c757d;     /* Texto apagado: Gris medio */

    /* Bordes - Definición clara pero suave */
    --tech-border: #ced4da;         /* Borde gris medio-claro */

    /* Acentos - Colores vibrantes pero equilibrados para el tema claro */
    --tech-accent-primary: #3b82f6; /* Azul brillante (Cobalto/Índigo suavizado) */
    --tech-accent-secondary: #8b5cf6; /* Púrpura medio (Violeta) */
    --tech-accent-danger: #ef4444;  /* Rojo brillante (Rojo coral suavizado) */

    /* Glows/Sombras - Efectos sutiles para coherencia tecnológica */
    --tech-glow-primary: 0 0 10px rgba(59, 130, 246, 0.25);     /* Glow azul suave */
    --tech-glow-secondary: 0 0 10px rgba(139, 92, 246, 0.25);   /* Glow púrpura suave */
    --tech-glow-danger: 0 0 10px rgba(239, 68, 68, 0.25);       /* Glow rojo suave */
    --tech-glow-success: 0 0 10px rgba(34, 197, 94, 0.25);      /* Glow verde suave (si se usa) */

    /* Botones */
    /* Botón Primario - Usando el nuevo acento primario */
    --tech-btn-primary-bg: #3b82f6;
    --tech-btn-primary-border: #2563eb;
    --tech-btn-primary-hover-bg: #2563eb;
    --tech-btn-primary-hover-border: #1d4ed8;
    --tech-btn-primary-text: #ffffff;

    /* Botón Outline Primario - Basado en el nuevo acento */
    --tech-btn-outline-primary-text: #3b82f6;
    --tech-btn-outline-primary-border: #3b82f6;
    --tech-btn-outline-primary-hover-bg: #dbeafe; /* Fondo hover azul muy claro */
    --tech-btn-outline-primary-hover-border: #2563eb;
    --tech-btn-outline-primary-hover-text: #1e40af; /* Texto hover azul más oscuro */

    /* Otros colores útiles - Tonos suaves y modernos */
    --tech-success-bg: #dcfce7; /* Verde menta muy suave */
    --tech-danger-bg: #fee2e2;  /* Rojo salmón muy suave */
    --tech-warning-bg: #fef3c7; /* Amarillo crema muy suave */
    --tech-info-bg: #dbeafe;    /* Azul cielo muy suave */

    /* --- Fin Redefinición de Variables para el Tema Claro Mejorado --- */
}
/* --- Fin Tema Claro Elegante --- */

/* --- Estilos Generales para el Admin --- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: linear-gradient(135deg, var(--tech-darker-bg) 0%, var(--tech-dark-bg) 100%);
    color: var(--tech-text-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Layout del Panel de Admin --- */
.admin-layout {
    display: flex;
    width: 100%;
    flex: 1;
}

/* --- Sidebar Tecnológico --- */
.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, var(--tech-header-bg) 0%, var(--tech-darker-bg) 100%);
    color: var(--tech-accent-primary);
    padding: 20px 0;
    box-shadow: var(--tech-glow-primary);
    z-index: 1050;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    overflow-y: auto;
    border-right: 1px solid var(--tech-border);
}

.admin-sidebar-header {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid var(--tech-border);
    margin-bottom: 20px;
}

.admin-sidebar-header h3 {
    margin: 0;
    color: var(--tech-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: var(--tech-glow-primary);
}

.admin-sidebar-header h3 i {
    color: var(--tech-accent-secondary);
}

.admin-sidebar-nav {
    flex-grow: 1;
    padding: 0 10px;
}

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

.admin-sidebar-nav li {
    margin-bottom: 5px;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--tech-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
    border-radius: 4px;
    font-weight: 500;
}

.admin-sidebar-nav a:hover {
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.1) 0%, transparent 100%);
    color: var(--tech-accent-primary);
    border-left-color: var(--tech-accent-primary);
    box-shadow: var(--tech-glow-primary);
}

.admin-sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.2) 0%, transparent 100%);
    color: var(--tech-accent-primary);
    border-left-color: var(--tech-accent-primary);
    font-weight: 600;
}

/* --- Footer del Sidebar --- */
.admin-sidebar-footer {
    padding: 20px 15px;
    border-top: 1px solid var(--tech-border);
    flex-shrink: 0;
}

.admin-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: var(--tech-accent-danger);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-radius: 4px;
    font-weight: 500;
}

.admin-sidebar-footer a:hover {
    background: linear-gradient(90deg, rgba(255, 56, 96, 0.1) 0%, transparent 100%);
    color: #ff5572;
    box-shadow: 0 0 10px rgba(255, 56, 96, 0.3);
}

/* --- Contenido Principal Tecnológico --- */
.admin-content {
    flex-grow: 1;
    margin-left: 250px;
    padding: 20px;
    background: linear-gradient(135deg, var(--tech-dark-bg) 0%, var(--tech-darker-bg) 100%);
    overflow-y: auto;
    min-height: 100vh;
}

.admin-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tech-border);
}

.admin-content-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--tech-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
}

/* --- Cards Tecnológicas --- */
.tech-card {
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%) !important;
    border: 1px solid var(--tech-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    /* backdrop-filter: blur(10px); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.tech-header {
    background: linear-gradient(90deg, var(--tech-header-bg) 0%, #222245 100%) !important;
    border-bottom: 1px solid var(--tech-border) !important;
    color: var(--tech-text-primary) !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 15px 20px !important;
    font-weight: 600;
}

.tech-header h5 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Tablas Tecnológicas --- */
.tech-table {
    background-color: transparent !important;
    color: var(--tech-text-primary) !important;
    margin-bottom: 0;
}

.tech-table thead th {
    background: linear-gradient(180deg, var(--tech-header-bg) 0%, #151525 100%) !important;
    color: var(--tech-accent-primary) !important;
    border-color: var(--tech-border) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.tech-table tbody td {
    color: var(--tech-text-secondary) !important;
    border-color: var(--tech-border) !important;
    vertical-align: middle;
    padding: 12px 8px;
}

.tech-table tbody .tech-table-row {
    background: rgba(18, 18, 37, 0.5) !important;
    transition: all 0.3s ease;
}

.tech-table tbody .tech-table-row:hover {
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.1) 0%, rgba(18, 18, 37, 0.5) 100%) !important;
    transform: translateY(-1px);
    box-shadow: var(--tech-glow-primary);
}

.tech-table a {
    color: var(--tech-accent-primary) !important;
    text-decoration: none;
    font-weight: 500;
}

.tech-table a:hover {
    color: #66fcff !important;
    text-decoration: underline;
}

.tech-table strong {
    color: var(--tech-text-primary) !important;
    font-weight: 600;
}

.tech-text-muted {
    color: var(--tech-text-muted) !important;
}

/* --- Badges Tecnológicos --- */
.tech-badge {
    background: linear-gradient(135deg, var(--tech-accent-primary) 0%, var(--tech-accent-secondary) 100%) !important;
    color: #000000 !important;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    box-shadow: var(--tech-glow-primary);
}

/* --- Botones Tecnológicos --- */
.tech-btn-primary {
    background: linear-gradient(135deg, var(--tech-accent-primary) 0%, var(--tech-accent-secondary) 100%);
    border: none;
    color: #000000 !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: var(--tech-glow-primary);
}

.tech-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--tech-glow-primary), 0 4px 20px rgba(0, 243, 255, 0.4);
    color: #000000 !important;
}

.tech-btn-outline-primary {
    background: transparent;
    border: 1px solid var(--tech-accent-primary);
    color: var(--tech-accent-primary) !important;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tech-btn-outline-primary:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: var(--tech-glow-primary);
    color: var(--tech-text-primary) !important;
}

.tech-btn-outline-danger {
    background: transparent;
    border: 1px solid var(--tech-accent-danger);
    color: var(--tech-accent-danger) !important;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tech-btn-outline-danger:hover {
    background: rgba(255, 56, 96, 0.1);
    box-shadow: 0 0 10px rgba(255, 56, 96, 0.3);
    color: var(--tech-text-primary) !important;
}

/* --- Estados Vacíos Tecnológicos --- */
.tech-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--tech-text-secondary);
}

.tech-empty-icon {
    margin-bottom: 20px;
    color: var(--tech-accent-primary);
    text-shadow: var(--tech-glow-primary);
}

.tech-empty-state h4 {
    color: var(--tech-text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.tech-empty-state p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* --- Estilos para Formularios --- */
.form-control, .form-select {
    background-color: rgba(26, 26, 53, 0.7) !important;
    color: var(--tech-text-primary) !important;
    border: 1px solid var(--tech-border) !important;
    border-radius: 6px;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(26, 26, 53, 0.9) !important;
    color: var(--tech-text-primary) !important;
    border-color: var(--tech-accent-primary) !important;
    box-shadow: var(--tech-glow-primary) !important;
}

.form-control::placeholder {
    color: var(--tech-text-muted) !important;
}

.form-label {
    color: var(--tech-text-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.form-text {
    color: var(--tech-text-muted) !important;
    font-size: 0.85rem;
}

.input-group-text {
    background: linear-gradient(135deg, var(--tech-header-bg) 0%, #151525 100%) !important;
    color: var(--tech-text-primary) !important;
    border: 1px solid var(--tech-border) !important;
    border-radius: 6px 0 0 6px !important;
}

/* --- Estilos para Alertas Tecnológicas --- */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* backdrop-filter: blur(10px); */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(39, 174, 96, 0.3) 100%) !important;
    color: #a5d6a7;
    border: 1px solid rgba(46, 204, 113, 0.3);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(192, 57, 43, 0.3) 100%) !important;
    color: #ef9a9a;
    border: 1px solid rgba(231, 76, 60, 0.3);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.2);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2) 0%, rgba(243, 156, 18, 0.3) 100%) !important;
    color: #ffcc80;
    border: 1px solid rgba(241, 196, 15, 0.3);
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.2);
}

.alert-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.3) 100%) !important;
    color: #81d4fa;
    border: 1px solid rgba(52, 152, 219, 0.3);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
}

/* --- Estilos para la Página Pública de un Negocio --- */

/* Banner */
.business-banner {
    width: 100%;
    height: 300px;
    background-color: var(--tech-header-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    color: white;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.business-banner::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.business-banner-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    width: 100%;
}

/* Contenedor para logo y nombre */
.business-logo-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

/* Logo dentro del Banner */
.business-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid white;
    background-color: var(--tech-card-bg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

/* Nombre del negocio alineado con el logo */
.business-name-banner {
    margin: 0;
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.6);
    padding: 10px 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

/* Contenido Principal */
.business-content {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
}

.business-description {
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--tech-text-primary);
    border: 1px solid var(--tech-border);
    margin-bottom: 20px;
}

.business-description h2 {
    color: var(--tech-accent-primary);
    margin-top: 0;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    text-shadow: var(--tech-glow-primary);
}

.business-description p {
    color: var(--tech-text-secondary);
    line-height: 1.6;
    font-size: 1.1rem;
}

.business-info {
    margin-top: 20px;
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--tech-text-primary);
    border: 1px solid var(--tech-border);
    margin-bottom: 20px;
}

.business-info h3 {
    color: var(--tech-accent-primary);
    margin-top: 0;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    text-shadow: var(--tech-glow-primary);
}

.business-info p {
    color: var(--tech-text-secondary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Sección de Citas (placeholder) */
.business-appointment {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--tech-text-primary);
    border: 1px solid var(--tech-border);
}

.business-appointment h3 {
    color: var(--tech-accent-primary);
    margin-top: 0;
    font-family: 'Orbitron', sans-serif;
    text-shadow: var(--tech-glow-primary);
}

.business-appointment p {
    color: var(--tech-text-secondary);
    font-size: 1.1rem;
}

/* Footer */
.business-footer {
    text-align: center;
    padding: 30px;
    color: var(--tech-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--tech-border);
    margin-top: auto;
    background: linear-gradient(180deg, var(--tech-darker-bg) 0%, var(--tech-dark-bg) 100%);
}

.business-footer a {
    color: var(--tech-accent-primary);
    text-decoration: none;
}

.business-footer a:hover {
    color: #66fcff;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .business-banner {
        height: 200px;
    }
    
    .business-banner h1 {
        font-size: 1.5rem;
    }
    
    .business-logo-container {
        bottom: 15px;
        left: 15px;
        gap: 10px;
    }
    
    .business-logo {
        width: 70px;
        height: 70px;
    }
    
    .business-name-banner {
        font-size: 1.3rem;
        padding: 8px 12px;
    }
    
    .business-content {
        padding: 15px;
    }
    
    .business-description, .business-appointment, .business-info {
        padding: 20px;
    }
    
    .admin-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
}

/* --- Enlaces tecnológicos --- */
.tech-link {
    color: var(--tech-accent-primary) !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.tech-link:hover {
    color: #66fcff !important;
    background: rgba(0, 243, 255, 0.1);
    text-decoration: none;
    box-shadow: var(--tech-glow-primary);
}

/* --- Información de negocio en celdas --- */
.business-info-cell strong {
    color: var(--tech-text-primary) !important;
    font-weight: 600;
}

.business-info-cell small {
    color: var(--tech-text-muted) !important;
}

/* --- Correcciones adicionales para eliminar fondos blancos --- */

/* Fondo del contenido principal */
.admin-content {
    background: linear-gradient(135deg, var(--tech-dark-bg) 0%, var(--tech-darker-bg) 100%) !important;
}

/* Formularios */
.form-control, .form-select {
    background-color: rgba(26, 26, 53, 0.7) !important;
    color: var(--tech-text-primary) !important;
    border: 1px solid var(--tech-border) !important;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(26, 26, 53, 0.9) !important;
    color: var(--tech-text-primary) !important;
    border-color: var(--tech-accent-primary) !important;
    box-shadow: var(--tech-glow-primary) !important;
}

/* Tablas */
.tech-table {
    background-color: transparent !important;
}

.tech-table tbody .tech-table-row {
    background: rgba(18, 18, 37, 0.5) !important;
}

.tech-table tbody .tech-table-row:hover {
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.1) 0%, rgba(18, 18, 37, 0.5) 100%) !important;
}

/* Cards */
.tech-card {
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%) !important;
    border: 1px solid var(--tech-border) !important;
}

/* Inputs adicionales */
input[type="text"], input[type="password"], input[type="email"], input[type="tel"], textarea {
    background-color: rgba(26, 26, 53, 0.7) !important;
    color: var(--tech-text-primary) !important;
    border: 1px solid var(--tech-border) !important;
}

input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, input[type="tel"]:focus, textarea:focus {
    background-color: rgba(26, 26, 53, 0.9) !important;
    color: var(--tech-text-primary) !important;
    border-color: var(--tech-accent-primary) !important;
    box-shadow: var(--tech-glow-primary) !important;
}

/* HR tecnológico */
.tech-hr {
    border-top: 1px solid var(--tech-border) !important;
    opacity: 1;
}

/* Borders tecnológicos */
.tech-border {
    border: 1px solid var(--tech-border) !important;
    background: rgba(26, 26, 53, 0.3) !important;
}

/* --- Correcciones para mobile menu --- */

/* Botón de menú hamburguesa */
.admin-toggle-sidebar {
    display: none;
    background: linear-gradient(135deg, var(--tech-accent-primary) 0%, var(--tech-accent-secondary) 100%);
    border: none;
    color: #000000 !important;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1060;
    box-shadow: var(--tech-glow-primary);
}

.admin-toggle-sidebar:hover {
    transform: scale(1.05);
    box-shadow: var(--tech-glow-primary), 0 0 20px rgba(0, 243, 255, 0.5);
}

/* Sidebar para mobile */
@media (max-width: 991.98px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        position: fixed;
        z-index: 1100;
        box-shadow: var(--tech-glow-primary);
    }

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

    .admin-content {
        margin-left: 0 !important;
        padding: 20px;
        margin-top: 70px;
    }

    .admin-toggle-sidebar {
        display: inline-block;
    }

    .admin-content-header {
        padding-top: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .admin-content-header .btn-toolbar {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Overlay para mobile */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1090;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

/* --- Correcciones para elementos específicos --- */

/* Placeholder text */
.form-control::placeholder {
    color: var(--tech-text-muted) !important;
}

/* Text muted */
.tech-text-muted {
    color: var(--tech-text-muted) !important;
}

/* Links */
a {
    color: var(--tech-accent-primary);
}

a:hover {
    color: #66fcff;
}

/* Imágenes en formularios */
.img-fluid {
    background-color: rgba(26, 26, 53, 0.5);
    border-radius: 4px;
}

/* --- Correcciones adicionales para eliminar fondos blancos --- */

/* Asegurar fondo oscuro en todas las páginas */
body, .admin-content {
    background: linear-gradient(135deg, var(--tech-dark-bg) 0%, var(--tech-darker-bg) 100%) !important;
}

/* Correcciones específicas para admin_settings.html */
.settings-container {
    background: transparent !important;
}

.settings-card {
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%) !important;
    border: 1px solid var(--tech-border) !important;
}

/* Correcciones para elementos de formulario en settings */
.settings-form .form-control {
    background-color: rgba(26, 26, 53, 0.7) !important;
    color: var(--tech-text-primary) !important;
    border: 1px solid var(--tech-border) !important;
}

.settings-form .form-control:focus {
    background-color: rgba(26, 26, 53, 0.9) !important;
    color: var(--tech-text-primary) !important;
    border-color: var(--tech-accent-primary) !important;
    box-shadow: var(--tech-glow-primary) !important;
}

.settings-form .input-group-text {
    background: linear-gradient(135deg, var(--tech-header-bg) 0%, #151525 100%) !important;
    color: var(--tech-text-primary) !important;
    border: 1px solid var(--tech-border) !important;
}

/* Correcciones para dashboard */
.dashboard-container {
    background: transparent !important;
}

.dashboard-card {
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%) !important;
    border: 1px solid var(--tech-border) !important;
}

/* Correcciones para tablas en dashboard */
.dashboard-table {
    background-color: transparent !important;
}

.dashboard-table-row {
    background: rgba(18, 18, 37, 0.5) !important;
}

.dashboard-table-row:hover {
    background: linear-gradient(90deg, rgba(0, 243, 255, 0.1) 0%, rgba(18, 18, 37, 0.5) 100%) !important;
}

/* Asegurar que todos los elementos tengan fondo oscuro */
.card, .table, .form-control, .form-select, .input-group-text {
    background-color: transparent !important;
}

/* Correcciones para elementos específicos */
.tech-text-muted {
    color: var(--tech-text-muted) !important;
}

.form-text.tech-text-muted {
    color: var(--tech-text-muted) !important;
}

/* Asegurar consistencia en todos los formularios */
.form-control, .form-select {
    background: rgba(26, 26, 53, 0.7) !important;
    border: 1px solid var(--tech-border) !important;
}

.form-control:focus, .form-select:focus {
    background: rgba(26, 26, 53, 0.9) !important;
    border-color: var(--tech-accent-primary) !important;
    box-shadow: var(--tech-glow-primary) !important;
}

/* Correcciones para elementos de lista */
.list-unstyled li small {
    color: var(--tech-text-muted) !important;
}

/* Asegurar que no haya fondos blancos en ningún lugar */
* {
    background-color: transparent !important;
}

/* Excepciones para elementos que necesitan fondo específico */
.tech-card, .tech-header, .tech-table thead th, .tech-table tbody .tech-table-row {
    background: inherit !important;
}

/* --- Estilos para el Login del Admin --- */

.admin-login-body {
    background: linear-gradient(135deg, var(--tech-darker-bg) 0%, var(--tech-dark-bg) 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.admin-login-container {
    width: 100%;
    max-width: 450px;
}

.admin-login-card {
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%);
    border: 1px solid var(--tech-border);
    border-radius: 15px;
    padding: 40px 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    /* backdrop-filter: blur(10px); */
    position: relative;
    overflow: hidden;
}

.admin-login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.1), transparent);
    transform: rotate(45deg);
    z-index: 0;
}

.admin-login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.admin-login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tech-accent-primary) 0%, var(--tech-accent-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--tech-glow-primary);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.admin-login-logo i {
    font-size: 2.5rem;
    color: #000000;
}

.admin-login-title {
    color: var(--tech-text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 5px;
    text-shadow: var(--tech-glow-primary);
}

.admin-login-subtitle {
    color: var(--tech-accent-primary);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
}

.admin-login-alert {
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 25px;
    /* backdrop-filter: blur(10px); */
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.admin-login-alert.alert-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(39, 174, 96, 0.3) 100%) !important;
    color: #a5d6a7;
    border: 1px solid rgba(46, 204, 113, 0.3);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.2);
}

.admin-login-alert.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(192, 57, 43, 0.3) 100%) !important;
    color: #ef9a9a;
    border: 1px solid rgba(231, 76, 60, 0.3);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.2);
}

.admin-login-form {
    position: relative;
    z-index: 1;
}

.admin-login-label {
    color: var(--tech-text-primary);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.admin-login-input-group {
    background: linear-gradient(135deg, var(--tech-header-bg) 0%, #151525 100%) !important;
    color: var(--tech-text-primary) !important;
    border: 1px solid var(--tech-border) !important;
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
    min-width: 45px;
    justify-content: center;
}

.admin-login-input {
    background-color: rgba(26, 26, 53, 0.7) !important;
    color: var(--tech-text-primary) !important;
    border: 1px solid var(--tech-border) !important;
    border-radius: 0 8px 8px 0 !important;
    border-left: none !important;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-login-input:focus {
    background-color: rgba(26, 26, 53, 0.9) !important;
    color: var(--tech-text-primary) !important;
    border-color: var(--tech-accent-primary) !important;
    box-shadow: var(--tech-glow-primary) !important;
    outline: none;
}

.admin-login-input::placeholder {
    color: var(--tech-text-muted) !important;
}

.admin-login-btn {
    background: linear-gradient(135deg, var(--tech-accent-primary) 0%, var(--tech-accent-secondary) 100%);
    border: none;
    color: #000000 !important;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--tech-glow-primary);
    position: relative;
    overflow: hidden;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--tech-glow-primary), 0 5px 25px rgba(0, 243, 255, 0.4);
    color: #000000 !important;
}

.admin-login-btn:active {
    transform: translateY(0);
}

.admin-login-btn i {
    margin-right: 8px;
}

.admin-login-footer {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.admin-login-copyright {
    color: var(--tech-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* --- Responsive para login --- */
@media (max-width: 576px) {
    .admin-login-body {
        padding: 15px;
    }
    
    .admin-login-card {
        padding: 30px 25px;
        margin: 10px;
    }
    
    .admin-login-logo {
        width: 70px;
        height: 70px;
    }
    
    .admin-login-logo i {
        font-size: 2rem;
    }
    
    .admin-login-title {
        font-size: 1.7rem;
    }
    
    .admin-login-input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .admin-login-btn {
        padding: 10px 16px;
        font-size: 1rem;
    }
}

/* --- Efectos adicionales --- */
@keyframes pulse {
    0% {
        box-shadow: var(--tech-glow-primary);
    }
    50% {
        box-shadow: var(--tech-glow-primary), 0 0 20px rgba(0, 243, 255, 0.6);
    }
    100% {
        box-shadow: var(--tech-glow-primary);
    }
}

.admin-login-logo {
    animation: pulse 3s infinite;
}

.admin-login-input:focus {
    animation: pulse 0.5s ease;
}

/* --- Estilos adicionales para el Login de Negocio --- */

.admin-login-business-logo {
    width: 80px;
    height: 80px;
    background-color: var(--tech-card-bg);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--tech-glow-primary);
    border: 3px solid rgba(255, 255, 255, 0.1);
    background-repeat: no-repeat;
}

.admin-login-back-link {
    color: var(--tech-accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-login-back-link:hover {
    color: #66fcff;
    text-decoration: underline;
}

/* --- Responsive para login de negocio --- */
@media (max-width: 576px) {
    .admin-login-business-logo {
        width: 70px;
        height: 70px;
    }
}

/* --- Efectos hover para elementos del login --- */
.admin-login-business-logo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* --- Estilos adicionales para el dashboard de negocio --- */

/* Navbar tecnológica */
.tech-navbar {
    background: linear-gradient(90deg, var(--tech-header-bg) 0%, var(--tech-darker-bg) 100%) !important;
    border-bottom: 1px solid var(--tech-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tech-navbar-brand {
    color: var(--tech-accent-primary) !important;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    text-shadow: var(--tech-glow-primary);
}

.tech-navbar-brand:hover {
    color: #66fcff !important;
}

.tech-navbar-toggler {
    border: 1px solid var(--tech-border) !important;
}

.tech-navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    color: var(--tech-text-secondary) !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--tech-accent-primary) !important;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.tech-navbar-logout {
    color: var(--tech-accent-danger) !important;
}

.tech-navbar-logout:hover {
    color: #ff5572 !important;
}

/* Footer tecnológico */
.tech-footer {
    background: linear-gradient(180deg, var(--tech-darker-bg) 0%, var(--tech-dark-bg) 100%) !important;
    border-top: 1px solid var(--tech-border);
    margin-top: auto;
}

.tech-footer-text {
    color: var(--tech-text-muted) !important;
    font-size: 0.9rem;
}

/* Enlaces tecnológicos */
.tech-link {
    color: var(--tech-accent-primary) !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-link:hover {
    color: #66fcff !important;
    text-decoration: underline;
}

/* Alertas tecnológicas */
.tech-alert {
    border: none !important;
    border-radius: 8px !important;
    /* backdrop-filter: blur(10px); */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.tech-alert.alert-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.2) 0%, rgba(39, 174, 96, 0.3) 100%) !important;
    color: #a5d6a7 !important;
}

.tech-alert.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.2) 0%, rgba(192, 57, 43, 0.3) 100%) !important;
    color: #ef9a9a !important;
}

/* Acentos tecnológicos */
.tech-accent-primary {
    color: var(--tech-accent-primary) !important;
    text-shadow: var(--tech-glow-primary);
}

/* Responsive para navbar */
@media (max-width: 991.98px) {
    .tech-navbar .navbar-nav {
        padding: 10px 0;
    }
    
    .tech-navbar .navbar-nav .nav-item {
        margin: 5px 0;
    }
    
    .tech-navbar .navbar-nav .nav-link {
        padding: 10px 15px !important;
        border-radius: 4px;
    }
    
    .tech-navbar .navbar-nav .nav-link:hover {
        background: rgba(0, 243, 255, 0.1);
    }
}

/* --- Estilos adicionales para la página pública de negocio --- */

/* Tarjetas de empleados */
.business-employees {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--tech-text-primary);
    border: 1px solid var(--tech-border);
}

.business-employees h3 {
    color: var(--tech-accent-primary);
    margin-top: 0;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    text-shadow: var(--tech-glow-primary);
    margin-bottom: 20px;
}

.employee-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.employee-card:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: var(--tech-glow-primary);
    border-color: var(--tech-accent-primary);
}

.employee-image-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    position: relative;
}

.employee-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--tech-accent-primary);
}

.employee-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 3px solid var(--tech-accent-primary);
}

.employee-image-placeholder i {
    font-size: 2.5rem;
    color: var(--tech-accent-primary);
}

.employee-info {
    margin-top: 10px;
}

.employee-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--tech-text-primary);
}

.employee-specialty {
    font-size: 0.9rem;
    color: var(--tech-accent-primary) !important; /* Usar el color de acento principal */
    margin: 0;
    font-weight: 500;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5); /* Pequeña sombra para mejor legibilidad */
}

/* Modal de cita */
.modal-content {
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%) !important;
    border: 1px solid var(--tech-border) !important;
    color: var(--tech-text-primary) !important;
}

.modal-header {
    border-bottom: 1px solid var(--tech-border) !important;
}

.modal-footer {
    border-top: 1px solid var(--tech-border) !important;
}

.modal-title {
    color: var(--tech-text-primary) !important;
    font-family: 'Orbitron', sans-serif;
}

/* Formulario en modal */
#appointment-form .form-label {
    color: var(--tech-text-primary) !important;
    font-weight: 500;
}

#appointment-form .form-control, 
#appointment-form .form-select {
    background-color: rgba(26, 26, 53, 0.7) !important;
    color: var(--tech-text-primary) !important;
    border: 1px solid var(--tech-border) !important;
}

#appointment-form .form-control:focus, 
#appointment-form .form-select:focus {
    background-color: rgba(26, 26, 53, 0.9) !important;
    color: var(--tech-text-primary) !important;
    border-color: var(--tech-accent-primary) !important;
    box-shadow: var(--tech-glow-primary) !important;
}

/* Responsive para empleados */
@media (max-width: 768px) {
    .employee-card {
        padding: 15px;
    }
    
    .employee-image-container {
        width: 80px;
        height: 80px;
    }
    
    .employee-name {
        font-size: 1rem;
    }
    
    .employee-specialty {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .business-employees {
        padding: 15px;
    }
    
    .employee-card {
        padding: 10px;
    }
    
    .employee-image-container {
        width: 70px;
        height: 70px;
    }
    
    .employee-name {
        font-size: 0.9rem;
    }
    
    .employee-specialty {
        font-size: 0.8rem;
    }
}

/* --- Estilos adicionales para funcionalidad de citas --- */

/* Spinner de carga */
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--tech-accent-primary);
    animation: spin 1s ease-in-out infinite;
}

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

/* Mensajes de éxito/error en modal */
.modal-message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: none;
}

.modal-message.success {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #a5d6a7;
}

.modal-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #ef9a9a;
}

/* Estilos para la lista de citas en admin */
.cita-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cita-header {
    border-bottom: 1px solid var(--tech-border);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.cita-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.cita-status.pendiente {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: #000;
}

.cita-status.confirmada {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.cita-status.cancelada {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: #fff;
}

/* Filtros para citas */
.citas-filters {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive para citas */
@media (max-width: 768px) {
    .cita-card {
        padding: 15px;
    }
    
    .cita-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .cita-status {
        align-self: flex-start;
    }
}

/* Botón de WhatsApp */
.tech-btn-whatsapp {
    background-color: #25D366 !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.tech-btn-whatsapp:hover {
    background-color: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white !important;
}

.tech-btn-whatsapp i {
    margin-right: 8px;
}

/* Indicador visual de disponibilidad en la tarjeta del empleado */
.employee-availability-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2; /* Asegura que esté por encima de la imagen */
}

.employee-availability-indicator.available {
    background-color: #28a745; /* Verde Bootstrap */
    color: white;
}

.employee-availability-indicator.unavailable {
    background-color: #dc3545; /* Rojo Bootstrap */
    color: white;
}

.employee-availability-text {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 5px 0 0 0;
}

/* Asegurar que el contenedor de la imagen tenga position relative para el indicador absoluto */
.employee-image-container {
    position: relative; /* Añadir si no está ya */
}

/* Enlace para la tarjeta de empleado que lleva a la página de cita */
.employee-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 10px; /* Coincidir con el borde de .employee-card */
}

.employee-card-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--tech-glow-primary);
    /* Opcional: resaltar el borde */
    /* border: 1px solid var(--tech-accent-primary); */
}

.employee-card-link:focus {
    outline: 2px dashed var(--tech-accent-primary);
    outline-offset: 2px;
}

/* Opcional: Estilos adicionales para botones de redes sociales */
.business-social-media .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.business-social-media .btn i {
    margin-right: 0.25rem;
}

/* Ajustes para el carrusel de empleados */
.business-employees .carousel {
    padding: 20px 40px; /* Espacio para las flechas */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.business-employees .carousel-inner {
    border-radius: 10px;
}

.business-employees .carousel-item {
    transition: transform 0.6s ease-in-out; /* Transición suave */
}

.employee-card {
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--tech-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tech-glow-primary);
    border-color: var(--tech-accent-primary);
}

.employee-image-container {
    position: relative;
    margin-bottom: 15px;
}

.employee-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--tech-accent-primary);
    margin: 0 auto;
}

.employee-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Flechas del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(187, 134, 252, 0.5); /* Color del tema con opacidad */
    background-size: 100% 100%;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    opacity: 1;
    background-color: var(--tech-accent-primary); /* Color del tema sólido al pasar el mouse */
}

/* Indicadores (puntos) del carrusel - si decides usarlos */
.carousel-indicators [data-bs-target] {
    background-color: var(--tech-accent-primary);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.carousel-indicators .active {
    opacity: 1;
}

/* En app/static/style.css, al final del archivo */

/* Enlace para la tarjeta de empleado que lleva a la página de cita */
.employee-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 10px; /* Coincidir con el borde de .employee-card */
}

.employee-card-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--tech-glow-primary);
    /* Opcional: resaltar el borde */
    /* border: 1px solid var(--tech-accent-primary); */
}

.employee-card-link:focus {
    outline: 2px dashed var(--tech-accent-primary);
    outline-offset: 2px;
}

/* --- Estilos para el carrusel de servicios --- */

.business-services {
    background: linear-gradient(145deg, var(--tech-card-bg) 0%, var(--tech-header-bg) 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: var(--tech-text-primary);
    border: 1px solid var(--tech-border);
    margin-top: 30px;
}

.business-services h3 {
    color: var(--tech-accent-primary);
    margin-top: 0;
    font-family: 'Orbitron', sans-serif;
    text-shadow: var(--tech-glow-primary);
    margin-bottom: 20px;
    text-align: center;
}

/* Tarjeta de servicio */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: rgba(0, 243, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: var(--tech-glow-primary);
    border-color: var(--tech-accent-primary);
}

/* Imagen del servicio */
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--tech-border);
}

.service-image-placeholder {
    height: 200px;
    width: 100%;
}

/* Cuerpo de la tarjeta de servicio */
.service-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--tech-text-primary);
    font-family: 'Orbitron', sans-serif;
}

.service-card-text {
    font-size: 0.95rem;
    color: var(--tech-text-secondary);
    flex-grow: 1;
    margin-bottom: 15px;
}

/* Controles del carrusel de servicios */
#serviciosCarousel .carousel-control-prev-icon,
#serviciosCarousel .carousel-control-next-icon {
    background-color: rgba(187, 134, 252, 0.5); /* Color del tema con opacidad */
    background-size: 100% 100%;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

#serviciosCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#serviciosCarousel .carousel-control-next:hover .carousel-control-next-icon {
    opacity: 1;
    background-color: var(--tech-accent-primary); /* Color del tema sólido al pasar el mouse */
}

/* Indicadores del carrusel */
#serviciosCarousel .carousel-indicators button {
    background-color: var(--tech-accent-primary);
    opacity: 0.5;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
}

#serviciosCarousel .carousel-indicators .active {
    opacity: 1;
}

/* Responsive para el carrusel de servicios */
@media (max-width: 768px) {
    .business-services {
        padding: 20px 15px;
    }
    
    .service-card-body {
        padding: 15px;
    }
    
    .service-card-title {
        font-size: 1.1rem;
    }
    
    .service-card-text {
        font-size: 0.9rem;
    }
    
    .service-image,
    .service-image-placeholder {
        height: 150px;
    }
}

/* --- Estilos para desplazamiento horizontal de tarjetas en móviles --- */
/* Contenedor principal que oculta la barra de desplazamiento */
.horizontal-scroll-wrapper {
    overflow-x: auto; /* Permite desplazamiento horizontal */
    overflow-y: hidden; /* Evita desplazamiento vertical innecesario */
    padding: 5px 0 15px 0; /* Pequeño padding vertical */
    /* Ocultar scrollbar para una apariencia más limpia */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
}

/* Ocultar scrollbar en Webkit (Chrome, Safari) */
.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* Contenedor interno que alberga los elementos */
.horizontal-scroll-content {
    display: flex; /* Coloca los elementos hijos en una fila */
    flex-wrap: nowrap; /* Evita que se envuelvan a la siguiente línea */
    gap: 1rem; /* Espacio entre elementos */
    padding: 0 1rem; /* Padding lateral para que no quede pegado al borde */
    /* Ancho mínimo para asegurar que el contenido se alinee correctamente */
    min-width: min-content;
}

/* Cada elemento/item dentro del contenedor de desplazamiento */
.scroll-item {
    flex: 0 0 auto; /* No crece, no se encoge, tamaño basado en contenido */
    width: 280px; /* Ancho fijo para las tarjetas */
    /* Asegurar que el contenido no se desborde */
    min-width: 0;
}

/* Ajustes para tamaños de tarjeta en móviles si es necesario */
@media (max-width: 320px) {
    .scroll-item {
        width: 260px; /* Ajustar ligeramente para pantallas muy pequeñas */
    }
}
/* --- Fin Estilos para desplazamiento horizontal --- */




