/*html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}*/
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

a,
.btn-link {
  color: #006bb7;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
  padding-top: 1.1rem;
}

h1:focus {
  outline: none;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OU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
}

.darker-border-checkbox.form-check-input {
  border-color: #929292;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

/* Delete Page Styles */
.search-section {
  margin-bottom: 2rem;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input {
  width: 400px;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: white;
}

.search-results-section {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.search-results-section h3 {
  color: #495057;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.search-results-section .table {
  margin-bottom: 0;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-results-section .table th {
  background-color: #343a40;
  color: white;
  border: none;
  font-weight: 600;
  padding: 12px;
}

.search-results-section .table td {
  padding: 10px 12px;
  vertical-align: middle;
  border-color: #e9ecef;
}

.search-results-section .table tbody tr:hover {
  background-color: #f1f3f4;
}

.search-results-section code {
  background-color: #e9ecef;
  color: #495057;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
}

.search-input:focus {
  border-color: #1b6ec2;
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.1);
}

.search-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  background: linear-gradient(135deg, #1b6ec2, #1861ac);
  color: white;
  min-width: 140px;
}

.search-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 110, 194, 0.3);
  background: linear-gradient(135deg, #1861ac, #155a98);
}

.search-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.results-section {
  margin-top: 2rem;
}

.container {
  display: flex;
  min-width: 100%;
  width: 100%;
  gap: 24px;
  margin: 20px 0;
}

.scrollable {
  width: 100%;
  max-width: 45vw;
  height: 450px;
  overflow: auto;
  white-space: pre-wrap;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background-color: #f8f9fa;
  padding: 16px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.scrollable::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.scrollable::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.scrollable::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.container-item {
  padding: 20px;
  flex: 1;
  background: white;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.container-item>p:first-child {
  font-weight: 700;
  font-size: 18px;
  color: #1b6ec2;
  margin-bottom: 16px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 8px;
}

.action-buttons {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e9ecef;
}

.delete-section {
  margin-top: 2rem;
  padding: 2rem;
  background: #fff8f0;
  border: 2px dashed #ffc107;
  border-radius: 12px;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  margin: 2rem 0;
}

.loading-container .spinner-border {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.not-found-container {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #fff3cd, #fdf2e9);
  border-radius: 12px;
  margin: 2rem 0;
}

.full-width-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.full-width-input:focus {
  border-color: #1b6ec2;
  outline: none;
}

/* Status Messages */
.alert {
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border-left: 4px solid #721c24;
}

/* Loading States */
.searching-message {
  color: #6c757d;
  font-style: italic;
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 10px 0;
}

/* Not Found Messages */
.not-found-message {
  color: #6f42c1;
  font-weight: 600;
  padding: 16px;
  background: linear-gradient(135deg, #e7e3ff, #f3f0ff);
  border: 1px solid #d1ecf1;
  border-radius: 8px;
  margin: 10px 0;
}

/* Page Title */
h1 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Labels */
label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search-input {
    width: 100%;
  }

  .search-button {
    width: 100%;
    justify-content: center;
  }

  .container {
    flex-direction: column;
    gap: 16px;
  }

  .scrollable {
    max-width: 100%;
    height: 300px;
  }

  .container-item {
    padding: 16px;
  }

  h1 {
    font-size: 2rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .search-container {
    padding: 1rem;
  }

  .container-item {
    padding: 12px;
  }

  .scrollable {
    height: 250px;
    font-size: 12px;
  }

  h1 {
    font-size: 1.8rem;
  }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-section {
  animation: fadeIn 0.5s ease-out;
}

.loading-container {
  animation: fadeIn 0.3s ease-out;
}

.not-found-container {
  animation: fadeIn 0.3s ease-out;
}

/* Search results table enhancements */
.search-results-section .table th,
.search-results-section .table td {
  font-size: 0.9rem;
  padding: 8px 10px;
}

.search-results-section .table th {
  white-space: nowrap;
}

.search-results-section .table td code {
  font-size: 0.8rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* App Version badge styling */
.badge.bg-info {
  background-color: #17a2b8 !important;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 12px;
}

/* Focus styles for accessibility */
.search-button:focus,
.search-input:focus {
  outline: 2px solid #1b6ec2;
  outline-offset: 2px;
}

/* Print styles */
@media print {

  .search-section,
  .delete-section {
    display: none;
  }

  .container-item {
    box-shadow: none;
    border: 1px solid #000;
    break-inside: avoid;
  }

  .scrollable {
    height: auto;
    overflow: visible;
    border: 1px solid #000;
  }
}
