/* Dynamic Variable Design System */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', var(--font-sans);

  /* Color Palette (Harmonious Dark Theme) */
  --bg-base: #0b0f19;
  --bg-surface: rgba(17, 24, 39, 0.7);
  --bg-surface-solid: #111827;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.4);
  
  --primary: #6366f1; /* Indigo */
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.2);
  
  --secondary: #8b5cf6; /* Violet */
  --secondary-hover: #7c3aed;
  
  --success: #10b981; /* Emerald */
  --danger: #ef4444; /* Rose */
  --warning: #f59e0b; /* Amber */
  --info: #0ea5e9; /* Sky Blue */

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --transition-speed: 0.25s;
  --border-radius: 16px;
  --border-radius-sm: 8px;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  position: relative;
  line-height: 1.5;
}

/* Neon Gradient Background Glows & Floating Glass Spheres */
.glow-bg {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.03) 50%, transparent 100%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glass-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

.sphere-indigo {
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  width: 45vw;
  height: 45vw;
  top: -10vw;
  left: -10vw;
  animation: drift-slow 28s ease-in-out infinite alternate;
}

.sphere-violet {
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  width: 50vw;
  height: 50vw;
  bottom: -15vw;
  right: -10vw;
  animation: drift-medium 38s ease-in-out infinite alternate-reverse;
}

.sphere-magenta {
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  width: 40vw;
  height: 40vw;
  top: 25vh;
  left: 45vw;
  animation: drift-fast 32s ease-in-out infinite alternate;
}

@keyframes drift-slow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(12vw, 10vh, 0) scale(1.15); }
}

@keyframes drift-medium {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-10vw, -15vh, 0) scale(1.2); }
}

@keyframes drift-fast {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(10vw, -12vh, 0) scale(0.85); }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header styling */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  flex-shrink: 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px var(--primary-glow));
}

.logo-title {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.status-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Cards & Layout */
.app-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  flex-grow: 1;
  min-height: 0; /* allows shrinking */
  padding-bottom: 5rem; /* Space for bottom player bar */
}

@media (max-width: 1024px) {
  .app-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
    padding-bottom: 6rem;
  }
}

.card {
  background: rgba(13, 18, 30, 0.45); /* Frosty translucent dark slate */
  backdrop-filter: blur(28px) saturate(210%);
  -webkit-backdrop-filter: blur(28px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.08); /* glass boundary border */
  border-top: 1px solid rgba(255, 255, 255, 0.16); /* glass light reflection top edge */
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.45),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12); /* internal bezel highlight */
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed), transform var(--transition-speed);
  display: flex;
  flex-direction: column;
  min-height: 0; /* Allows card container to shrink */
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 
    0 12px 40px 0 rgba(99, 102, 241, 0.15),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

.section-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  border-left: 4px solid var(--primary);
  padding-left: 0.75rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  transition: border-color var(--transition-speed), background-color var(--transition-speed);
}

.select-wrapper::after {
  content: '▼';
  font-size: 0.75rem;
  color: var(--text-secondary);
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-select:focus, .form-input:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.08);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-speed);
}

.help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Recorder Styling */
.recording-state {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.timer-display {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.recording-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 50%;
}

.recording-status-badge.active {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.recording-status-badge.active .pulse-dot {
  background-color: var(--danger);
  animation: pulse 1.5s infinite;
}

.recording-status-badge.paused {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.recording-status-badge.paused .pulse-dot {
  background-color: var(--warning);
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px var(--danger); }
  100% { transform: scale(0.9); opacity: 0.5; }
}

/* Visualizer Canvas */
.visualizer-container {
  background: rgba(17, 24, 39, 0.9);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  height: 120px;
}

#visualizer {
  width: 100%;
  height: 100%;
  display: block;
}

/* Buttons */
.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-speed);
}

.btn-icon {
  font-size: 1rem;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--secondary-hover));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background-color: var(--danger);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-small:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Dashboard & Recording List */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.recordings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  min-height: 0;
}

/* Custom Scrollbars */
.recordings-list::-webkit-scrollbar, .transcript-box::-webkit-scrollbar {
  width: 6px;
}

.recordings-list::-webkit-scrollbar-thumb, .transcript-box::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.recordings-list::-webkit-scrollbar-thumb:hover, .transcript-box::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-sm);
  border: 2px dashed rgba(255, 255, 255, 0.04);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.empty-subtext {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Recording Row Card */
.recording-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  padding: 0.85rem 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.02);
}

.recording-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(4px);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
}

.rec-meta {
  flex-grow: 1;
  min-width: 0; /* Ensures truncation works */
}

.rec-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.rec-title {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-inline-rename {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.4;
  transition: opacity var(--transition-speed);
}

.btn-inline-rename:hover {
  opacity: 1;
}

.rec-info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.rec-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.rec-badge.pending {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.rec-badge.analyzing {
  background-color: rgba(14, 165, 233, 0.15);
  color: #7dd3fc;
  animation: pulse-blue 1.5s infinite;
}

.rec-badge.completed {
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.rec-badge.failed {
  background-color: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

@keyframes pulse-blue {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.rec-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-action-icon {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn-action-icon:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-action-icon.analyze {
  color: #a78bfa;
}

.btn-action-icon.analyze:hover {
  background-color: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

.btn-action-icon.play {
  color: #6ee7b7;
}

.btn-action-icon.play:hover {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.btn-action-icon.delete {
  color: #fca5a5;
}

.btn-action-icon.delete:hover {
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Audio Player Bottom Bar */
.audio-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-surface-solid);
  border-top: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 100;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform var(--transition-speed) ease-in-out;
}

.audio-player-bar.active {
  transform: translateY(0);
}

.player-info {
  display: flex;
  flex-direction: column;
  max-width: 300px;
}

.player-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.player-controls {
  flex-grow: 1;
  max-width: 600px;
}

.player-controls audio {
  width: 100%;
  height: 40px;
  background: none;
  filter: invert(0.9) hue-rotate(180deg); /* Style default player */
}

.btn-close-player {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color var(--transition-speed);
}

.btn-close-player:hover {
  color: #ffffff;
}

/* Dialog / Modal Styling (Premium top-layer) */
.dialog {
  margin: auto;
  width: 90%;
  max-width: 980px;
  height: 85vh;
  max-height: 800px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(11, 15, 25, 0.82); /* Frosted glass dialog */
  backdrop-filter: blur(32px) saturate(220%);
  -webkit-backdrop-filter: blur(32px) saturate(220%);
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
  /* Entry/Exit Transition API Rules */
  opacity: 0;
  transform: scale(0.95);
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  transition-behavior: allow-discrete;
}

.dialog[open] {
  opacity: 1;
  transform: scale(1);
  display: flex;

  @starting-style {
    opacity: 0;
    transform: scale(0.95);
  }
}

.dialog::backdrop {
  background-color: rgba(3, 7, 18, 0);
  transition: display 0.3s allow-discrete, overlay 0.3s allow-discrete, background-color 0.3s ease-out;
}

.dialog[open]::backdrop {
  background-color: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  @starting-style {
    background-color: rgba(3, 7, 18, 0);
  }
}

/* Header & Footer */
.dialog-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-title-wrapper {
  display: flex;
  flex-direction: column;
}

.dialog-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.dialog-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.dialog-close {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.dialog-close:hover {
  background-color: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}

.dialog-body {
  padding: 2rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dialog-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Summary Card */
.summary-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem 1.5rem;
}

.summary-card h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.summary-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tabs-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.3rem;
  border-radius: 9999px; /* pill tray */
  gap: 0.25rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  border-radius: 9999px; /* pill tab button */
  transition: all var(--transition-speed);
}

.tab-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pane grids & typography */
.pane-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .pane-grid {
    grid-template-columns: 1fr;
  }
}

.pane-col h4, .full-width-section h4 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bullet-list li::before {
  content: '✦';
  color: var(--primary);
  font-size: 0.75rem;
  position: absolute;
  left: 0;
  top: 1px;
}

.inline-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.inline-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.85rem;
}

.inline-list li::before {
  content: '';
  display: none;
}

.transcript-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  max-height: 380px;
  overflow-y: auto;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* Backlog Items (Kanban Card design) */
.backlog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.backlog-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.backlog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.backlog-card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.backlog-priority {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.backlog-priority.high {
  background-color: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.backlog-priority.medium {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
}

.backlog-priority.low {
  background-color: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.backlog-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Custom Highlight Boxes */
.highlight-box {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
}

.highlight-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.warning-box {
  background-color: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
}

.warning-box h4 {
  color: #fca5a5 !important;
}

.warning-box li::before {
  content: '⚠️';
}

.recommendation-box {
  background-color: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
}

.recommendation-box h4 {
  color: #6ee7b7 !important;
}

.recommendation-box li::before {
  content: '⚙️';
}

/* Layout Utilities */
.mt-2 { margin-top: 1.5rem; }
.full-width-section { margin-top: 1.5rem; }

/* Settings Specific CSS */
.small-dialog {
  max-width: 460px;
  height: auto;
  max-height: 85vh;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition-speed);
}

.checkbox-label:hover {
  color: #ffffff;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Responsive adjustments */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .dialog {
    transform: none;
  }
}

/* Login Screen Overlay */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 24, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 16px 48px rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(24px) saturate(200%);
  transform: translateY(0);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-logout {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: var(--danger) !important;
}

.btn-logout:hover {
  background: var(--danger) !important;
  color: #fff !important;
  border-color: var(--danger) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45) !important;
}

/* User CRUD Styles */
.users-table th {
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

.users-table td {
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  color: var(--text-secondary);
}

.users-table tr:hover td {
  color: #ffffff;
}

.user-badge {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.user-badge.admin {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.user-badge.user {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.users-table .btn-action-inline {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 0.9rem;
  transition: transform var(--transition-speed);
}

.users-table .btn-action-inline:hover {
  transform: scale(1.25);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

