/* Efectos especiales para el Sistema de Gestión de Restaurante */

/* Efecto de neón para títulos */
.neon-text {
    text-shadow: 0 0 5px rgba(13, 110, 253, 0.5), 0 0 10px rgba(13, 110, 253, 0.5), 0 0 15px rgba(13, 110, 253, 0.5), 0 0
      20px rgba(13, 110, 253, 0.5);
    animation: neon-pulse 1.5s infinite alternate;
  }
  
  @keyframes neon-pulse {
    from {
      text-shadow: 0 0 5px rgba(13, 110, 253, 0.5), 0 0 10px rgba(13, 110, 253, 0.5), 0 0 15px rgba(13, 110, 253, 0.5), 0
        0 20px rgba(13, 110, 253, 0.5);
    }
    to {
      text-shadow: 0 0 5px rgba(13, 110, 253, 0.8), 0 0 10px rgba(13, 110, 253, 0.8), 0 0 15px rgba(13, 110, 253, 0.8), 0
        0 20px rgba(13, 110, 253, 0.8), 0 0 25px rgba(13, 110, 253, 0.8);
    }
  }
  
  /* Efecto de tarjeta 3D */
  .card-3d {
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
  }
  
  .card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.02);
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.1), 5px -5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .dark-mode .card-3d:hover {
    box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.3), 5px -5px 15px rgba(0, 0, 0, 0.3);
  }
  
  /* Efecto de botón con ondas */
  .btn-ripple {
    position: relative;
    overflow: hidden;
  }
  
  .btn-ripple:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
  }
  
  .btn-ripple:active:after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
  }
  
  .dark-mode .btn-ripple:after {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 10.01%);
  }
  
  /* Efecto de desvanecimiento para elementos */
  .fade-in {
    animation: fadeIn 0.5s ease-in;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Efecto de desplazamiento para elementos */
  .slide-in-left {
    animation: slideInLeft 0.5s ease-in-out;
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .slide-in-right {
    animation: slideInRight 0.5s ease-in-out;
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Efecto de rebote para elementos */
  .bounce {
    animation: bounce 0.5s ease-in-out;
  }
  
  @keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-20px);
    }
    60% {
      transform: translateY(-10px);
    }
  }
  
  /* Efecto de sacudida para alertas */
  .shake {
    animation: shake 0.5s ease-in-out;
  }
  
  @keyframes shake {
    0%,
    100% {
      transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
      transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
      transform: translateX(5px);
    }
  }
  
  /* Efecto de brillo para elementos destacados */
  .glow {
    animation: glow 1.5s infinite alternate;
  }
  
  @keyframes glow {
    from {
      box-shadow: 0 0 5px rgba(13, 110, 253, 0.5);
    }
    to {
      box-shadow: 0 0 20px rgba(13, 110, 253, 0.8);
    }
  }
  
  /* Efecto de rotación para iconos */
  .rotate {
    animation: rotate 2s linear infinite;
  }
  
  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  /* Efecto de escala para elementos */
  .pulse {
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }
  
  /* Efecto de desplazamiento para fondos */
  .bg-scroll {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-position 0.5s ease;
  }
  
  /* Efecto de cambio de color para elementos */
  .color-shift {
    animation: colorShift 5s infinite alternate;
  }
  
  @keyframes colorShift {
    0% {
      background-color: rgba(13, 110, 253, 0.1);
    }
    25% {
      background-color: rgba(13, 202, 240, 0.1);
    }
    50% {
      background-color: rgba(253, 126, 20, 0.1);
    }
    75% {
      background-color: rgba(220, 53, 69, 0.1);
    }
    100% {
      background-color: rgba(13, 110, 253, 0.1);
    }
  }
  
  .dark-mode .color-shift {
    animation: darkColorShift 5s infinite alternate;
  }
  
  @keyframes darkColorShift {
    0% {
      background-color: rgba(13, 110, 253, 0.2);
    }
    25% {
      background-color: rgba(13, 202, 240, 0.2);
    }
    50% {
      background-color: rgba(253, 126, 20, 0.2);
    }
    75% {
      background-color: rgba(220, 53, 69, 0.2);
    }
    100% {
      background-color: rgba(13, 110, 253, 0.2);
    }
  }
  
  /* Efecto de texto que se escribe */
  .typewriter {
    overflow: hidden;
    border-right: 0.15em solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  }
  
  @keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
  
  @keyframes blink-caret {
    from,
    to {
      border-color: transparent;
    }
    50% {
      border-color: var(--primary-color);
    }
  }
  
  /* Efecto de parallax para secciones */
  .parallax {
    perspective: 1px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }
  
  .parallax-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
  
  .parallax-layer-back {
    transform: translateZ(-1px) scale(2);
  }
  
  .parallax-layer-base {
    transform: translateZ(0);
  }
  
  /* Efecto de desenfoque para modales */
  .blur-bg {
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.8);
  }
  
  .dark-mode .blur-bg {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* Efecto de sombra para elementos destacados */
  .shadow-highlight {
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.3), 0 0 20px rgba(13, 110, 253, 0.2), 0 0 30px rgba(13, 110, 253, 0.1);
    transition: box-shadow 0.3s ease;
  }
  
  .shadow-highlight:hover {
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.5), 0 0 30px rgba(13, 110, 253, 0.3), 0 0 45px rgba(13, 110, 253, 0.2);
  }
  
  /* Efecto de zoom para imágenes */
  .zoom-img {
    overflow: hidden;
  }
  
  .zoom-img img {
    transition: transform 0.5s ease;
  }
  
  .zoom-img:hover img {
    transform: scale(1.1);
  }
  
  /* Efecto de contorno para elementos */
  .outline-glow {
    position: relative;
  }
  
  .outline-glow::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .outline-glow:hover::before {
    opacity: 1;
  }
  
  /* Efecto de confeti para celebraciones */
  .confetti {
    position: relative;
  }
  
  .confetti span {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    animation: confetti 5s ease-in-out infinite;
  }
  
  @keyframes confetti {
    0% {
      transform: translateY(0) rotate(0deg);
      opacity: 1;
    }
    100% {
      transform: translateY(100px) rotate(720deg);
      opacity: 0;
    }
  }
  
  /* Modo oscuro */
  .dark-mode {
    background-color: #121212;
    color: #f5f5f5;
  }
  
  .dark-mode .card {
    background-color: #1e1e1e;
    color: #f5f5f5;
  }
  
  .dark-mode .navbar {
    background: linear-gradient(to right, #0a4b9c, #0a6e9c) !important;
  }
  
  .dark-mode .form-control,
  .dark-mode .form-select {
    background-color: #2d2d2d;
    border-color: #444;
    color: #f5f5f5;
  }
  
  .dark-mode .table {
    color: #f5f5f5;
  }
  
  .dark-mode .table-light {
    background-color: #2d2d2d;
    color: #f5f5f5;
  }
  
  .dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #f5f5f5;
  }
  
  /* Efecto de notificación flotante */
  .floating-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    animation: slideInRight 0.5s ease, float 3s ease-in-out infinite;
  }
  
  .dark-mode .floating-notification {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  }
  
  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes floatIn {
    from {
      transform: translateY(50px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
    100% {
      transform: translateY(0px);
    }
  }
  
  /* Efecto de carga para botones */
  .btn-loading {
    position: relative;
    pointer-events: none;
  }
  
  .btn-loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  /* Efecto de contador animado */
  .counter-animation {
    animation: countUp 2s ease-out forwards;
  }
  
  @keyframes countUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Efecto de tarjeta que se voltea */
  .flip-card {
    perspective: 1000px;
    height: 300px;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
  }
  
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front,
  .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
  }
  
  .flip-card-front {
    background-color: #fff;
    color: var(--dark-color);
  }
  
  .flip-card-back {
    background-color: var(--primary-color);
    color: white;
    transform: rotateY(180deg);
  }
  
  .dark-mode .flip-card-front {
    background-color: #1e1e1e;
    color: var(--light-color);
  }
  
  /* Efecto de arrastrar y soltar */
  .draggable {
    cursor: grab;
    user-select: none;
  }
  
  .draggable:active {
    cursor: grabbing;
  }
  
  .drop-zone {
    border: 2px dashed #ccc;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .drop-zone.active {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
  }
  
  .dark-mode .drop-zone {
    border-color: #444;
  }
  
  .dark-mode .drop-zone.active {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.2);
  }
  
  /* Efecto de progreso circular */
  .circle-progress {
    position: relative;
    width: 100px;
    height: 100px;
  }
  
  .circle-progress svg {
    width: 100%;
    height: 100%;
  }
  
  .circle-progress circle {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
  }
  
  .circle-progress .bg {
    stroke: #f0f0f0;
  }
  
  .dark-mode .circle-progress .bg {
    stroke: #333;
  }
  
  .circle-progress .progress {
    stroke: var(--primary-color);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s ease;
  }
  
  .circle-progress .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
  }
  
  /* Efecto de desplazamiento suave */
  html {
    scroll-behavior: smooth;
  }
  
  /* Efecto de desplazamiento para elementos al hacer scroll */
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Efecto de cursor personalizado */
  .custom-cursor {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%230d6efd"><circle cx="12" cy="12" r="8"/></svg>')
      12 12, auto;
  }
  
  /* Estilos para el botón de modo oscuro */
  #darkModeToggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  #darkModeToggle:hover {
    transform: rotate(30deg);
  }
  
  /* Efectos de transición para el modo oscuro */
  .dark-mode-transition {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  }
  
  /* Estilos para el botón de modo oscuro en modo oscuro */
  .dark-mode #darkModeToggle {
    background-color: #333;
    color: #fff;
    border-color: #555;
  }
  
  /* Efectos de hover para elementos en modo oscuro */
  .dark-mode .btn:hover,
  .dark-mode .card:hover,
  .dark-mode .nav-link:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
  }
  
  /* Efectos especiales para tablas */
  .table-hover-blue tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.08);
    color: var(--primary-color);
  }
  
  .dark-mode .table-hover-blue tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.15);
    color: var(--primary-color);
  }
  
  /* Efecto de borde brillante para tablas */
  .table-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .table-glow::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .table-glow:hover::before {
    opacity: 0.3;
  }
  
  .dark-mode .table-glow:hover::before {
    opacity: 0.4;
  }
  
  /* Efecto de fila activa en tablas */
  .table-row-active {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    font-weight: 500;
  }
  
  .dark-mode .table-row-active {
    background-color: rgba(13, 110, 253, 0.2);
    color: var(--primary-color);
  }
  
  /* Efecto de celdas interactivas */
  .table-cell-interactive {
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .table-cell-interactive:hover {
    background-color: rgba(13, 110, 253, 0.1);
    transform: scale(1.02);
  }
  
  .dark-mode .table-cell-interactive:hover {
    background-color: rgba(13, 110, 253, 0.2);
  }
  
  /* Efecto de tabla con bordes redondeados */
  .table-rounded-blue {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(13, 110, 253, 0.2);
  }
  
  .table-rounded-blue thead th {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-bottom: 2px solid rgba(13, 110, 253, 0.3);
  }
  
  .table-rounded-blue tbody tr:last-child td {
    border-bottom: none;
  }
  
  .dark-mode .table-rounded-blue {
    border: 1px solid rgba(13, 110, 253, 0.3);
  }
  
  .dark-mode .table-rounded-blue thead th {
    background-color: rgba(13, 110, 253, 0.2);
    border-bottom: 2px solid rgba(13, 110, 253, 0.4);
  }
  
  /* Efecto de tabla con sombra */
  .table-shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
  }
  
  .table-shadow:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .dark-mode .table-shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .dark-mode .table-shadow:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }
  
  /* Efecto de tabla con líneas de cuadrícula azules */
  .table-grid-blue {
    border-collapse: collapse;
  }
  
  .table-grid-blue th,
  .table-grid-blue td {
    border: 1px solid rgba(13, 110, 253, 0.2);
  }
  
  .table-grid-blue thead th {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
  }
  
  .dark-mode .table-grid-blue th,
  .dark-mode .table-grid-blue td {
    border: 1px solid rgba(13, 110, 253, 0.3);
  }
  
  .dark-mode .table-grid-blue thead th {
    background-color: rgba(13, 110, 253, 0.2);
  }
  
  /* Efecto de tabla con filas alternadas en azul */
  .table-striped-blue tbody tr:nth-of-type(odd) {
    background-color: rgba(13, 110, 253, 0.05);
  }
  
  .dark-mode .table-striped-blue tbody tr:nth-of-type(odd) {
    background-color: rgba(13, 110, 253, 0.1);
  }
  
  /* Efecto de tabla con animación al cargar */
  .table-fade-in tbody tr {
    opacity: 0;
    animation: fadeInRow 0.5s ease forwards;
  }
  
  @keyframes fadeInRow {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .table-fade-in tbody tr:nth-child(1) {
    animation-delay: 0.1s;
  }
  
  .table-fade-in tbody tr:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .table-fade-in tbody tr:nth-child(3) {
    animation-delay: 0.3s;
  }
  
  .table-fade-in tbody tr:nth-child(4) {
    animation-delay: 0.4s;
  }
  
  .table-fade-in tbody tr:nth-child(5) {
    animation-delay: 0.5s;
  }
  
  /* Mejoras adicionales para el modo oscuro */
  .dark-mode .bg-blue-50 {
    background-color: #121a2b !important;
  }
  
  .dark-mode .bg-blue-100 {
    background-color: #172338 !important;
  }
  
  .dark-mode .text-blue-700 {
    color: #5a8dee !important;
  }
  
  .dark-mode .text-blue-800 {
    color: #6c9aef !important;
  }
  
  .dark-mode .border-blue-200 {
    border-color: #1e3a6e !important;
  }
  
  .dark-mode .hover\:bg-blue-100:hover {
    background-color: #1e3a6e !important;
  }
  
  /* Efectos de transición suave para el modo oscuro */
  body.dark-mode {
    transition: background-color 0.5s ease, color 0.5s ease;
  }
  
  .dark-mode .card,
  .dark-mode .table,
  .dark-mode .form-control,
  .dark-mode .form-select,
  .dark-mode .modal-content,
  .dark-mode .list-group-item {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
  }
  
