/* High-tech Dark Mode & Custom Styling for Personal Notes PWA */

/* Hide v-cloak elements before Vue is mounted */
[v-cloak] {
  display: none !important;
}

@layer utilities {
  /* Hide scrollbar for Chrome, Safari and Opera */
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }
  /* Hide scrollbar for IE, Edge and Firefox */
  .no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
}

/* Custom dark scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glassmorphism panels */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.4);
}

.glass-panel-elevated {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(71, 85, 105, 0.5);
}

.glass-header {
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

/* Tech glows */
.tech-glow-sky {
  box-shadow: 0 0 15px -3px rgba(56, 189, 248, 0.25);
}
.tech-glow-cyan {
  box-shadow: 0 0 20px -2px rgba(6, 182, 212, 0.3);
}
.tech-glow-emerald {
  box-shadow: 0 0 15px -3px rgba(16, 185, 129, 0.25);
}
.tech-glow-rose {
  box-shadow: 0 0 20px 2px rgba(244, 63, 94, 0.35);
}

/* Audio Recording Pulse Animation */
@keyframes audio-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 14px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.recording-pulse {
  animation: audio-pulse 1.5s infinite;
}

/* Audio wave animation bars */
@keyframes wave-bar {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}
.wave-bar-1 { animation: wave-bar 0.9s infinite ease-in-out; }
.wave-bar-2 { animation: wave-bar 1.1s infinite ease-in-out 0.2s; }
.wave-bar-3 { animation: wave-bar 0.8s infinite ease-in-out 0.4s; }
.wave-bar-4 { animation: wave-bar 1.2s infinite ease-in-out 0.1s; }

/* Timeline connector lines */
.timeline-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 32px;
  bottom: -16px;
  width: 2px;
  background: linear-gradient(to bottom, #334155, rgba(51, 65, 85, 0.2));
}
.timeline-item:last-child::before {
  display: none;
}

/* Safe area bottom padding for iPhone notch / home bar */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}

/* Smooth modal fade transitions */
.modal-enter-active,
.modal-leave-active {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.modal-enter-from,
.modal-leave-to {
  opacity: 0;
  transform: scale(0.96) translateY(8px);
}

/* Tree Structure Guidelines */
.tree-branch-line {
  position: relative;
}
.tree-branch-line::before {
  content: '';
  position: absolute;
  top: -12px;
  bottom: 0;
  left: -14px;
  width: 2px;
  background-color: #334155;
}
.tree-branch-line::after {
  content: '';
  position: absolute;
  top: 14px;
  left: -14px;
  width: 12px;
  height: 2px;
  background-color: #334155;
}
.tree-branch-line:last-child::before {
  height: 26px;
}


