:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { margin: 0; background: #0b0f17; color: #e9eef7; }
a { color: inherit; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px; }
.top { display:flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
h1 { margin: 0; font-size: 28px; }
.tag { margin: 6px 0 0; opacity: .75; }
.nav { display:flex; gap: 12px; align-items: center; }
.link { text-decoration: none; opacity: .85; }
.link:hover { opacity: 1; text-decoration: underline; }
.btn { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.btn:hover { background: rgba(255,255,255,.12); }
.btn.secondary { background: transparent; }
.btn.danger { border-color: rgba(255,100,100,.45); }

.card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 18px; margin: 18px 0; }
.pill-row { display:flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); }
.footer { opacity: .8; font-size: 13px; margin-top: 18px; display:flex; justify-content: space-between; }
.dot { margin: 0 8px; opacity: .6; }
.muted { opacity: .75; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); display:none; align-items: center; justify-content: center; padding: 18px; }
.modal-backdrop.show { display:flex; }
.modal { width: min(760px, 100%); background: #121a2a; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; overflow: hidden; }
.modal-head, .modal-foot { padding: 12px 14px; display:flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.modal-foot { border-top: 1px solid rgba(255,255,255,.08); border-bottom: none; justify-content: flex-end; gap: 10px; }
.modal-body { padding: 14px; }
.icon-btn { background: transparent; border: none; color: #fff; font-size: 18px; cursor: pointer; opacity: .85; }
.icon-btn:hover { opacity: 1; }

.docs { display:flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.doc-row { display:flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.doc-title { font-weight: 600; }
.doc-meta { font-size: 12px; opacity: .75; margin-top: 4px; }
.doc-actions { display:flex; align-items:center; gap: 10px; }

/* Forms */
.form { display:flex; flex-direction: column; gap: 14px; max-width: 360px; margin: 0 auto; }
.form label { display:flex; flex-direction: column; gap: 6px; font-size: 14px; opacity: .92; }
.label-text { font-size: 13px; opacity: .9; }
input { padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-size: 14px; }
.form-actions { display:flex; gap: 14px; align-items: center; margin-top: 6px; }
.form button.btn { width: fit-content; padding: 10px 18px; }

.hr { border: none; border-top: 1px solid rgba(255,255,255,.10); margin: 18px 0; }

.flash { margin: 12px 0; display:flex; flex-direction: column; gap: 8px; }
.flash-item { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); }
.flash-item.error { border-color: rgba(255,120,120,.35); }
.flash-item.success { border-color: rgba(120,255,160,.25); }

.admin-head { display:flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Wider form on admin page */
.admin-form-wide { max-width: 520px; }

/* Toggle switch */
.toggle-form { display:flex; align-items:center; gap:10px; }

.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  transition: .2s;
}
.slider:before {
  position: absolute; content: "";
  height: 18px; width: 18px; left: 3px; top: 2px;
  background: white;
  border-radius: 50%;
  transition: .2s;
}
.switch input:checked + .slider { background: rgba(120,255,160,.25); }
.switch input:checked + .slider:before { transform: translateX(20px); }

.toggle-label { font-size: 12px; opacity: .85; min-width: 52px; }

/* Login card centering */
.login-card { max-width: 420px; margin: 80px auto; }

/* Hero image */
.hero {
  margin: 18px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.hero img {
  width: 100%;
  height: 260px;          /* change to 220 / 300 if you want */
  object-fit: cover;      /* keeps it landscape nicely */
  display: block;
}

/* Brand logo + title */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  height: 48px;       /* small, professional size */
  width: auto;
}

.brand-text h1 {
  margin: 0;
}

.brand-text .tag {
  margin-top: 4px;
}

