/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  padding: 20px;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== DARK MODE ===== */
body.dark {
  background: linear-gradient(135deg, #0f172a, #111827);
}

body.dark .container {
  background: rgba(20, 20, 30, 0.92);
  color: white;
}

body.dark input,
body.dark select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
}

body.dark .box h3 {
  color: #93c5fd;
}

body.dark .brand-title {
  color: white;
  border-color: white;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 780px;
  margin: auto;
  background: #ffffff;
  padding: 26px;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  position: relative;
  z-index: 2;
}

/* ===== HEADER ===== */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* ===== BRAND ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 92px;
  width: auto;
}

.brand-title {
  font-size: 48px;
  font-weight: 900;
  color: #1e40af;
  border: 3px solid #1e40af;
  padding: 4px 14px;
  border-radius: 10px;
  letter-spacing: 2px;
}

/* ===== DARK TOGGLE ===== */
.right-tools {
  display: flex;
  align-items: center;
}

.dark-toggle {
  font-size: 14px;
  font-weight: 700;
  background: rgba(255,255,255,0.7);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}

body.dark .dark-toggle {
  background: rgba(0,0,0,0.4);
  color: white;
}

/* ===== TITLE BOX ===== */
.main-title-box {
  text-align: center;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: white;
  padding: 18px 16px;
  border-radius: 16px;
  margin-bottom: 22px;
}

.main-title-box h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 2px;
  font-weight: 900;
}

.main-title-box h2 {
  margin-top: 8px;
  font-size: 18px;
  letter-spacing: 2px;
  font-weight: 700;
}

/* ===== FORM BOX ===== */
.box {
  margin-bottom: 22px;
}

.box h3 {
  margin-bottom: 10px;
  color: #1e40af;
  font-size: 18px;
  font-weight: 800;
}

/* ===== INPUT & SELECT ===== */
input,
select {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

/* ===== BUTTON ===== */
button {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 1px;
}

button:hover {
  opacity: 0.92;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  font-size: 13px;
  margin-top: 18px;
  opacity: 0.7;
}

/* ===== WATERMARK ===== */
.watermark {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  opacity: 0.07;
  pointer-events: none;
  transform: rotate(-20deg);
  z-index: 1;
  animation: wmMove 12s ease-in-out infinite;
}

@keyframes wmMove {
  0%   { transform: translateX(-30px) translateY(-20px) rotate(-20deg); }
  50%  { transform: translateX(30px) translateY(20px) rotate(-20deg); }
  100% { transform: translateX(-30px) translateY(-20px) rotate(-20deg); }
}
