/* ==========================================================================
   EasyTec NOC & Mobile Tech Platform - Custom Styles & FX
   ========================================================================== */

/* Must stay !important: many elements carry "hidden" together with a Tailwind
   display utility (flex/grid/flex-col) in their static class list, and JS only
   toggles the "hidden" class — without !important, source order in Tailwind's
   generated CSS can let the other utility win and the element stays visible. */
.hidden {
  display: none !important;
}

@keyframes pulse-laser {
  0%, 100% {
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.4), inset 0 0 10px rgba(244, 63, 94, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.7), inset 0 0 15px rgba(244, 63, 94, 0.4);
  }
}

@keyframes pulse-cyan {
  0%, 100% {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
  }
  50% {
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.65);
  }
}

.animate-laser {
  animation: pulse-laser 2s infinite ease-in-out;
}

.animate-cyan-glow {
  animation: pulse-cyan 2.5s infinite ease-in-out;
}

/* Glassmorphism custom classes — light "Stitch" theme */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.glass-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgb(226, 232, 240);
}

/* Subtle technical grid background used across the light Stitch theme */
.bg-tech-grid {
  background-color: #f8fafc;
  background-image:
    linear-gradient(to right, rgba(226, 232, 240, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.45) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Subtle lift-on-hover used for bento/card elements */
.card-cyan-subtle {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-cyan-subtle:hover {
  box-shadow: 0 4px 14px -2px rgba(14, 165, 233, 0.12), 0 2px 6px -1px rgba(14, 165, 233, 0.08);
}

/* Mobile Frame simulation */
.mobile-device-frame {
  width: 100%;
  max-width: 440px;
  height: 890px;
  max-height: 94vh;
  border: 10px solid #1E293B;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 35px rgba(14, 165, 233, 0.15);
  position: relative;
  background-color: #f8fafc;
}

.mobile-notch {
  width: 130px;
  height: 22px;
  background-color: #1E293B;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0f172a;
  border: 1px solid #334155;
}

.mobile-speaker {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background-color: #334155;
}

/* When a técnico opens "Solo App Técnico" on their own real phone, this class
   is applied by switchView() so the app fills the actual screen instead of
   rendering the decorative desktop-preview phone bezel (which was designed
   to sit next to the NOC panel on a computer, not to be used on a real
   handset — nesting a fake phone frame inside a real one crushed the layout). */
#mobile-view-container.mobile-fullscreen {
  min-width: 0;
}

#mobile-view-container.mobile-fullscreen .mobile-frame-descriptor {
  display: none;
}

#mobile-view-container.mobile-fullscreen .mobile-device-frame {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 100dvh;
  max-height: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

#mobile-view-container.mobile-fullscreen .mobile-notch {
  display: none;
}

/* Custom modern scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0ea5e9;
}

/* Toast Notification animations */
.toast-item {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* View switcher transition */
.view-transition {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Print styles for SLA reports */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print, header, aside, #view-switcher-bar, #toast-container, .mobile-device-frame {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  table {
    border-collapse: collapse;
    width: 100%;
  }
  th, td {
    border: 1px solid #ccc;
    padding: 8px;
    color: #000 !important;
  }
}
