/* Reset and base styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #111827;
  color: #f3f4f6;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem; /* Erhöhe den Abstand hier */
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem; /* Auch hier den Abstand anpassen */
  }
}

/* Navigation */
.navbar {
  border-bottom: 1px solid #1f2937;
  padding: 1rem 1.5rem;
}

.navbar-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 24px;
  height: 24px;
  color: #3b82f6;
}

.title {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
}

.response-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
  color: #10B981; /* Grüner Farbcode (giftgrün) */
}

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

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.method-select {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  outline: none;
}

.url-input {
  flex: 1;
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  outline: none;
  width: 100%;
}

.textarea {
  width: 100%;
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  outline: none;
  font-family: monospace;
  resize: vertical;
  min-height: 100px;
}

.url-group {
  display: flex;
  gap: 1rem;
}

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.button:hover {
  background-color: #2563eb;
}

/* Response section */
.response-section {
  background-color: #1f2937;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.response-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.response-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}

.response-empty {
  text-align: center;
  color: #9ca3af;
  padding: 2rem;
}


.response-content {
  white-space: pre-wrap; /* Zeilenumbruch beibehalten */
  word-wrap: break-word; /* Zeilen brechen, wenn nötig */
  background-color: #111827;
  color: #f3f4f6;
  padding: 1rem;
  border-radius: 0.5rem;
  font-family: monospace;
  font-size: 0.875rem;
  text-align: left; /* Text linksbündig ausrichten */
}

/* Authentication Section */
.auth-section {
  margin-bottom: 1.5rem;
}

.auth-input {
  background-color: #1f2937;
  color: #f3f4f6;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  outline: none;
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Benutzerdefinierter Button für den Datei-Upload */
.file-upload-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #3b82f6;
  color: white;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap; /* Verhindert Umbruch des Textes */
}

.file-upload-button:hover {
  background-color: #2563eb;
}

/* Verstecke das Standard-Datei-Input */
.file-input {
  display: none;
}

/* Styling für den Container */
.file-upload-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Weniger Abstand zwischen den Elementen */
  width: auto;
  max-width: 100%;
  transition: margin-top 0.3s ease; /* Animation für den Container */
}

/* Zeige den Dateinamen an mit sanfter Transition */
.file-name {
  font-size: 0.875rem;
  color: #f3f4f6;
  margin-top: 0.5rem;
  word-wrap: break-word;
  opacity: 0; /* Anfangszustand: unsichtbar */
  transition: opacity 0.3s ease-in-out; /* Transition für das Einblenden */
}

/* Styling für den Delete-Button */
.delete-button {
  background-color: #f87171;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease, opacity 0.3s ease-in-out; /* Sanftes Einblenden/Verblassen */
  margin-top: 0.5rem; /* Abstand nach dem Dateinamen */
  opacity: 0; /* Anfangszustand: unsichtbar */
}

/* Hover-Effekt für den Delete-Button */
.delete-button:hover {
  background-color: #ef4444;
}

/* Zeigt den Dateinamen und den Delete-Button mit Animation */
.file-upload-container.file-selected .file-name {
  opacity: 1; /* Sichtbar nach Auswahl */
}

.file-upload-container.file-selected .delete-button {
  opacity: 1; /* Sichtbar nach Auswahl */
}

/* Abstände zwischen den Sektionen */
.form-group {
  margin-bottom: 2rem; /* Abstand zwischen "Delete" und "Authentication (Optional)" */
}

