@charset "UTF-8";
/* main.scss — combined + improved (copy/paste) */
/* =========================
   Theme tokens
========================= */
:root {
  /* Light */
  --bg: #eaeaea;
  --panel: rgba(255, 255, 255, 0.75);
  --panel-2: rgba(255, 255, 255, 0.55);
  --text: #0b1220;
  --muted: rgba(11, 18, 32, 0.7);
  --muted-2: rgba(11, 18, 32, 0.55);
  --border: rgba(11, 18, 32, 0.14);
  --primary: #7c5cff;
  --primary-2: #4cc9f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.10);
  --transition-ms: 520ms;
  --transition-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark overrides */
:root.dark {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.04);
  --text: rgba(255, 254, 254, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted-2: rgba(255, 255, 255, 0.55);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* Smooth mode transitions for common properties */
html,
body,
.container,
input,
textarea,
select,
button,
table,
th,
td {
  transition: background-color var(--transition-ms) var(--transition-ease), color var(--transition-ms) var(--transition-ease), border-color var(--transition-ms) var(--transition-ease), box-shadow var(--transition-ms) var(--transition-ease);
}

@media (prefers-reduced-motion: reduce) {
  html,
  body,
  .container,
  input,
  textarea,
  select,
  button,
  table,
  th,
  td {
    transition: none;
  }
  html.theme-transition::before {
    animation: none;
  }
}
/* =========================
   Base
========================= */
* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 3vw, 42px) clamp(14px, 2.6vw, 28px);
}

/* =========================
   Headings / sections
========================= */
section {
  width: min(980px, 100%);
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

h2 {
  margin: 0 0 12px;
  font-weight: 650;
  letter-spacing: 0.2px;
  text-align: center;
}

/* Theme toggle button */
#themeToggle {
  width: min(980px, 100%);
  align-self: center;
  margin-bottom: 10px;
}

/* =========================
   Containers
========================= */
.container {
  width: min(980px, 100%);
  padding: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(24px, 4vw, 56px);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  /* for wide tables */
  overflow-x: auto;
}

/* optional wrapper if you use it */
.sign-form {
  width: min(520px, 100%);
}

/* =========================
   Rows / flex helpers
========================= */
.row {
  width: 100%;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.flex {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}

label {
  color: var(--muted);
  font-weight: 600;
}

/* =========================
   Inputs
========================= */
input,
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(124, 92, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

::-moz-placeholder {
  color: rgba(255, 255, 255, 0.5);
}

::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* =========================
   Buttons
========================= */
button,
.sign-button,
#action-button {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  box-shadow: var(--shadow-soft);
}

button:hover,
.sign-button:hover,
#action-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-5px);
}

button:active,
.sign-button:active,
#action-button:active {
  transform: translateY(0);
}

button:focus-visible,
.sign-button:focus-visible,
#action-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.22), var(--shadow-soft);
}

/* Optional primary button */
button.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Make your sign buttons wrap nicely (targets the “buttons row” div in #sign-form) */
#sign-form > div:last-of-type {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sign-button {
  flex: 1 1 160px;
}

/* File list */
#file-list {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

#file-list li {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

/* =========================
   Services “chips”
========================= */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}

.services input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.services input[type=checkbox] + div {
  margin-right: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.services input[type=checkbox]:checked + div {
  color: var(--text);
  border-color: rgba(124, 92, 255, 0.45);
  background: rgba(124, 92, 255, 0.16);
}

/* =========================
   Tables
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

th,
td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  font-size: 0.9rem;
  letter-spacing: 0.35px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* Helper text */
.reminder {
  width: 100%;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted-2);
}

/* Mobile tweaks */
@media (max-width: 640px) {
  #themeToggle {
    width: 100%;
  }
  .sign-button {
    flex: 1 1 100%;
  }
}
select {
  color-scheme: light dark; /* lets browser choose correct native UI */
}

/* Dropdown options */
select option {
  background-color: #ffffff;
  color: #000000;
}

/* Optional: optgroup labels */
select optgroup {
  background-color: #ffffff;
  color: #000000;
}

:root.dark .remove-section {
  color: #000000;
}