html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  padding-bottom: 30px;
  background: linear-gradient(135deg, #1f1f1f, #343a40);
  color: #f8f9fa;
}

body.auto-hide-navbar header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}

body.auto-hide-navbar.auto-hide-navbar-visible header {
  transform: translateY(0);
}

body.auto-hide-navbar .auto-hide-navbar-trigger {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  z-index: 1039;
}

.navbar-brand, .nav-link {
  font-weight: 600;
}

.navbar .nav-link.active {
  color: #ffffff !important;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.guid-text {
  font-family: "Courier New", monospace;
}

.guid-text.copied {
  color: #adb5bd;
}

.copy-btn svg {
  pointer-events: none;
}

.settings-card {
  border: 1px solid #666;
}

.list-scroll {
  max-height: calc(2.5rem * 10);
  overflow-y: auto;
}

.guid-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.guid-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guid-settings,
.guid-results {
  width: 100%;
}

@media (min-width: 992px) {
  .guid-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .guid-settings {
    max-width: 420px;
    flex-shrink: 0;
  }

  .guid-results {
    flex: 1;
  }
}

#formatRadios label {
  font-family: "Courier New", monospace;
  display: block;
  margin-top: 0.25rem;
}

#generateBtn {
  width: 100%;
}

.copy-btn {
  padding: 0;
  border: none;
}

.version-badge {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.version-v4 {
  background: linear-gradient(135deg, #ff6b6b, #c92a2a);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.7);
}

.version-v7 {
  background: linear-gradient(135deg, #ff9ad5, #e64980);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 154, 213, 0.7);
}

.version-badge.copied {
  filter: brightness(0.8);
  box-shadow: none;
}

#latestList .list-group-item,
#historyList .list-group-item {
  padding: 0.2rem 0.5rem;
}

.login-form {
  padding-top: 2rem;
}

.otp-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.otp-input {
  width: 2.5rem;
  padding: 0.5rem;
  font-size: 1.25rem;
  text-align: center;
}

#notification-container {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 1050;
}

.notify-card {
  background-color: #dc3545;
  color: #fff;
  padding: 1rem;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  transform: translateX(120%);
  transition: transform 0.3s ease-in-out;
  position: relative;
  max-width: 20rem;
}

.notify-card.show {
  transform: translateX(0);
}

.notify-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background-color: rgba(255,255,255,0.5);
}

.notify-progress-bar {
  height: 100%;
  background-color: #fff;
  width: 100%;
  transition: width 10s linear;
}

@media (max-width: 575.98px) {
  #notification-container {
    position: static;
    margin-bottom: 1rem;
  }
  .notify-card {
    transform: none;
    max-width: none;
  }
  .notify-progress {
    display: none;
  }
}

.footer {
  height: 30px;
  line-height: 30px;
  padding-top: 0;
  padding-bottom: 0;
}
