/*
 *= require_self
 *= require home_animation
 */

/* /*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.error-messages {
  background-color: #ffe6e6;
  border: 1px solid #ff0000;
  color: #ff0000;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.error-messages h2 {
  margin: 0 0 10px;
}

.error-messages ul {
  margin: 0;
  padding-left: 20px;
}

body {
  margin: 0;
  grid-template-columns: 1fr min(70rem, 90%) 1fr;
}

.show-details {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.show-details strong {
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.show-details .message-count {
  margin: 0; /* Remove default margin for the <p> tag */
  font-size: 0.9rem; /* Optional: Adjust font size for message count */
  color: #666; /* Optional: Light gray text for message count */
}

/* app/assets/stylesheets/overrides.css */

/* 1) Import Simple.css again if you're NOT linking it in the layout.
   But in your case, you are linking it directly in the layout,
   so no need to re-import it here unless you prefer. */

/* :root {
  @import url("https://cdn.simplecss.org/simple.min.css");
} */

/* 2) Custom Variables for reduced spacing & dark theme */
:root {
  --block-spacing-vertical: 0.5rem;
  --block-spacing-horizontal: 0.5rem;

  --color-accent: #ffa800;
  --color-accent-contrast: #ffffff;
  --accent: black;
  --accent-hover: #ffffff;
  --border: #898ea4;
  --border-hover: #000;
  --accent-hover: #000;
  --font-size-base: 16px;
  --line-height-base: 1.4;
  --font-family: "Auto Pro", sans-serif;

  /* Base Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --danger-color: #dc2626;
  --danger-hover: #b91c1c;
  --success-color: #4caf50;
  --alert-color: #f44336;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;

  /* Other */
  --border-radius-sm: 6px;
  --border-radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --header-bg: white;
}

/* Dark mode CSS variable overrides */
.dark {
  --bg-primary: #1f2937; /* gray-800 */
  --bg-secondary: #111827; /* gray-900 */
  --text-primary: #f9fafb; /* gray-50 */
  --text-secondary: #d1d5db; /* gray-300 */
  --text-muted: #9ca3af; /* gray-400 */
  --border-color: #374151; /* gray-700 */
}

/* Light mode */
@media (prefers-color-scheme: light) {
  :root {
    --header-bg: white;
  }
}

/* 3) Flash messages (optional styling) */
.flash.notice {
  border-left: 4px solid #4caf50; /* green for notices */
  padding-left: 8px;
}

.flash.alert {
  border-left: 4px solid #f44336; /* red for alerts */
  padding-left: 8px;
}

/* Flash messages dark mode - ensure light text */
.dark .flash {
  color: #f9fafb !important; /* gray-50 - light text for dark backgrounds */
}

.dark .flash.notice {
  color: #f9fafb !important;
  border-left-color: #4caf50;
}

.dark .flash.alert {
  color: #f9fafb !important;
  border-left-color: #f44336;
}

/* Header area: "Your Shows" + "Create a New Show" side by side */
.shows-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.shows-header h1 {
  margin: 0;
  font-size: 2rem;
}

/* Storage Progress Bar */
.storage-progress {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
}

.dark .storage-progress {
  background-color: #1f2937; /* gray-800 */
  border-color: #374151; /* gray-700 */
}

.storage-progress h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dark .storage-progress h3 {
  color: #f3f4f6; /* gray-100 */
}

.storage-progress h3 a {
  font-size: 0.875rem;
  color: var(--accent-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.storage-progress h3 a:hover {
  background-color: var(--accent-color);
  color: white;
}

.progress-bar-container {
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  border: none;
}

.progress-bar {
  height: 100%;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.progress-bar.over-limit {
  background-color: var(--danger-color);
}

/* Shows Container and Items */
.shows-container {
  @apply max-w-xl mx-auto w-full px-4 sm:px-6;
}

.show-item {
  @apply w-full;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.show-details {
  min-width: 150px;
}

/* Show item overlay link - ensure it's transparent and doesn't show bright background */
.show-item a.absolute.inset-0 {
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
}

.dark .show-item a.absolute.inset-0 {
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
}

.show-item a.absolute.inset-0:hover {
  background-color: transparent !important;
}

.dark .show-item a.absolute.inset-0:hover {
  background-color: transparent !important;
}

.show-details strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.show-details p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.show-actions {
  display: flex;
  gap: 0.75rem;
  z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .shows-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .shows-header a {
    text-align: center;
    width: 100%;
  }

  .show-item {
    align-items: flex-start;
    padding: 1rem;
  }

  .show-details {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .show-actions {
    justify-content: flex-end;
    padding-top: 0.5rem;
  }
}

.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  margin: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.dark .card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.dark .card-title {
  color: #f9fafb; /* gray-50 */
}

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

.dark .card-date {
  color: #9ca3af; /* gray-400 */
}

.card-footer {
  margin-top: 1rem;
}

.message-description {
  line-height: 1.6;
}

.message-description p {
  color: inherit;
}

.dark .message-description p {
  color: inherit;
}

.card-description {
  margin-bottom: 1rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Enhanced audio player styles */
.card-audio {
  margin: 0.5rem 0;
}

.audio-content {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: var(--spacing-lg) 0;
  gap: 1.5rem;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  width: 100%; /* Ensure container takes full width */
}

.audio-player {
  flex: 1; /* Take up all available space */
  min-width: 0; /* Allow flex item to shrink below content size */
}

.audio-player audio {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

/* Audio controls styling for modern browsers */
.audio-player audio::-webkit-media-controls-panel {
  background-color: var(--bg-secondary);
  border-radius: 8px;
}

.audio-player audio::-webkit-media-controls-play-button {
  background-color: var(--accent-color);
  border-radius: 50%;
  transform: scale(1.2);
}

.audio-player audio::-webkit-media-controls-timeline {
  background-color: var(--border-color);
  border-radius: 2px;
  height: 4px;
  margin: 0 10px;
}

.audio-player audio::-webkit-media-controls-current-time-display,
.audio-player audio::-webkit-media-controls-time-remaining-display {
  color: var(--text-primary);
  font-size: 0.8125rem;
}

.audio-player audio::-webkit-media-controls-volume-slider {
  background-color: var(--border-color);
  border-radius: 2px;
  padding: 0 5px;
}

.card-transcription {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.no-audio {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  background-color: var(--bg-secondary);
  border-radis: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Spacing and basic styling */
/* Sort Options styling */
/* .sort-options {
  margin-bottom: 1rem;
  font-size: 1rem;
} */

.sort-options a.sort-link {
  color: #3b82f6;
  text-decoration: underline;
}

/* Disabled state */
.sort-link.disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
  text-decoration: none;
}

/* Submitted messages section spacing */
.submitted-messages > * + * {
  margin-top: 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

/* View toggle buttons */
.view-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2px;
}

.view-button {
  padding: 0.375rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  margin-top: 2px;
}

.view-button:hover {
  background: var(--bg-secondary);
}

.view-button.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* Responsive grid for audio messages */
.audio-message-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

/* Expanded view (default) */
.audio-message-grid[data-view-mode="expanded"] {
  grid-template-columns: 1fr;
}

/* Compact view */
.audio-message-grid[data-view-mode="compact"] {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .audio-message-grid[data-view-mode="compact"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .audio-message-grid[data-view-mode="compact"] {
    grid-template-columns: repeat(3, 1fr);
  }
}

.no-messages {
  color: var(--text-muted);
}

/* Recording Interface */
.recording-interface {
  max-width: 600px;
  min-height: 300px;
  margin: var(--spacing-xl) auto;
  padding: var(--spacing-xl);
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  position: relative;
}

.dark .recording-interface {
  background: #1f2937;
  border-color: #374151;
  color: #ffffff;
}

/* Audio Placeholder */
.audio-placeholder {
  position: absolute;
  top: var(--spacing-xl);
  left: var(--spacing-xl);
  right: var(--spacing-xl);
  height: 150px;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-secondary);
  margin-bottom: var(--spacing-lg);
}

.placeholder-content {
  padding: var(--spacing-md);
}

.microphone-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.placeholder-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* Device Selector */
.device-selector {
  margin-bottom: var(--spacing-lg);
}

.device-selector label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-primary);
}

#audio-device-select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--input-border, var(--border-color));
  border-radius: var(--border-radius-sm);
  background-color: var(--input-bg, var(--bg-primary));
  color: var(--text-primary);
  font-size: 1rem;
}

/* Recording Controls */
.recording-controls {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

/* New consistent button styles */
.recording-controls button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  border: 1px solid black !important;
  background: transparent !important;
  color: black !important;
  font-size: 0.875rem !important;
  gap: 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.dark .recording-controls button {
  border-color: #e5e7eb !important;
  color: #e5e7eb !important;
}

.recording-controls button:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.05) !important;
}

.dark .recording-controls button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1) !important;
}

.recording-controls button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Submit button style to match */
.recording-interface .submit-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  border: 1px solid black !important;
  background: transparent !important;
  color: black !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.dark .recording-interface .submit-button {
  border-color: #e5e7eb !important;
  color: #e5e7eb !important;
}

.recording-interface .submit-button:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.05) !important;
}

.dark .recording-interface .submit-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1) !important;
}

.recording-interface .submit-button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Recording Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.recording .record-button {
  animation: pulse 2s infinite;
}

/* Icons */
.record-icon {
  width: 12px;
  height: 12px;
  background-color: currentColor;
  border-radius: 50%;
}

.stop-icon {
  width: 12px;
  height: 12px;
  background-color: currentColor;
}

/* Status and Audio Player */
.recording-status {
  min-height: 24px;
  margin: 0;
  color: var(--text-primary);
  font-weight: 500;
  text-align: center;
  font-size: 1.1rem;
  padding: var(--spacing-md) 0;
}

.dark .recording-status {
  color: #ffffff !important;
}

/* Audio content container */
.audio-content {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: var(--spacing-lg) 0;
  gap: 1.5rem;
}

.player-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
  margin: 1rem 0;
}

.play-button {
  background-color: #6468d5;
  border: none;
  cursor: pointer;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  box-shadow: 0 2px 4px rgba(100, 104, 213, 0.2);
}

.play-button:hover {
  background-color: #5054c0; /* Slightly darker on hover */
  box-shadow: 0 4px 6px rgba(100, 104, 213, 0.3);
}

.play-button svg {
  fill: white;
  width: 32px;
  height: 32px;
  margin-left: 2px; /* Optical centering for play icon */
}

.play-button[data-playing="true"] .play-icon {
  transform: scale(0.9); /* Slightly smaller when playing */
}

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

#waveform {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  min-width: 0;
  height: 50px;
  border: 1px solid rgba(100, 104, 213, 0.2);
}

/* Base button styles */
.button,
a.button,
button.button,
.nav-right .button,
.nav-right a.button,
input[type="submit"].button {
  background-color: white !important;
  color: black !important;
  border: 1px solid black !important;
  border-radius: 6px !important;
  padding: 0.5rem 1rem !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.dark .button,
.dark a.button,
.dark button.button,
.dark .nav-right .button,
.dark .nav-right a.button,
.dark input[type="submit"].button {
  background-color: #374151 !important; /* gray-700 */
  color: #d1d5db !important; /* gray-300 */
  border-color: #4b5563 !important; /* gray-600 */
}

.button:hover,
a.button:hover,
button.button:hover,
.nav-right .button:hover,
.nav-right a.button:hover,
input[type="submit"].button:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: black !important;
  border-color: black !important;
}

.dark .button:hover,
.dark a.button:hover,
.dark button.button:hover,
.dark .nav-right .button:hover,
.dark .nav-right a.button:hover,
.dark input[type="submit"].button:hover {
  background-color: #4b5563 !important; /* gray-600 */
  color: #e5e7eb !important; /* gray-200 */
  border-color: #6b7280 !important; /* gray-500 */
}

/* Danger variant */
.button.danger,
a.button.danger,
button.button.danger {
  color: #dc2626 !important;
  border-color: #dc2626 !important;
}

.button.danger:hover:not(:disabled),
a.button.danger:hover:not(:disabled),
button.button.danger:hover:not(:disabled) {
  background-color: rgba(220, 38, 38, 0.1) !important;
}

/* Recording-specific buttons and controls - preserved as is */
.recording-controls {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.recording-controls button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  border: 1px solid black !important;
  background: transparent !important;
  color: black !important;
  font-size: 0.875rem !important;
  gap: 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.recording-controls button:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.05) !important;
}

.recording-controls button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Record button with red background */
.recording-controls .record-button,
.recording-controls button.record-button {
  background: #dc2626 !important; /* red background */
  color: white !important;
  border-color: #dc2626 !important;
}

.dark .recording-controls .record-button,
.dark .recording-controls button.record-button {
  background: #dc2626 !important; /* red background */
  color: white !important;
  border-color: #dc2626 !important;
}

.recording-controls .record-button:hover:not(:disabled),
.recording-controls button.record-button:hover:not(:disabled) {
  background: #b91c1c !important; /* darker red on hover */
  color: white !important;
  border-color: #b91c1c !important;
}

.dark .recording-controls .record-button:hover:not(:disabled),
.dark .recording-controls button.record-button:hover:not(:disabled) {
  background: #b91c1c !important; /* darker red on hover */
  color: white !important;
  border-color: #b91c1c !important;
}

/* Recording Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.recording .record-button {
  animation: pulse 2s infinite;
}

/* Play button specific styles */
.play-button {
  background-color: #6468d5;
  border: none;
  cursor: pointer;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  box-shadow: 0 2px 4px rgba(100, 104, 213, 0.2);
}

.play-button:hover {
  background-color: #5054c0;
  box-shadow: 0 4px 6px rgba(100, 104, 213, 0.3);
}

/* Override the blue button styles */
.nav-right .button,
.nav-right a.button {
  background-color: white !important;
  color: black !important;
}

.nav-right .button:hover,
.nav-right a.button:hover,
.nav-right .button:focus,
.nav-right a.button:focus {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: black !important;
}

.nav-right .button:active,
.nav-right a.button:active {
  background-color: rgba(0, 0, 0, 0.1) !important;
  color: black !important;
}

/* Add consistent page container styles */
.page-container {
  @apply max-w-xl mx-auto w-full px-4 sm:px-6;
}

.billing-management {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subscription-details {
  margin-top: 1.5rem;
}

.cancellation-notice {
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 4px;
  margin: 1rem 0;
}

.active-subscription {
  padding: 1rem;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  margin: 1rem 0;
}

.cancel-subscription-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

.cancel-subscription-btn:hover {
  background: #c82333;
}

.upgrade-btn {
  display: inline-block;
  background: #007bff;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.upgrade-btn:hover {
  background: #0056b3;
  text-decoration: none;
}

.expired-subscription {
  padding: 1rem;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin: 1rem 0;
}

/* Code block styling */
code {
  background-color: #e5e7eb;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: #1a202c;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.dark code {
  background-color: #374151;
  color: #f9fafb;
}

pre {
  background-color: #1f2937;
  color: #ffffff;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.7142857;
}

.dark pre {
  background-color: #111827;
  color: #f9fafb;
}

pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.dark pre code {
  background-color: transparent;
  color: inherit;
}

/* Force dark mode for CTA sections */
.dark .bg-blue-50 {
  background-color: #111827 !important; /* gray-900 */
}

.dark .border-blue-100 {
  border-color: #374151 !important; /* gray-700 */
}
