/* === Gemeinsames Modal Styling === */
#modal-2fa-recovery {
  display: none; /* Bootstrap kontrolliert das */
}

#modal-2fa-recovery .modal-content {
  background-color: rgba(17, 17, 17, 0.5) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  padding: 0 10px;
}

/* zentriert auf Desktop */
#modal-2fa-recovery .modal-dialog {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  max-width: 500px;
  width: 100%;
  z-index: 1055;
}

#modal-2fa-recovery .modal-body,
#modal-2fa-recovery .modal-header,
#modal-2fa-recovery .modal-footer {
  background: transparent !important;
}

/* HEADER & LINIE */
#modal-2fa-recovery .custom-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 14px 20px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
#modal-2fa-recovery .header-divider {
  height: 1px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.12);
}

/* Titel zentriert */
#modal-2fa-recovery .custom-header .modal-title {
  font-weight: 600;
  font-size: 17px;
  margin: 0 auto;
  text-align: center;
  flex: 1;
  color: #fff;
}

/* Close Button */
#modal-2fa-recovery .custom-header .text-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #1d9bf0;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

/* Info-Abschnitte */
#modal-2fa-recovery .section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
  margin-top: 20px;
}

#modal-2fa-recovery .info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

#modal-2fa-recovery .info-item .icon {
  font-size: 16px;
  color: #ccc;
  margin-top: 2px;
  width: 20px;
  text-align: center;
}

#modal-2fa-recovery .info-item .info-text {
  display: flex;
  flex-direction: column;
}

#modal-2fa-recovery .info-title {
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
  font-weight: 500;
}

#modal-2fa-recovery .info-value {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

/* Hinweistext */
#modal-2fa-recovery p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
}

/* Mobiler Bestätigungs-Button */
#modal-2fa-recovery .mobile-close-btn-wrapper {
  margin-top: 25px;
  display: flex;
  justify-content: center;
}

#modal-2fa-recovery .btn-close-modal {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #1d9bf0;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  text-align: center;
  transition: background-color 0.2s ease;
}

#modal-2fa-recovery .btn-close-modal:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* === Light Theme Support === */
body[data-bg="default"] #modal-2fa-recovery .modal-content {
  background-color: rgba(255, 255, 255, 0.45) !important;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

body[data-bg="default"] #modal-2fa-recovery .custom-header {
  background-color: rgba(0, 0, 0, 0.04);
}

body[data-bg="default"] #modal-2fa-recovery .header-divider {
  background-color: rgba(0, 0, 0, 0.08);
}

body[data-bg="default"] #modal-2fa-recovery .custom-header .modal-title,
body[data-bg="default"] #modal-2fa-recovery .info-title {
  color: #111;
}

body[data-bg="default"] #modal-2fa-recovery .info-value {
  color: #444;
}

body[data-bg="default"] #modal-2fa-recovery .section-title {
  color: #666;
}

body[data-bg="default"] #modal-2fa-recovery .btn-close-modal {
  background-color: rgba(0, 0, 0, 0.04);
  color: #005fa3;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-bg="default"] #modal-2fa-recovery .btn-close-modal:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

body[data-bg="default"] #modal-2fa-recovery p {
  color: #333;
}

@media (max-width: 500px) {
  #modal-2fa-recovery .modal-dialog {
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: 100%;
    top: 0;
    transform: none;
    align-items: flex-start;
  }

  #modal-2fa-recovery .modal-content {
    border-radius: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #modal-2fa-recovery .modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
  }

  #modal-2fa-recovery .mobile-close-btn-wrapper {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 20px;
    z-index: 9999;
    background: transparent;
  }

  #modal-2fa-recovery .btn-close-modal {
    border-radius: 12px;
  }
}

