:root {
  --bg: #080b14;
  --panel: rgba(13, 18, 33, .88);
  --panel-2: rgba(21, 30, 53, .92);
  --text: #eef4ff;
  --muted: #9fb0cc;
  --gold: #ffd27d;
  --line: rgba(255,255,255,.11);
  --danger: #ff6b6b;
  --green: #bdf7c8;
  --red-light: #ffd0d0;
  --yellow-light: #fff3b0;
  --blue-light: #cfe5ff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-family: Inter, Segoe UI, Arial, sans-serif; color: var(--text); background: var(--bg); }
.login-body, .app-body {
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 210, 125, .18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(73, 132, 255, .18), transparent 30%),
    linear-gradient(135deg, rgba(0,0,0,.78), rgba(7,12,23,.72)),
    url('background.svg');
  background-size: cover;
  background-attachment: fixed;
}
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px, 94vw); padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, rgba(17,26,48,.92), rgba(8,12,24,.90)); box-shadow: 0 24px 80px rgba(0,0,0,.42); backdrop-filter: blur(12px); text-align: center; }
.brand-mark { width: 82px; height: 82px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 24px; color: #1a1100; font-weight: 900; font-size: 28px; background: linear-gradient(135deg, #fff4c7, #d7982d 45%, #8a5312); box-shadow: 0 0 38px rgba(255,210,125,.35); letter-spacing: -2px; }
.brand-mark.small { width: 54px; height: 54px; margin: 0; border-radius: 18px; font-size: 18px; }
h1, h2, h3, p { margin-top: 0; }
.login-card h1 { margin-bottom: 4px; font-size: 34px; }
.tagline { color: var(--gold); margin-bottom: 28px; letter-spacing: .3px; }
.login-form, .modal form { display: grid; gap: 16px; text-align: left; }
label { display: grid; gap: 7px; color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.07); color: var(--text); padding: 13px 14px; font: inherit; outline: none; }
select option { color: #111; }
textarea { min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(255,210,125,.65); box-shadow: 0 0 0 4px rgba(255,210,125,.11); }
.primary-btn, .ghost-btn { border: 0; border-radius: 14px; padding: 12px 16px; color: #201400; font-weight: 900; cursor: pointer; background: linear-gradient(135deg, #fff4c7, #f4c15e, #b7751c); box-shadow: 0 12px 28px rgba(244,193,94,.19); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ghost-btn { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.ghost-btn:hover, .primary-btn:hover { transform: translateY(-1px); }
.alert { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; text-align: left; }
.alert.error { background: rgba(255,107,107,.15); border: 1px solid rgba(255,107,107,.35); color: #ffdede; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 24px; background: rgba(7,10,19,.82); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.topbar-brand { display: flex; align-items: center; gap: 14px; }
.topbar-brand strong { display: block; font-size: 20px; }
.topbar-brand span { display: block; color: var(--muted); font-size: 13px; }
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.logout { color: #ffd6d6; }
.hero-strip { margin: 22px auto 0; width: min(1500px, calc(100% - 32px)); padding: 22px 24px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg, rgba(255,210,125,.14), rgba(84,125,255,.08)); box-shadow: 0 18px 60px rgba(0,0,0,.25); }
.hero-strip h1 { margin-bottom: 6px; font-size: clamp(26px, 3vw, 42px); }
.hero-strip p { margin-bottom: 0; color: var(--muted); }
.board { width: min(1500px, calc(100% - 32px)); margin: 18px auto 24px; display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; }
.column { min-height: 580px; padding: 16px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 18px 70px rgba(0,0,0,.28); }
.column header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.column h2 { margin: 0; font-size: 20px; }
.add-task { width: 38px; height: 38px; border: 0; border-radius: 12px; color: #201400; background: var(--gold); font-size: 26px; font-weight: 900; cursor: pointer; }
.task-list { display: grid; gap: 14px; }
.empty { padding: 20px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.task-card { position: relative; color: #132036; border-radius: 20px; padding: 16px; box-shadow: 0 16px 36px rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.4); }
.task-card.urgent { background: var(--red-light); }
.task-card.medium { background: var(--yellow-light); }
.task-card.normal { background: var(--blue-light); }
.task-card.finished { background: var(--green); }
.task-tools { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.task-tools button { width: 28px; height: 28px; border: 0; border-radius: 10px; background: rgba(0,0,0,.11); cursor: pointer; font-weight: 900; color: #132036; }
.assigned { margin: 0 70px 8px 0; display: inline-block; padding: 5px 9px; border-radius: 999px; background: rgba(0,0,0,.12); font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.task-text { white-space: pre-wrap; margin: 8px 0 12px; line-height: 1.45; font-weight: 700; }
.task-meta { color: rgba(19,32,54,.68); font-size: 12px; margin-bottom: 12px; }
.task-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.task-actions button { border: 0; border-radius: 12px; padding: 8px 10px; background: rgba(19,32,54,.88); color: #fff; cursor: pointer; font-weight: 800; }
.task-actions button:disabled { opacity: .45; cursor: not-allowed; }
.task-actions .danger { background: #a32121; }
.comments { margin-top: 12px; color: #132036; }
.comments summary { cursor: pointer; font-weight: 900; }
.comment { margin-top: 10px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.42); }
.comment strong { display: block; }
.comment span { font-size: 11px; opacity: .68; }
.comment p { margin: 6px 0 0; white-space: pre-wrap; }
.no-comments { margin-top: 10px; font-size: 12px; color: rgba(19,32,54,.58); }
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 22px; background: rgba(0,0,0,.62); }
.modal[aria-hidden="false"] { display: grid; }
.modal-card { width: min(560px, 96vw); max-height: 90vh; overflow: auto; padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel-2); box-shadow: 0 30px 90px rgba(0,0,0,.55); position: relative; }
.modal-card h3 { font-size: 24px; margin-bottom: 18px; }
.modal-close { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; color: var(--text); font-size: 30px; cursor: pointer; }
#toast { position: fixed; right: 18px; bottom: 18px; z-index: 70; transform: translateY(20px); opacity: 0; pointer-events: none; max-width: 360px; padding: 13px 16px; border-radius: 14px; background: #dbffe1; color: #072711; font-weight: 800; transition: .2s; box-shadow: 0 16px 40px rgba(0,0,0,.32); }
#toast.error { background: #ffe0e0; color: #4d0606; }
#toast.show { transform: translateY(0); opacity: 1; }
footer { text-align: center; padding: 20px; color: var(--muted); }
@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .topbar { align-items: flex-start; flex-direction: column; } .top-actions { width: 100%; } .top-actions > * { flex: 1; } .board { grid-template-columns: 1fr; } .column { min-height: auto; } }

/* Azura Legends custom fantasy visual update */
.login-body, .app-body {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 210, 125, .14), transparent 26%),
    radial-gradient(circle at 78% 12%, rgba(80, 150, 255, .20), transparent 34%),
    linear-gradient(135deg, rgba(3, 6, 13, .72), rgba(7, 12, 23, .64)),
    url('login-bg.jpg') center center / cover no-repeat fixed;
}
.login-card {
  width: min(560px, 94vw);
  padding: 32px 34px 36px;
  background: linear-gradient(180deg, rgba(13,22,43,.86), rgba(5,9,18,.88));
  border-color: rgba(255, 210, 125, .18);
  box-shadow: 0 28px 90px rgba(0,0,0,.54), inset 0 1px 0 rgba(255,255,255,.08);
}
.login-logo {
  display: block;
  width: min(430px, 100%);
  height: auto;
  margin: -16px auto 2px;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.62)) drop-shadow(0 0 18px rgba(255,210,125,.16));
}
.login-logo.installer-logo { margin-bottom: -8px; }
.login-card h1 { margin-top: 0; }
.tagline {
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
  font-weight: 800;
}
.topbar {
  background: linear-gradient(90deg, rgba(5,8,16,.92), rgba(10,18,34,.84));
  border-bottom-color: rgba(255,210,125,.16);
}
.topbar-logo {
  width: 176px;
  max-width: 34vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 9px 15px rgba(0,0,0,.54));
}
.topbar-title strong { font-size: 17px; }
.hero-strip, .column, .modal-card {
  background: linear-gradient(180deg, rgba(13, 20, 38, .86), rgba(7, 12, 24, .88));
  border-color: rgba(255,210,125,.13);
  backdrop-filter: blur(14px);
}
@media (max-width: 680px) {
  .login-logo { width: min(360px, 100%); margin-top: -8px; }
  .topbar-logo { width: 150px; max-width: 72vw; }
}
