/* LumaDesk 2.0 – Clean Modern Bento (dark, minimal, accent) */

:root{
  /* Core */
  --bg: #0b0c10;
  --bg2:#090a0d;

  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.10);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);

  /* Accent (like your reference) */
  --accent: #FF5D00;
  --accentSoft: rgba(255,93,0,.18);

  /* Status */
  --danger:#ef4444;
  --warn:#f59e0b;
  --ok:#10b981;

  /* Layout */
  --radius: 22px;
  --radiusSm: 16px;
  --gap: 16px;

  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --shadowSoft: 0 14px 42px rgba(0,0,0,.40);

  /* Typography */
  --font: "Urbanist", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 560px at 18% 10%, rgba(255,93,0,.10), transparent 55%),
    radial-gradient(1000px 700px at 88% 18%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

/* Subtle background layer */
.app-bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(700px 420px at 10% 0%, rgba(255,255,255,.05), transparent 58%),
    radial-gradient(700px 420px at 95% 10%, rgba(255,255,255,.03), transparent 60%);
  opacity:.65;
}

/* Containers */
.container{
  width:100%;
  margin:0 auto;
  padding: 22px clamp(14px, 2.2vw, 28px);
}
.container--fluid{ max-width:none; }

/* App Shell */
.shell{
  display:grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: var(--gap);
  align-items:start;
  min-height: calc(100vh - 44px);
}
@media (max-width: 980px){
  .shell{ grid-template-columns: 1fr; }
}

/* Sidebar */
.sidebar{
  position: sticky;
  top: 18px;
  align-self:start;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  box-shadow: var(--shadowSoft);
  backdrop-filter: blur(12px);
  padding: 14px;
}
@media (max-width: 980px){
  .sidebar{ position: relative; top: 0; }
}

.sidehead{
  display:flex;
  flex-direction:column;
  gap: 12px;
  padding: 4px;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radiusSm);
}
.brand__mark{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(255,93,0,.20);
}
.brand__name{
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.brand__sub{
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}

.userchip{
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.20);
  border-radius: var(--radiusSm);
  padding: 10px 12px;
}
.userchip__name{ font-weight: 850; letter-spacing: -0.01em; }
.userchip__meta{ margin-top: 2px; font-size: 12px; color: var(--muted2); }

/* Nav */
.nav{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
  padding: 6px 4px 10px 4px;
}
.nav__item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
}
.nav__ico{
  width: 20px;
  display:inline-flex;
  justify-content:center;
  opacity:.9;
}
.nav__item:hover{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.nav__item.is-active{
  border-color: rgba(255,93,0,.22);
  background: linear-gradient(90deg, rgba(255,93,0,.14), rgba(255,255,255,.02));
  color: var(--text);
}

.nav__sep{
  height:1px;
  background: rgba(255,255,255,.10);
  margin: 10px 8px 6px 8px;
}
.nav__section{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted2);
  margin: 6px 10px 2px 10px;
}
.sidefoot{
  margin-top: 10px;
  padding: 10px 10px 4px 10px;
  color: var(--muted2);
  font-size: 12px;
}

/* Main */
.main{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: var(--gap);
}
.content{ min-width:0; }

/* Topbar */
.topbar{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  box-shadow: var(--shadowSoft);
  backdrop-filter: blur(12px);
  padding: 14px 16px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.topbar__title{ font-weight: 900; letter-spacing: -0.02em; }
.topbar__sub{ margin-top: 2px; font-size: 12px; color: var(--muted2); }
.topbar__right{ display:flex; align-items:center; gap: 10px; }

/* Bento grid */
.bento{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
@media (max-width: 980px){
  .bento{ grid-template-columns: repeat(6, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .bento{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* Cards */
.card{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius);
  box-shadow: var(--shadowSoft);
  backdrop-filter: blur(12px);
  padding: 16px;
  min-width:0;
}

.stack{ display:flex; flex-direction:column; gap: 12px; }

.h1{ font-size: 28px; font-weight: 950; letter-spacing: -0.04em; margin:0; }
.h2{ font-size: 18px; font-weight: 900; letter-spacing: -0.02em; margin:0; }
.muted{ color: var(--muted); }
.meta{ color: var(--muted2); font-size: 12px; }

/* Tables */
.tablewrap{
  overflow:auto;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.08);
}
table{
  width:100%;
  border-collapse: collapse;
  min-width: 760px;
}
th, td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align:left;
}
th{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--muted2);
}
tbody tr:hover td{
  background: rgba(255,255,255,.03);
}

/* Inputs / buttons */
.input, select, textarea{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color: var(--text);
  border-radius: 16px;
  padding: 11px 12px;
  outline:none;
}
.input:focus, select:focus, textarea:focus{
  border-color: rgba(255,93,0,.35);
  box-shadow: 0 0 0 4px rgba(255,93,0,.10);
}
textarea{ resize: vertical; }

.label{
  display:block;
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 6px;
}

.btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 16px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 850;
}
.btn:hover{ background: rgba(255,255,255,.10); }
.btn--primary{
  border-color: rgba(255,93,0,.35);
  background: linear-gradient(135deg, rgba(255,93,0,.22), rgba(255,255,255,.04));
}
.btn--ghost{ background: transparent; }

/* Chips / pills */
.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-size: 12px;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--muted);
}
.pill.open{ border-color: rgba(255,93,0,.28); color: rgba(255,93,0,.95); }
.pill.in_progress{ border-color: rgba(245,158,11,.28); color: rgba(245,158,11,.95); }
.pill.waiting{ border-color: rgba(167,139,250,.28); color: rgba(167,139,250,.95); }
.pill.closed{ border-color: rgba(16,185,129,.25); color: rgba(16,185,129,.95); }

.pill.low{ border-color: rgba(255,255,255,.14); }
.pill.normal{ border-color: rgba(255,93,0,.20); }
.pill.high{ border-color: rgba(245,158,11,.25); }
.pill.urgent{ border-color: rgba(239,68,68,.25); color: rgba(239,68,68,.95); }

/* Alerts */
.alert{
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(0,0,0,.18);
}
.alert .title{ font-weight: 900; margin-bottom: 4px; }
.alert.ok{ border-color: rgba(16,185,129,.25); }
.alert.err{ border-color: rgba(239,68,68,.25); }

/* Guest pages (login etc.) */
.guest{
  display:flex;
  flex-direction:column;
  gap: 14px;
  padding-top: 8px;
}

/* Layout helpers */
.toprow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

/* Auth layout */
.auth-shell{
  display:grid;
  grid-template-columns: minmax(0, 560px);
  justify-content:center;
  gap: 16px;
  margin-top: 24px;
}

.auth-card{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow:hidden;
}
.auth-card__top{
  padding: 18px 18px 0 18px;
}
.auth-card__body{
  padding: 18px;
}
.form{ margin-top: 14px; }
.form__row{ margin-bottom: 12px; }
.form__actions{ margin-top: 14px; display:flex; justify-content:flex-end; }
