/* Base styles */
:root {
  /* Modern Dark Theme Colors - 2025 Palette */
  --background: #111827;
  --background-gradient: linear-gradient(135deg, #111827, #1f2937);
  --foreground: #e5e7eb;
  --card: rgba(31, 41, 55, 0.85);
  --card-foreground: #ffffff;
  --primary: #1e3a8a;
  --primary-hover: #3b82f6;
  --primary-foreground: #ffffff;
  --secondary: #1e293b;
  --secondary-foreground: #e5e7eb;
  --muted: #334155;
  --muted-foreground: #94a3b8;
  --accent: #f472b6;
  --accent-hover: #fb7185;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.12);
  --input: #1e293b;
  --ring: #3b82f6;
  --radius: 1.25rem;
  --header-height: 60px;

  /* Animation speeds */
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes flipIn {
  0% { opacity: 0; transform: rotateY(-90deg); }
  100% { opacity: 1; transform: rotateY(0); }
}

@keyframes glow {
  0% { box-shadow: 0 0 8px rgba(187, 134, 252, 0.3); }
  50% { box-shadow: 0 0 20px rgba(187, 134, 252, 0.6); }
  100% { box-shadow: 0 0 8px rgba(187, 134, 252, 0.3); }
}

body {
  font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  background: var(--background-gradient);
  background-size: 300% 300%;
  animation: gradientShift 15s infinite;
  color: var(--foreground);
  overflow-x: hidden;
}

/* App Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid var(--border);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.app-title {
  position: relative;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.app-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 30%;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.app-title:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .app-title {
    font-size: 1.2rem;
  }
  
  .app-header {
    padding: 0 1rem;
  }
}

/* Layout */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  padding-top: calc(var(--header-height) + 0.5rem);
  padding-bottom: 1.5rem;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: 2rem;
  }
  
  .app-grid {
    grid-template-columns: minmax(320px, 400px) 1fr;
    gap: 2rem;
  }
  
  .input-section {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    height: calc(100vh - var(--header-height) - 3rem);
    overflow-y: auto;
    padding-right: 0.5rem;
    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
      width: 5px;
    }
    &::-webkit-scrollbar-track {
      background: transparent;
    }
    &::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
    }
  }
  
  .responses-section {
    overflow-y: auto;
    height: calc(100vh - var(--header-height) - 3rem);
    padding-right: 0.5rem;
    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
      width: 5px;
    }
    &::-webkit-scrollbar-track {
      background: transparent;
    }
    &::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
    }
  }
}

@media (min-width: 1280px) {
  .app-grid {
    grid-template-columns: minmax(380px, 450px) 1fr;
    gap: 2.5rem;
  }
}

/* Card styles */
.card {
  background-color: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  animation: fadeInUp 0.6s ease-out forwards;
}

.card:hover {
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.2), 0 0 1px rgba(0, 0, 0, 0.3);
}

.main-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-title {
  position: relative;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.card-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.card-title:hover::after {
  width: 100%;
}

@media (min-width: 768px) {
  .card {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
}

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

.persona-group {
  margin-bottom: 1.75rem;
}

.control-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

#input-label {
  color: var(--primary);
  opacity: 0.9;
}

.textarea,
.input {
  width: 100%;
  border: 1px solid var(--border);
  background-color: var(--input);
  padding: 0.875rem;
  font-size: 1rem;
  border-radius: calc(var(--radius) * 0.75);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  color: var(--foreground);
  transition: all var(--transition-medium);
}

.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .textarea {
    min-height: 140px;
  }
}

.textarea:focus,
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.textarea:hover,
.input:hover {
  border-color: rgba(187, 134, 252, 0.4);
}

.textarea::placeholder,
.input::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

/* Button styles */
.button-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .button-container {
    flex-direction: column;
  }
  
  .button-container .button {
    width: 100%;
  }
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: calc(var(--radius) * 0.75);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  transition: all var(--transition-medium);
  cursor: pointer;
  overflow: hidden;
  border: none;
  letter-spacing: 0.01em;
}

.button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0.8;
}

.button.ripple::after {
  animation: ripple 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ripple {
  to {
    width: 300%;
    height: 300%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.button-openai {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 10px -2px rgba(27, 53, 128, 0.3);
}

.button-openai:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 15px -3px rgba(27, 53, 128, 0.4);
}

.button-grok {
  background-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 4px 10px -2px rgba(244, 114, 182, 0.3);
}

.button-grok:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 6px 15px -3px rgba(244, 114, 182, 0.4);
}

.button-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.button-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(187, 134, 252, 0.4);
}

.button-red:hover {
  color: var(--destructive);
  border-color: var(--destructive);
}

.button-blue:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.button-icon {
  padding: 0.5rem;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button svg {
  margin-right: 0.5rem;
  width: 1.125rem;
  height: 1.125rem;
}

.button-icon svg {
  margin-right: 0;
}

/* Persona Carousel */
.persona-carousel {
  position: relative;
  width: 100%;
  height: 120px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .persona-carousel {
    height: 130px;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .persona-carousel {
    height: 110px;
  }
}

.persona-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.persona-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 340px;
  height: 100%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background-color: var(--secondary);
  border-radius: var(--radius);
  padding: 0.875rem;
  border: 1px solid var(--border);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
}

@media (max-width: 480px) {
  .persona-card {
    max-width: 280px;
    padding: 0.75rem;
  }
}

.persona-card.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  background-color: rgba(187, 134, 252, 0.13);
  border-color: var(--primary);
  box-shadow: 0 10px 25px -5px rgba(187, 134, 252, 0.3);
}

.persona-card.prev,
.persona-card.next {
  opacity: 0.35;
  visibility: visible;
  z-index: 1;
  transform: translateX(-50%) scale(0.85);
  filter: blur(1px);
}

.persona-card.prev {
  transform: translateX(calc(-50% - 82%)) scale(0.8);
}

.persona-card.next {
  transform: translateX(calc(-50% + 82%)) scale(0.8);
}

@media (min-width: 768px) {
  .persona-card.prev {
    transform: translateX(calc(-50% - 88%)) scale(0.8);
    opacity: 0.4;
  }
  .persona-card.next {
    transform: translateX(calc(-50% + 88%)) scale(0.8);
    opacity: 0.4;
  }
}

.persona-card:hover {
  transform: translateX(-50%) translateY(-2px);
}

.persona-card.prev:hover, 
.persona-card.next:hover {
  opacity: 0.65;
}

.persona-card.active:hover {
  opacity: 1;
}

.persona-emoji {
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(187, 134, 252, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.active .persona-emoji {
  animation: pulse 3s infinite;
  filter: drop-shadow(0 3px 6px rgba(187, 134, 252, 0.4));
}

.persona-info {
  flex: 1;
  min-width: 0;
}

.persona-name {
  position: relative;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active .persona-name {
  color: var(--primary-hover);
}

.active .persona-name::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50%;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.persona-card:hover .active .persona-name::after {
  width: 100%;
}

.persona-description {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .persona-description {
    -webkit-line-clamp: 1;
  }
}

.active .persona-description {
  color: rgba(255, 255, 255, 0.85);
}

.persona-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.persona-dots {
  display: flex;
  gap: 0.35rem;
}

.persona-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--muted);
  transition: all 0.2s ease;
  cursor: pointer;
}

.persona-dot.active {
  background-color: var(--primary);
  transform: scale(1.35);
  box-shadow: 0 0 8px rgba(187, 134, 252, 0.4);
}

.persona-button {
  background-color: var(--secondary);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.1);
}

.persona-button:hover {
  background-color: rgba(187, 134, 252, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px -2px rgba(0, 0, 0, 0.2);
}

.persona-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Response section styling */
.responses-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.responses-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Response card */
.response-card {
  margin-top: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  position: relative;
  padding: 1.5rem;
}

.response-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.persona-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.persona-header-emoji {
  font-size: 2.25rem;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
  animation: pulse 4s infinite;
  flex-shrink: 0;
  background: radial-gradient(circle, rgba(187, 134, 252, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.persona-header-info h3 {
  position: relative;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.persona-header-info h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.response-card:hover .persona-header-info h3::after {
  width: 100%;
}

.persona-header-info p {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

/* Analysis styling */
.response-analysis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background-color: rgba(30, 30, 30, 0.7);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.analysis-item {
  display: flex;
  flex-direction: column;
  flex: 1 1 calc(33.333% - 0.75rem);
  min-width: 120px;
}

.analysis-item.full-width {
  flex: 1 1 100%;
}

.analysis-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.analysis-value {
  font-size: 0.85rem;
  color: var(--foreground);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .analysis-item {
    flex: 1 1 calc(50% - 0.75rem);
  }
}

@media (max-width: 480px) {
  .response-analysis {
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .analysis-item {
    flex: 1 1 100%;
  }
}

/* Drag interaction styling */
.persona-track.dragging {
  cursor: grabbing;
  transition: none;
}

.persona-track.dragging .persona-card {
  transition: transform 0.1s ease;
  user-select: none;
  -webkit-user-select: none;
}

.persona-card {
  cursor: pointer;
  transition: all 0.3s ease;
  touch-action: pan-y;
}

/* Mode tabs styling */
.modes-container {
  margin-bottom: 1.5rem;
  width: 100%;
  padding-bottom: 5px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 0.75rem;
  border-radius: calc(var(--radius) * 0.75);
  background-color: var(--secondary);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}

/* Creation mode specific styling */
.mode-tab[data-mode-type="creation"] {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(187, 134, 252, 0.3);
}

.mode-tab[data-mode-type="creation"]::before {
  content: '✨ Content Creation';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  background: var(--background);
  padding: 0 0.5rem;
  color: var(--primary);
  border-radius: 4px;
}

.mode-tab[data-mode-type="creation"].active {
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.2), rgba(187, 134, 252, 0.05));
}

.mode-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
  border-radius: 2px;
}

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

.mode-tab[data-mode-type="creation"]:hover {
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.15), rgba(255, 255, 255, 0.07));
}

.mode-tab.active {
  background-color: rgba(187, 134, 252, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.mode-tab.active::after {
  transform: scaleX(1);
}

.mode-tab-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.mode-tab-name {
  font-weight: 500;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .modes-container {
    margin: 0 0 1.25rem;
    padding: 0 0 5px;
  }
  
  .mode-tabs {
    gap: 0.625rem;
  }
  
  .mode-tab {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    min-height: 3.25rem;
  }
  
  .mode-tab-emoji {
    font-size: 1.125rem;
  }
  
  .mode-tab-name {
    font-size: 0.8125rem;
  }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
  .mode-tab {
    padding: 1rem 0.75rem;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Response content */
.response-content {
  background-color: var(--secondary);
  padding: 1.25rem;
  border-radius: calc(var(--radius) * 0.75);
  color: var(--secondary-foreground);
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.15);
  word-wrap: break-word;
  white-space: pre-wrap;
  position: relative;
  z-index: 1;
  hyphens: auto;
  -webkit-hyphens: auto;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}

.response-content p {
  font-size: 1.05rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .response-content p {
    font-size: 1.125rem;
  }
}

.response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

@media (min-width: 768px) {
  .response-actions {
    gap: 0.75rem;
  }
}

/* Response mode indicator */
.response-mode-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--secondary);
  border-radius: calc(var(--radius) * 0.75);
  width: fit-content;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

.mode-emoji {
  font-size: 1.1rem;
}

.mode-name {
  white-space: nowrap;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  width: 90%;
  max-width: 500px;
  animation: slideInUp 0.4s ease-out;
}

.modal-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

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

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

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--card-foreground);
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease-out;
  border: 1px solid var(--border);
}

.toast.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.toast.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.checkbox-container input[type="checkbox"] {
  margin-top: 0.25rem;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--foreground);
}