/* ========================================================================
   Variables
   ======================================================================== */
:root {
  --clr-bg-gradient-start: #000000;
  --clr-bg-gradient-end:   #0a0a0a;
  --clr-bg-medium:         #1c1c1c;
  --clr-bg-overlay:        rgba(8,34,67,0.5);
  --clr-bg-modal-start:    #191919;
  --clr-bg-modal-end:      #333333;
  --clr-text:              #ffffff;
  --clr-text-muted:        #bbbbbb;
  --clr-primary:           #0054FF;
  --clr-primary-dark:      #0447D3;
  --clr-border:            #555555;
  --clr-border-hover:      #777777;
}

/* ========================================================================
   1) RESET & SCROLLBARS
   ======================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-border) var(--clr-bg-medium);
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg-medium);
}
::-webkit-scrollbar-thumb {
  background-color: var(--clr-border);
  border-radius: 6px;
  border: 3px solid var(--clr-bg-medium);
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--clr-border-hover);
}

/* ========================================================================
   2) BASE LAYOUT & TYPOGRAPHY
   ======================================================================== */
html {
  font-size: 16px;
}

body {
  font-family:
    -apple-system,      /* macOS & iOS SF Pro */
    BlinkMacSystemFont, /* Chrome on macOS */
    "Segoe UI",         /* Windows */
    Roboto,             /* Android/Chrome OS */
    "Helvetica Neue",   /* fallback on many devices */
    Arial, sans-serif;  /* last resort */
  color: var(--clr-text);
  background: linear-gradient(
    120deg,
    var(--clr-bg-gradient-start),
    var(--clr-bg-gradient-end)
  );
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, color 0.3s;
}

/* Dark / Light modes */
.dark-mode {
  background: var(--clr-bg-gradient-start);
  color: var(--clr-text);
}
.light-mode {
  background: #ffffff;
  color: #000000;
}
.light-mode .container {
  background-color: #333333;
  color: var(--clr-text);
}

/* ========================================================================
   3) CONTAINER (MAIN CONTENT)
   ======================================================================== */
.container {
  width: 100%;
  max-width: 460px;
  margin: 80px auto 0;
  padding: 15px;
  background-color: var(--clr-bg-medium);
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.container.fade-in {
  animation: fadeIn 0.8s ease-in-out;
}

/* ========================================================================
   4) NAVIGATION BAR & LOGO
   ======================================================================== */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: background 0.3s;
  z-index: 1000;
}

.nav-menu .nav-logo {
  width: 30px;
  height: auto;
}

.nav-menu nav {
  display: flex;
  align-items: center;
}

.nav-menu a, .menu-icon {
    color: #FFFFFF;
    text-decoration: none;
    margin: 0 10px;
    font-size: 10px;
    transition: color 0.3s; /* Add transition for smooth color change */
}
.nav-menu a:hover, .menu-icon:hover {
    color: #E6E6E6;
}
.menu-icon {
    cursor: pointer;
    font-size: 20px;
    color: #404040;
}

/* Ensure plain-link always inherits the computed text color */
.plain-link {
  color: inherit;           /* Take parent’s color in any mode */ 
  text-decoration: none;
}

.plain-link:hover,
.plain-link:focus {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Explicitly reinforce inheritance in light mode */
.light-mode .plain-link {
  color: inherit;           /* In light mode, links stay white within .container */
}

/* ------------------------------------------------------------------------
   Light mode overrides
   ------------------------------------------------------------------------ */
.light-mode .nav-menu {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.light-mode .nav-menu nav a,
.light-mode .nav-menu .menu-icon {
  color: #000;
}

/* ========================================================================
   5) FLYOUT MENU
   ======================================================================== */
.flyout-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100%;
  background: var(--clr-bg-medium);
  padding: 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  border-left: 1px solid #000;
}

.flyout-menu a {
  display: block;
  color: var(--clr-text);
  padding: 10px 0;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.flyout-menu a:hover {
  color: var(--clr-text-muted);
}

.menu-close {
    cursor: pointer;
    font-size: 14px;
    color: #424242;
}
/* ========================================================================
   6) MODE SWITCH (Dark / Light Toggle)
   ======================================================================== */
.mode-switch {
  display: flex;
  align-items: center;
}

.mode-switch input {
  display: none;
}

.mode-switch label {
  width: 35px;
  height: 15px;
  background: #ccc;
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  margin-left: 10px;
}

.mode-switch label::after {
  content: '';
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s;
}

.mode-switch input:checked + label::after {
  transform: translateX(20px);
}

/* ========================================================================
   7) TITLE & SUBTITLE
   ======================================================================== */
.logo {
    display: block;
    margin: 0 auto;
    max-width: 70px;
    height: auto;
}

.title-section {
    text-align: center;
    margin-bottom: 30px;
}
.title-section .logo {
    max-width: 80px;
    margin-bottom: 10px;
}
.title-section .main-title {
    font-size: 1.75rem;
    margin: 0;
    line-height: 1;
}
.title-section .main-title .bold {
    font-weight: 700;
}
.title-section .main-title .thin {
    font-weight: 300;
}
.title-section .sub-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 8px 0 16px;
    color: #fff;
}
.title {
    text-align: center;
    font-size: 24px;
    padding-bottom: 15px;
    margin: 5px;
}
.title .bold {
    font-weight: bold;
}
.title .thin {
    font-weight: 300; /* Thin weight */
}
.header_title {
    text-align: center;
    font-size: 48px;
    padding-top: 35px;
    padding-bottom: 15px;
    margin: 5px;
}

.sub-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 1rem;
  text-align: center;
  color: var(--clr-text);
  letter-spacing: 0.03em;
}

/* Utility for centering text */
.centered {
  text-align: center;
}

.title-section .main-title .bold {
  font-weight: 700 !important;
}
.title-section .main-title .thin {
  font-weight: 300 !important;
}
/* ========================================================================
   8) CREATOR CREDIT
   ======================================================================== */
.creator {
  text-align: center;
  font-size: 0.5rem;
  margin: 0.5rem 0;
}

.creator-link {
  color: var(--clr-text);
  text-decoration: none;
  transition: color 0.3s;
}

.creator-link:hover {
  color: var(--clr-text-muted);
}

/* ========================================================================
   9) FORM INPUT & BUTTONS
   ======================================================================== */
.required-asterisk {
    color: red;
}

.form-input {
  width: 100%;
  padding: 10px;
  margin: 0.75rem 0;
  font-size: 16px;
  border: 1px solid var(--clr-border);
  border-radius: 5px;
  background: #444444;
  color: var(--clr-text);
  transition: background-color 0.3s, border-color 0.3s;
}

.form-input::placeholder {
  color: var(--clr-text-muted);
}

.form-input:focus {
  background-color: #3a3a3a;
  border-color: var(--clr-primary);
  outline: none;
}

button {
  width: 100%;
  padding: 10px;
  margin: 0.75rem 0;
  border: none;
  border-radius: 5px;
  background: linear-gradient(to bottom, var(--clr-primary), var(--clr-primary-dark));
  color: var(--clr-text);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  background: linear-gradient(to bottom, var(--clr-primary-dark), var(--clr-primary));
  transform: scale(1.02);
}

/* ========================================================================
   10) BULK LOOKUP BUTTONS
   ======================================================================== */
.bulk-button-container {
  display: flex;
  flex-direction: column;    /* stack items vertically */
  align-items: center;       /* center them horizontally */
  gap: 0.5rem;               /* space between buttons */
  margin: 1rem 0;            /* optional top/bottom spacing */
  /* remove fixed height if you don’t want extra blank space */
  height: auto;
}

.bulk-button {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--clr-text);
  border: 1px solid var(--clr-text);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bulk-button:hover {
  background: var(--clr-text);
  color: #000000;
  transform: scale(1.05);
}

.light-mode .bulk-button {
  color: #000000;
  border-color: #000000;
}

.light-mode .bulk-button:hover {
  background: #000000;
  color: #ffffff;
}

/* ========================================================================
   11) FOOTER
   ======================================================================== */
.footer {
  text-align: center;
  font-size: 0.5rem;
  margin: 1rem 0 2rem;
}

.footer-link {
  color: var(--clr-text);
  text-decoration: none;
  margin: 0 0.25rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--clr-text-muted);
}

.light-mode .footer-link {
  color: #000000;
}

/* ========================================================================
   12) MODAL (PROCESSING / ERROR)
   ======================================================================== */
#processingModal {
  display: none;               /* keep it hidden on page load */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--clr-bg-overlay);
  z-index: 9999;
}

#processingModal.show {
  display: flex;               /* only show when you add .show */
  justify-content: center;
  align-items: center;
}

#processingModalContent {
  background: linear-gradient(
    to bottom,
    var(--clr-bg-modal-start),
    var(--clr-bg-modal-end)
  );
  padding: 20px;
  width: 45%;
  max-width: 400px;
  border: 1px solid #97B8D5;
  border-radius: 15px;
  text-align: center;
  color: var(--clr-text);
}

/* ========================================================================
   13) AUTOCOMPLETE SUGGESTIONS
   ======================================================================== */
.search-results {
  position: absolute;
  width: calc(100% - 12px);
  background: #2c2c2c;
  border: 1px solid var(--clr-border);
  border-radius: 5px;
  max-height: 200px;
  margin-top: -5px;
  overflow-y: auto;
  z-index: 10000;
  display: none;
}

.search-results li {
  padding: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-results li:hover {
  background: #3a3a3a;
}

/* ========================================================================
   14) RESPONSIVE ADJUSTMENTS
   ======================================================================== */
@media (max-width: 768px) {
  .container {
    margin-top: 60px;
  }
  .nav-menu {
    padding: 8px 15px;
  }
}

/* ========================================================================
   15) HIDE reCAPTCHA BADGE
   ======================================================================== */
.grecaptcha-badge,
.hide-recaptcha {
  visibility: hidden !important;
  display: none !important;
}

/* ========================================================================
   16) ANIMATIONS
   ======================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
