/* === Aurora Signer - Forest Theme === */

body, .nav-container, .user-info, .premium-badge, .dev-badge, .nav-icon, .discord-icon, .theme-toggle, .container, .hero-text, .hero-text h2, .hero-text p, .hero-subtext, .file-input label, .password-input label, .file-button, .password-input input, .popup-content, .popup-content input, .popup-content label, .popup-content button, .main-content {
  font-family: 'Inter', 'Poppins', Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Poppins', Arial, sans-serif;
  background: url('dependencies/forest.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: #223f00; /* fallback color */
  color: #62b910;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Star field effect */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  /* background: url('https://svgshare.com/i/12kA.svg') repeat; */
  background: none;
  opacity: 0;
}

nav {
  width: 100vw;
  background: rgba(56, 102, 65, 0.85); /* deep green */
  box-shadow: 0 2px 16px 0 #386641cc;
  padding: 0.5rem 0;
  position: fixed;
  top: 0; left: 0;
  z-index: 10;
}

.nav-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding: 0 2rem;
}

.nav-container > .user-info {
  order: 1;
}
.nav-container > .nav-icon#signInButton {
  order: 2;
  margin-left: 0;
}

.nav-icon {
  color: #6a994e;
  font-size: 1.3rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-icon:hover {
  color: #b983ff;
}
.discord-icon {
  color: #a7c957;
}
.theme-toggle {
  margin-right: auto;
  font-size: 1.5rem;
  color: #b983ff;
  cursor: pointer;
}

h1 {
  display: none;
}

.container {
  margin: 0 auto;
  /* margin-top: 90px; */
  max-width: 1100px;
  min-height: 600px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.089);
  border-radius: 32px;
  box-shadow: 0 8px 40px 0 #000000cc;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

form#ASrequest {
  flex: 1 1 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem 2rem 2.5rem;
  z-index: 1;
}

.file-input, .password-input {
  margin-bottom: 1.7rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.file-input label, .password-input label {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #386641;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.file-input label i, .password-input label i {
  position: static;
  color: #6a994e;
  font-size: 1.1rem;
  margin-right: 0.2rem;
}
.file-input input[type="file"] {
  display: none;
}
.file-button {
  background: linear-gradient(90deg, #6a994e 0%, #a7c957 100%);
  color: #f2f2f2;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.2rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 #6a994e33;
}
.file-button:hover {
  background: linear-gradient(90deg, #386641 0%, #a7c957 100%);
}

.password-input input[type="password"],
.password-input input[type="text"],
.popup-content #authForm input[type="text"],
.popup-content #authForm input[type="password"] {
  color: #f2f2f2 !important;
}

.password-input input[type="password"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px 0 #6a994e33;
  outline: none;
  margin-top: 0.2rem;
  height: 48px;
  box-sizing: border-box;
}
.password-input i#togglePassword {
  position: absolute;
  right: 18px;
  top: 48px;
  color: #b983ff;
  cursor: pointer;
  font-size: 1.2rem;
}

.password-input input[type="text"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: none;
  background: rgba(80, 40, 120, 0.18);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px 0 #6a994e33;
  outline: none;
  margin-top: 0.2rem;
  height: 48px;
  box-sizing: border-box;
}
.password-input input[type="text"]:focus {
  box-shadow: 0 0 0 2px #6a994e66;
  background: rgba(80, 40, 120, 0.28);
}

form#ASrequest > button[type^="submit"] {
  width: 100%;
  background: linear-gradient(90deg, #6a994e 0%, #a7c957 100%);
  color: #f2f2f2;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.2rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 #6a994e33;
  display: block;
}
form#ASrequest > button[type^="submit"]:hover {
  background: linear-gradient(90deg, #386641 0%, #a7c957 100%);
}

.file-size-limit {
  font-size: 0.95rem;
  color: #6a994e;
  margin-left: 0.5rem;
}

.link-duration-info {
  color: #6a994e;
  font-size: 1rem;
  margin-top: 0.5rem;
}

#progressBarContainer {
  margin-top: 1.2rem;
  background: rgba(80, 40, 120, 0.18);
  border-radius: 10px;
  overflow: hidden;
  height: 28px;
  position: relative;
  width: 100%;
  box-shadow: 0 2px 8px 0 #6a994e33;
}
#progressBar {
  height: 100%;
  background: linear-gradient(90deg, #6a994e 0%, #a7c957 100%);
  width: 0%;
  transition: width 0.3s;
}
#progressText {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 28px;
}

#result {
  background: rgba(167, 201, 87, 0.12); /* soft fern green */
  border: 1.5px solid #6b5e34;
  border-radius: 14px;
  padding: 1.1rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #223f00;
  font-size: 1.15rem;
  font-weight: 600;
  box-shadow: 0 4px 24px 0 #6a994e33;
  text-align: center;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

#result:empty::before {
  content: "file will be here after signing";
  color: #f2f2f2;
  opacity: 0.7;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.loader {
  border: 6px solid #6a994e33;
  border-top: 6px solid #6a994e;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  margin: 2rem auto 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hero section (right side) */
.container::after {
  content: none !important;
  display: none !important;
}

.hero-text {
  flex: 1 1 50%;
  max-width: 50%;
  padding: 0 3rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 400px;
  z-index: 2;
}
.hero-text h2 {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #6a994e 0%, #4d4429 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1.2rem 0;
  line-height: 1.2;
}
.hero-text p {
  font-size: 1.3rem;
  color: #223f00;
  margin: 0;
  font-weight: 500;
}
.hero-text strong {
  font-weight: 800;
  color: #fff;
}

.hero-text .hero-subtext {
  font-size: 0.75rem !important;
}
.hero-subtext a {
  color: #8a7943;
  text-decoration: underline;
  transition: color 0.2s;
}
.hero-subtext a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    align-items: stretch;
    width: 96vw;
    min-width: unset;
    max-width: 500px;
    border-radius: 32px;
    border: none;
    box-shadow: 0 8px 40px 0 #000000cc;
    padding: 1.5rem 0.5rem 1.5rem 0.5rem;
    margin: 2vw auto 2vw auto;
    background: rgba(0, 0, 0, 0.089);
    backdrop-filter: blur(10px);
  }
  form#ASrequest, .hero-text {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .hero-text {
    align-items: center;
    text-align: center;
    min-height: unset;
    padding: 2rem 0 1.5rem 0;
    margin-bottom: 0;
  }
  .hero-text h2 {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
  }
  .hero-text p {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
  }
}

footer {
  width: 100vw;
  text-align: center;
  color: #6a994e;
  font-size: 1.1rem;
  padding: 1.2rem 0 0.7rem 0;
  background: transparent;
  position: relative;
  z-index: 2;
}

/* Popup Auth */
.popup {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.651);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s;
}
.popup-content {
  background: rgba(0, 0, 0, 0.274);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  box-shadow: 0 8px 40px 0 #386641cc;
  min-width: 320px;
  max-width: 95vw;
  color: #f2f2f2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: popupIn 0.3s cubic-bezier(.4,2,.6,1) 1;
}
@keyframes popupIn {
  0% { transform: scale(0.95) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.popup-content .close {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 2rem;
  color: #ff0000;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.popup-content .close:hover {
  color: #fff;
  transform: scale(1.2);
}
.popup-content #authForm input[type="text"], .popup-content #authForm input[type="password"] {
  width: 100%;
  max-width: 480px;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 8px 0 #6a994e33;
  outline: none;
  transition: box-shadow 0.2s, background 0.2s;
  margin-left: 0;
  margin-right: 0;
}
.popup-content #authForm input[type="text"]:focus, .popup-content #authForm input[type="password"]:focus {
  box-shadow: 0 0 0 2px #6a994e66;
  background: rgba(80, 40, 120, 0.28);
}
#authSubmit {
  width: 100%;
  background: linear-gradient(90deg, #6a994e 0%, #a7c957 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.2rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px 0 #6a994e33;
  display: block;
}
#authSubmit:hover {
  background: linear-gradient(90deg, #386641 0%, #a7c957 100%);
}
#privacyPolicyAgreement {
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
  color: #6a994e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#privacyPolicyAgreement label, #privacyPolicyAgreement a {
  color: #6a994e;
}
#authToggle {
  color: #e0caff;
  font-size: 1rem;
  margin-top: 1rem;
  text-align: center;
}
#authToggle a {
  color: #6a994e;
  text-decoration: underline;
  cursor: pointer;
}

/* Utility */
.hidden { display: none !important; }

/* Custom hero text for the right side */
@media (min-width: 900px) {
  .container {
    min-height: 600px;
  }
  .container .hero-text {
    display: block;
  }
}
@media (max-width: 900px) {
  .container .hero-text {
    display: block;
    margin-bottom: 2rem;
  }
}

/* Add hero text via pseudo-element for now (since not in HTML) */
.container::after {
  content: "Simple, private\AIPA signing\AAurora Signer is \0020\0020 MONEY POX";
  white-space: pre;
  display: block;
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44%;
  text-align: left;
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #6a994e 0%, #a7c957 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  pointer-events: none;
}
@media (max-width: 900px) {
  .container::after {
    position: static;
    width: 100%;
    transform: none;
    text-align: center;
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem 0;
  }
}

.hidden {
    display: none;
}

.user-info {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 25%;
  margin: 0 auto;
  color: #e0caff;
  font-size: 1.1rem;
  gap: 0.5rem;
}
.user-info.hidden {
  display: flex !important;
}

nav .user-info.hidden {
  display: flex !important;
}

.premium-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ffd700 0%, #6a994e 100%);
  color: #223f00;
  font-size: 0.92em;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.15em 0.6em;
  margin-left: 0.5em;
  letter-spacing: 0.03em;
  vertical-align: middle;
  box-shadow: 0 1px 4px 0 #6a994e33;
}

.dev-badge {
  display: inline-block;
  background: linear-gradient(90deg, #00eaff 0%, #a7c957 100%);
  color: #223f00;
  font-size: 0.92em;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.15em 0.6em;
  margin-left: 0.5em;
  letter-spacing: 0.03em;
  vertical-align: middle;
  box-shadow: 0 1px 4px 0 #a7c95733;
}

.nav-icon#signInButton {
  margin-left: auto;
}

#starfield {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hamburger-menu {
    background: none;
    border: none;
    color: #e0caff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem 0.4rem 0.2rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.dropdown-menu {
  position: absolute;
  top: 60px;
  left: 0;
  width: 260px;
  max-width: 90vw;
  background: rgba(40,40,40,0.97);
  color: #fff;
  border-radius: 12px 12px 16px 16px;
  box-shadow: 0 8px 32px 0 #000a;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.5rem;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  text-align: left;
}
.dropdown-menu.show {
  opacity: 1;
  pointer-events: auto;
}
.dropdown-menu a {
  color: #fff;
  text-decoration: none;
  padding: 0.7em 1.2em;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
  margin: 0.1em 0.5em;
  width: auto;
  display: block;
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: #a7c957;
  color: #223f00;
  font-weight: 600;
}

.nav-icon, .user-info, .fas, .fab, .fa-user, .fa-sign-in-alt, .fa-cogs, .fa-lock, .fa-eye, .fa-eye-slash {
  color: #f2f2f2 !important;
}
.discord-icon {
  color: #f2f2f2 !important;
}
.file-input label, .password-input label {
  color: #f2f2f2;
}
.hero-text, .hero-text h2, .hero-text p, .hero-subtext {
  color: #f2f2f2;
}
footer {
  color: #f2f2f2;
}

input, textarea, select {
  color: #f2f2f2;
}

input::placeholder, textarea::placeholder {
  color: #f2f2f2;
  opacity: 0.7;
}

.install-link, .copy-link-btn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.install-link::before {
  content: "\\f019"; /* Font Awesome download icon unicode */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 1.1em;
  margin-right: 0.5em;
  display: inline-block;
}
.install-link:hover {
  background: #222;
  color: #a7c957 !important;
}

.copy-link-btn i {
  font-size: 1.1em;
  margin-right: 0.5em;
}
.copy-link-btn:hover {
  background: #222;
  color: #a7c957;
}

.admin-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(40, 40, 40, 0.98);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 #000a;
  padding: 2.5rem 2rem 2rem 2rem;
  z-index: 2000;
  min-width: 320px;
  max-width: 95vw;
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.admin-panel h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: #a7c957;
}
#adminSearchForm {
  width: 100%;
  margin-bottom: 1rem;
}
#adminUserSearch {
  width: 100%;
  padding: 0.7em 1em;
  border-radius: 8px;
  border: 2px solid #a7c957;
  background: #222;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.18s;
}
#adminUserSearch:focus {
  border-color: #6a994e;
  background: #232b1a;
}
#adminUserList {
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  background: #181818;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 8px 0 #0004;
}

.dev-button {
  background: linear-gradient(90deg, #a7c957 0%, #6a994e 100%);
  color: #223f00;
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.6em 1.4em;
  margin-left: 0.7em;
  box-shadow: 0 2px 8px 0 #a7c95733;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.dev-button:hover {
  background: linear-gradient(90deg, #6a994e 0%, #a7c957 100%);
  color: #fff;
  box-shadow: 0 4px 16px 0 #a7c95755;
}