@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Onest:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg-app: #F0F2F5;
  --bg-card: #FFFFFF;
  --bg-card-glass: rgba(255, 255, 255, 0.92);

  --color-violet: #105BFF;
  --color-violet-light: #EBF1FF;
  --color-pink: #FE5CD5;
  --color-pink-light: #FDF0FA;
  
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;

  --border-light: #E2E8F0;
  --border-card: rgba(226, 232, 240, 0.9);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 24px -4px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 14px 30px -4px rgba(16, 91, 255, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Onest', 'Plus Jakarta Sans', -apple-system, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Card Styling */
.app-card {
  background: var(--bg-card-glass);
  border: 1px solid var(--border-card);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.2s ease;
}

.app-card-interactive {
  transition: all 0.2s ease;
}
.app-card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: #CBD5E1;
}

/* Security Lock Screen */
.lock-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(240, 242, 245, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lock-screen-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.shake-error {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Tab Switcher */
.tab-content {
  display: none !important;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tab-content.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.tab-button {
  transition: all 0.2s ease;
  color: var(--text-muted);
  font-weight: 700;
}
.tab-button:hover {
  color: var(--text-main);
}
.tab-button.active {
  background: #FFFFFF;
  color: var(--color-violet);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Reading Typography for Transcripts */
.reading-content p {
  margin-bottom: 1.1rem;
  line-height: 1.75;
  color: #334155;
  font-size: 1.05rem;
}

.reading-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reading-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #105BFF;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.reading-content blockquote,
.reading-content .quote-box {
  border-left: 4px solid var(--color-violet);
  background: linear-gradient(90deg, rgba(16, 91, 255, 0.05) 0%, rgba(254, 92, 213, 0.03) 100%);
  padding: 1rem 1.25rem;
  border-radius: 0 0.85rem 0.85rem 0;
  margin: 1.25rem 0;
  font-style: italic;
  font-weight: 600;
  color: #0F172A;
}

.reading-content li {
  margin-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: #334155;
  line-height: 1.65;
}

/* Waveform pulse */
.waveform-bar {
  width: 3px;
  background: linear-gradient(to top, #105BFF, #FE5CD5);
  border-radius: 9999px;
  animation: pulseBar 1.2s ease-in-out infinite;
}
.waveform-bar:nth-child(2) { animation-delay: 0.15s; }
.waveform-bar:nth-child(3) { animation-delay: 0.3s; }
.waveform-bar:nth-child(4) { animation-delay: 0.45s; }
.waveform-bar:nth-child(5) { animation-delay: 0.2s; }
.waveform-bar:nth-child(6) { animation-delay: 0.35s; }
.waveform-bar:nth-child(7) { animation-delay: 0.1s; }

@keyframes pulseBar {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}

/* Audio Scrubber */
input[type="range"] {
  -webkit-appearance: none;
  background: #E2E8F0;
  border-radius: 9999px;
  height: 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #105BFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(16, 91, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #FE5CD5;
}

/* Enhanced Calendar Days & Milestones */
.cal-day-cell {
  min-height: 3.25rem;
  border-radius: 0.75rem;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.cal-day-cell:hover:not(.empty) {
  border-color: #105BFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 91, 255, 0.12);
}
.cal-day-cell.has-entry {
  background: #FFFFFF;
  border-color: rgba(16, 91, 255, 0.35);
  box-shadow: 0 2px 6px rgba(16, 91, 255, 0.08);
}
.cal-day-cell.active-entry {
  border-color: #105BFF !important;
  background: #EBF1FF !important;
  box-shadow: 0 0 0 2px #105BFF, 0 4px 12px rgba(16, 91, 255, 0.2) !important;
}
.cal-day-cell.active-entry span {
  color: #105BFF !important;
  font-weight: 800 !important;
}

/* Quick Jump Pill */
.quick-jump-pill {
  transition: all 0.2s ease;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
}
.quick-jump-pill:hover {
  border-color: #105BFF;
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.quick-jump-pill.active {
  border-color: #105BFF;
  background: #EBF1FF;
  color: #105BFF;
  font-weight: 800;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
