/* ── WWT Brand Tokens ── */
:root {
  --wwt-light-blue:  #0086EA;
  --wwt-dark-blue:   #1C0087;
  --wwt-royal-blue:  #162FB4;
  --wwt-navy:        #1D1E48;
  --wwt-red:         #EE282A;
  --wwt-ink:         #0A0B19;
  --wwt-white:       #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #1C3BB5 0%, #0D0D6B 100%);
  background-attachment: fixed;
}

/* ── Navbar ── */
nav {
  background: rgba(255,255,255,0.08);
  border-bottom: 2px solid var(--wwt-light-blue);
  backdrop-filter: blur(12px);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

nav .nav-brand { display: flex; align-items: center; gap: 10px; }
nav .nav-brand .logo-text { color: var(--wwt-white); font-weight: 700; font-size: 1rem; }
nav .nav-brand .logo-sub  { color: var(--wwt-light-blue); font-size: 0.75rem; font-weight: 400; display: block; }

nav a.logout {
  color: var(--wwt-light-blue);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
nav a.logout:hover { color: var(--wwt-white); }

/* ── Login layout ── */
body.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Cards ── */
.card {
  background: var(--wwt-white);
  border: 1.5px solid #B8D0F0;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  position: relative;
  z-index: 1;
}

.login-card {
  padding: 40px 40px 32px;
  width: 100%;
  max-width: 460px;
}

/* ── Logo area ── */
.logo-area { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }

.logo-text-block strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--wwt-navy);
}

.logo-text-block span {
  display: block;
  font-size: 0.75rem;
  color: var(--wwt-light-blue);
  font-weight: 600;
}

/* ── Gradient divider ── */
.divider {
  height: 3px;
  background: linear-gradient(to right, var(--wwt-red), var(--wwt-light-blue));
  border-radius: 2px;
  margin-bottom: 28px;
}

/* ── Login headings ── */
.login-card h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--wwt-navy);
  margin-bottom: 4px;
}

.login-card .subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 28px;
}

/* ── Form fields ── */
.field { margin-bottom: 20px; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wwt-ink);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
  background: #FEFCE8;
  color: var(--wwt-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: var(--wwt-light-blue);
  box-shadow: 0 0 0 3px rgba(0,134,234,0.15);
}

/* ── Buttons ── */
.btn, button[type="submit"] {
  display: inline-block;
  width: 100%;
  padding: 14px;
  background: var(--wwt-light-blue);
  color: var(--wwt-white);
  font-size: 1rem;
  font-weight: 700;
  font-family: Arial, sans-serif;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn:hover, button[type="submit"]:hover { background: var(--wwt-dark-blue); }

.btn-danger { background: var(--wwt-red); }
.btn-danger:hover { background: #b71c1e; }

/* ── Error / success banners ── */
.error {
  background: #fff1f0;
  border: 1px solid var(--wwt-red);
  color: #cf1322;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

.success {
  background: #f0fff4;
  border: 1px solid #52c41a;
  color: #237804;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}

/* ── Footer ── */
.footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: #aaa;
}

/* ── Dashboard container ── */
.container {
  max-width: 960px;
  margin: 48px auto;
  padding: 0 24px;
}

.page-header { margin-bottom: 32px; }
.page-header h2 { font-size: 1.5rem; font-weight: 700; color: var(--wwt-white); }
.page-header p  { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ── Dashboard option cards ── */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.option-card {
  background: var(--wwt-white);
  border: 1.5px solid #B8D0F0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 32px 28px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.4);
}

.option-card .icon { font-size: 2rem; margin-bottom: 4px; }

.option-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wwt-navy);
}

.option-card p {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.5;
}

.option-card .card-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wwt-light-blue);
}

.option-card.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── MOP upload page ── */
.upload-card {
  background: var(--wwt-white);
  border: 1.5px solid #B8D0F0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 36px;
  max-width: 600px;
}

.upload-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--wwt-navy);
  margin-bottom: 6px;
}

.upload-card p.sub { font-size: 0.875rem; color: #666; margin-bottom: 24px; }

input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1.5px dashed var(--wwt-light-blue);
  border-radius: 8px;
  background: #f8fbff;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  margin-bottom: 20px;
  cursor: pointer;
}

/* ── File table ── */
table { width: 100%; border-collapse: collapse; }

thead { background: var(--wwt-navy); }

thead th {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wwt-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr { border-bottom: 1px solid #f0f0f0; transition: background 0.15s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #f0f7ff; }

tbody td { padding: 12px 20px; font-size: 0.9rem; color: var(--wwt-ink); }

.file-name { font-weight: 600; }

.cell-input {
  width: 100%;
  min-width: 33px;
  min-height: 11px;
  border: none;
  outline: none;
  font-size: 0.875rem;
  font-family: Arial, sans-serif;
  background: transparent;
  padding: 1px 2px;
  display: block;
}

.sheet-table td {
  min-width: 40px;
  padding: 3px 5px;
  vertical-align: middle;
  white-space: nowrap;
}

.sheet-table th {
  min-width: 40px;
  padding: 5px 5px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
