/* Обводка для кнопок переключателя темы и выбора цвета */
/* Обводка для кнопок переключателя темы */
.bd-mode-toggle .btn {
  border: 2px solid var(--bd-violet, var(--bs-border-color, #6c757d));
  box-shadow: none;
}
.bd-mode-toggle .btn:focus {
  border-color: var(--bd-violet, var(--bs-primary, #0d6efd));
  outline: none;
}

/* Кнопка color-mode-switch: стиль как у переключателя темы */
/* Монохромные иконки переключателя темы */
.bd-mode-toggle .bi {
  fill: currentColor;
  color: var(--bs-body-color);
  transition: fill 0.2s;
}
/* Иконки в dropdown всегда монохромные, без полупрозрачности */
.dropdown-menu .bi {
  fill: currentColor !important;
  opacity: 1 !important;
}
/* Иконки Bootstrap: используют цвет текста, Safari-safe sizing */
.bi {
  fill: currentColor;
  width: 1em;
  height: 1em;
  max-width: 1em;
  max-height: 1em;
  overflow: hidden;
  vertical-align: -0.125em;
  display: inline-block;
}
/* custom.css — общий дизайн для aezki.su */
.bd-mode-toggle {
  z-index: 1500;
}
.bd-mode-toggle .bi {
  width: 1em;
  height: 1em;
}
.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}
.error-404 {
  font-size: 8rem;
  font-weight: 900;
  line-height: 0.9;
  margin: 0;
  background: linear-gradient(135deg, var(--error-color-start, #0d6efd) 0%, var(--error-color-end, #6610f2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.error-text {
  font-size: 1.5rem;
  margin: 1.5rem 0 2rem;
  color: var(--bs-secondary-color);
}

body {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
}

a, .icon-link {
  color: var(--bs-link-color, #0d6efd);
}
a:hover, .icon-link:hover {
  color: var(--bs-link-hover-color, #6610f2);
}
.btn-home {
  font-size: 1.25rem;
  padding: 0.75rem 2rem;
}
@media (max-width: 576px) {
  .error-404 { font-size: 5rem; }
  .error-text { font-size: 1.25rem; }
}

/* Directory listing (/dl) */
.dir-listing {
  border-color: var(--bs-border-color);
}
.dir-listing th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  border-bottom-width: 2px;
}
.dir-listing td {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.dir-listing .col-icon {
  width: 32px;
  padding-right: 0;
}
.dir-listing .dir-icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  opacity: 0.55;
}
.dir-listing .file-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  opacity: 0.45;
}
.dir-listing a {
  text-decoration: none;
  font-weight: 500;
}
.dir-listing a:hover {
  text-decoration: underline;
}
.dir-listing .text-body-secondary {
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

/* Toast-уведомление (NVIDIA-style, слева сверху) */
.toast-notify {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: var(--bs-primary, #9b59b6);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  transform: translateX(calc(-100% - 40px));
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s ease, visibility 0s 0.35s;
  pointer-events: none;
}
.toast-notify.show {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s ease, visibility 0s 0s;
}
.toast-notify .toast-icon {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  flex-shrink: 0;
}
