/* THEME VARIABLES */
:root {
  --bg: linear-gradient(180deg, #071022 0%, #0f1724 60%);
  --card: #fff;
  --glass: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.08);

  --accent1: #fff;
  --accent2: #AEE1F9;
  --primary: #007bff;

  --text: #eff6ff;
  --muted: rgba(255,255,255,.6);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;

  --gap: 16px;
  --shadow: 0 8px 30px rgba(2,6,23,.6);
}

/* ====== GLOBAL ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, Sora, "Space Grotesk", Manrope, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(6,182,212,.25);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1 {
  margin: 0;
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: -.5px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

label {
  display: block;
  margin: 6px 0;
  font-size: .9rem;
  color: var(--muted);
}

select,
input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  font-size: .95rem;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: transform .08s ease, box-shadow .18s ease;
}

select:focus,
input[type="file"]:focus {
  transform: translateY(-1px);
  border-color: rgba(124,58,237,.7);
  box-shadow: 0 6px 20px rgba(124,58,237,.12);
}

/* custom select arrow */
select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 1.05em,
    calc(100% - 9px) 1.05em;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.button,
#sendBtn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  transition: transform .12s ease, box-shadow .12s ease;
}

#sendBtn {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #002e70;
  box-shadow:
    0 8px 24px rgba(7,8,33,.5),
    0 2px 6px rgba(124,58,237,.12) inset;
}

#sendBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(7,8,33,.6);
}

#sendBtn:active {
  transform: translateY(-1px) scale(.995);
}

.buttonBlue {
  background: var(--primary);
  color: #fff;
}

.buttonBlue:hover {
  background: #005fcc;
}

/* ====== HEADER ====== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.headerLogo {
  width: 50px;
}

.headerLogControl a {
  font-size: 16px;
  color: var(--accent2);
  font-weight: bold;
  transition: 0.3s;
}

.headerLogControl a:hover {
  color: var(--text);
}
.menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #e2e6ea;
}

.menuElementText {
  font-size: 14px;
  font-weight: 600;
  color: #4a4a4a;
}

.menuElement a:hover .menuElementText {
  color: var(--primary);
}

.footer {
  margin-top: 60px;
  padding: 20px 0;
  text-align: center;
  background: #0a1a2f;
  color: #aee1f9;
}

.footerElements {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.footerElement {
  cursor: pointer;
  font-size: 14px;
}

.footerElement:hover {
  color: white;
}
/* =========================================================
   LOADER
========================================================= */
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -55%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  backdrop-filter: blur(6px) saturate(120%);
  background: rgba(2,6,23,.55);
}

#loaderText {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 20px 28px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  animation: float 2.4s ease-in-out infinite;
}

#loaderText::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: #fff;
  animation: spin .86s linear infinite;
}