@tailwind base;
  @tailwind components;
  @tailwind utilities;

  @layer base {
    :root {
      --background: 0 0% 100%;
      --foreground: 20 14.3% 4.1%;

      --card: 0 0% 100%;
      --card-foreground: 20 14.3% 4.1%;

      --popover: 0 0% 100%;
      --popover-foreground: 20 14.3% 4.1%;

      --primary: 24 9.8% 10%;
      --primary-foreground: 60 9.1% 97.8%;

      --secondary: 60 4.8% 95.9%;
      --secondary-foreground: 24 9.8% 10%;

      --muted: 60 4.8% 95.9%;
      --muted-foreground: 25 5.3% 44.7%;

      --accent: 60 4.8% 95.9%;
      --accent-foreground: 24 9.8% 10%;

      --destructive: 0 84.2% 60.2%;
      --destructive-foreground: 60 9.1% 97.8%;

      --border: 20 5.9% 90%;
      --input: 20 5.9% 90%;
      --ring: 20 14.3% 4.1%;

      --radius: 0.5rem;
    }

    .dark {
      --background: 20 14.3% 4.1%;
      --foreground: 60 9.1% 97.8%;

      --card: 20 14.3% 4.1%;
      --card-foreground: 60 9.1% 97.8%;

      --popover: 20 14.3% 4.1%;
      --popover-foreground: 60 9.1% 97.8%;

      --primary: 60 9.1% 97.8%;
      --primary-foreground: 24 9.8% 10%;

      --secondary: 12 6.5% 15.1%;
      --secondary-foreground: 60 9.1% 97.8%;

      --muted: 12 6.5% 15.1%;
      --muted-foreground: 24 5.4% 63.9%;

      --accent: 12 6.5% 15.1%;
      --accent-foreground: 60 9.1% 97.8%;

      --destructive: 0 62.8% 30.6%;
      --destructive-foreground: 60 9.1% 97.8%;

      --border: 12 6.5% 15.1%;
      --input: 12 6.5% 15.1%;
      --ring: 24 5.7% 82.9%;
    }
  }

  @layer base {
    * {
      @apply border-border;
    }
    body {
      @apply bg-background text-foreground;
    }
  }

  .resize-x {
    resize: horizontal;
    overflow: auto;
  }

  .resizer {
    width: 10px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: col-resize;
    background-color: transparent;
    transition: background-color 0.2s;
  }
  
  .resizer:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  @keyframes glow {
    0% {
      box-shadow: 0 0 10px 5px rgba(var(--glow-color), 0.3);
      border-radius: 15px;
    }
    50% {
      box-shadow: 0 0 20px 10px rgba(var(--glow-color), 0.7);
      border-radius: 15px;
    }
    100% {
      box-shadow: 0 0 10px 5px rgba(var(--glow-color), 0.1);
      border-radius: 15px;
    }
  }
  
  .glow {
    animation: glow 1.3s ease-in-out;
    border-radius: 15px;
  }
  
  :root {
    --glow-color: 128, 128, 128; /* Gray color for light mode */
  }
  
  .dark {
    --glow-color: 211, 211, 211; /* Light gray color for dark mode */
  }

  .document-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    margin: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .document-link:hover {
    background-color: #ddd;
  }
  
  .dark .document-link {
    background-color: #444;
    color: #fff;
  }
  
  .dark .document-link:hover {
    background-color: #555;
  }

  .external-link-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    z-index: 9999;
    max-width: 90%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .external-link-notification.show {
    opacity: 1;
    visibility: visible;
  }
  
  .dark .external-link-notification {
    background-color: #444;
    color: #fff;
  }

  @keyframes countdown {
    0% {
      width: 100%;
    }
    100% {
      width: 0%;
    }
  }

  /* ... existing styles ... */

.prompt-suggestions {
  margin-bottom: 20px;
}

.prompt-suggestions h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.prompt-suggestions ul {
  list-style-type: none;
  padding: 0;
}

.prompt-suggestions li {
  cursor: pointer;
  margin-bottom: 5px;
  padding: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
}

.dark .prompt-suggestions li {
  background-color: #444;
}

@media (max-width: 767px) {
  .modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
  }

  .modal-content {
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}