.input-field {
  font-size: 3vw;
  font-weight: bold;
  text-align: center;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.buttons-container .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  height: 50%;
}

/* Optional: customization of the first and second buttons for rounded corners */
.buttons-container .btn:first-child {
  border-top-right-radius: .25rem; /* Same radius as the search bar */
  border-bottom-right-radius: 0;
}

.buttons-container .btn:last-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: .25rem; /* Same radius as the search bar */
}

/* Make sure that the buttons have the same overall height as the search bar */
.input-group {
  display: flex;
}

.buttons-container {
  display: flex;
  flex-direction: column;
  margin-left: -1px; /* Prevents duplicate frames between search bar and buttons */
}

[data-bs-theme="light"] {
  .btn-outline-secondary {
     border-color: #6c757d;
     color: #565b5e; 
  }
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: #fff;
}

.btn-outline-secondary:focus, .btn-outline-secondary:active {
  box-shadow: none;
}

[data-bs-theme="dark"] {
  .grayscale {
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
  }

  .btn-outline-secondary {
    border-color: #dcdfe5;
    color: #dcdfe5;
  }
}

/* Google Maps iframe styling */
.map-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}

[data-bs-theme="dark"] .map-iframe {
  -webkit-filter: grayscale(0.5) brightness(0.8);
  filter: grayscale(0.5) brightness(0.8);
}

/* Ensure the map container takes full height */
.col-md-6 .h-100 {
  min-height: 400px;
}

/* Theme Toggle Button - Icon Only Style */
.theme-toggle-btn {
  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--bs-body-color);
  --bs-btn-hover-bg: rgba(var(--bs-body-color-rgb), 0.1);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: var(--bs-body-color-rgb);
  --bs-btn-active-color: var(--bs-body-color);
  --bs-btn-active-bg: rgba(var(--bs-body-color-rgb), 0.2);
  --bs-btn-active-border-color: transparent;
  
  background-color: transparent;
  border: none;
  color: var(--bs-body-color);
  transition: all 0.3s ease;
  border-radius: 0.375rem;
  min-width: auto;
  padding: 0.375rem 0.75rem;
}

.theme-toggle-btn:hover {
  background-color: rgba(var(--bs-body-color-rgb), 0.1);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: none;
}

.theme-toggle-btn:active {
  background-color: rgba(var(--bs-body-color-rgb), 0.2);
  border-color: transparent;
  transform: translateY(0);
}

.theme-toggle-btn:focus {
  box-shadow: none;
  outline: none;
}

.theme-toggle-btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-body-color-rgb), 0.25);
}

.theme-toggle-btn.theme-switching {
  transform: scale(0.95);
}

.theme-toggle-btn .theme-icon {
  transition: transform 0.3s ease;
}

.theme-toggle-btn.theme-switching .theme-icon {
  transform: rotate(180deg);
}

.bi {
  vertical-align: -.125em;
  fill: currentColor;
}

/* Textarea auto-resize */
textarea {
  resize: none;
  overflow: hidden;
}

/* Responsive title */
.responsive-title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: bold;
  word-wrap: break-word;
}

/* Table styles */
.table td, .table th {
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}

.table th, .table td {
  min-width: 100px;
}

/* Tab content adjustments */
.tab-content {
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  border-radius: 0 0 0.375rem 0.375rem;
  padding: 1rem;
}

[data-bs-theme="dark"] .tab-content {
  border-color: #495057;
}

/* Custom dark theme adjustments */
[data-bs-theme="dark"] .nav-tabs .nav-link {
  color: #adb5bd;
  border-color: transparent;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
  color: #fff;
  background-color: #212529;
  border-color: #495057 #495057 #212529;
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
  border-color: #495057;
  isolation: isolate;
}

/* Improved button styling for better visual hierarchy */
.btn-primary {
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Alert styling improvements */
.alert {
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Consistent card styling with shadow */
.rounded-3 {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .rounded-3 {
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Consistent background color */
.bg-body-tertiary {
  background-color: #f8f9fa !important;
}

[data-bs-theme="dark"] .bg-body-tertiary {
  background-color: #343a40 !important;
}

/* Custom table header styling for better appearance */
.table-secondary {
  --bs-table-bg: #6c757d;
  --bs-table-color: #fff;
}

[data-bs-theme="dark"] .table-secondary {
  --bs-table-bg: #495057;
  --bs-table-color: #fff;
}

/* Better table styling for multi-lookup results */
.table-dark thead th {
  background-color: var(--bs-table-bg);
  color: var(--bs-table-color);
  border-color: #495057;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

/* Dropdown Navigation Styling */

/* Enhanced dropdown menu styling */
.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  min-width: 200px;
  margin-top: 0.25rem;
}

.navbar-nav .dropdown-item {
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.navbar-nav .dropdown-item:hover {
  background-color: #f8f9fa;
}

.navbar-nav .dropdown-item:focus {
  background-color: #e9ecef;
  outline: none;
}

.navbar-nav .dropdown-item.active {
  background-color: #0d6efd;
  color: white;
}

/* Dark theme dropdown styling */
[data-bs-theme="dark"] .navbar-nav .dropdown-menu {
  background-color: #212529;
  border: 1px solid #495057;
}

[data-bs-theme="dark"] .navbar-nav .dropdown-item {
  color: #adb5bd;
}

[data-bs-theme="dark"] .navbar-nav .dropdown-item:hover {
  background-color: #343a40;
  color: #fff;
}

[data-bs-theme="dark"] .navbar-nav .dropdown-item.active {
  background-color: #0d6efd;
  color: white;
}

/* Icon styling in dropdown items */
.dropdown-item .bi {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.dropdown-item:hover .bi,
.dropdown-item.active .bi {
  opacity: 1;
}

/* Container height adjustments like DNS Lookup */
.container-fluid.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.container-fluid.py-3 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

/* Einheitliche Höhe für alle Suchbereiche */
.p-5.mb-4.bg-body-tertiary.rounded-3 {
  min-height: 400px;
  display: flex;
  align-items: center;
}

.bg-body-tertiary.rounded-3 {
  min-height: 400px;
  display: flex;
  align-items: center;
}
