/* Nigi Dashboard */
:root { --fg: #f1f5f9; --fg2: #a3aec2; --card: rgba(15, 23, 42, .55); --line: rgba(255, 255, 255, .12); --acc: #60a5fa; --tile: 96px; --ico: 56px; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Segoe UI Variable", "Segoe UI", Rubik, "Noto Sans Hebrew", system-ui, sans-serif; color: var(--fg); background: #0b1020; padding: 0 clamp(14px, 3vw, 40px) 30px; }
.bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(1200px 700px at 15% -10%, #4f46e5aa, transparent 60%), radial-gradient(900px 600px at 100% 10%, #db2777aa, transparent 60%), radial-gradient(900px 700px at 50% 120%, #0891b2aa, transparent 60%), #0b1020; }
body[data-theme=ocean] .bg { background: radial-gradient(1000px 700px at 10% 0%, #0ea5e9aa, transparent 60%), radial-gradient(900px 700px at 90% 100%, #1e3a8aee, transparent 60%), #06121f; }
body[data-theme=sunset] .bg { background: radial-gradient(1000px 700px at 0% 0%, #f97316bb, transparent 60%), radial-gradient(900px 700px at 100% 30%, #be185dbb, transparent 60%), radial-gradient(900px 600px at 50% 120%, #7c3aedaa, transparent 60%), #1a0b14; }
body[data-theme=forest] .bg { background: radial-gradient(1000px 700px at 0% 0%, #16a34aaa, transparent 60%), radial-gradient(900px 700px at 100% 100%, #0f766eaa, transparent 60%), #06140d; }
body[data-theme=dark] .bg { background: #0a0a0f; }
body[data-theme=light] { --fg: #0f172a; --fg2: #475569; --card: rgba(255, 255, 255, .72); --line: rgba(15, 23, 42, .1); color-scheme: light; }
body[data-theme=light] .bg { background: radial-gradient(1000px 700px at 0% 0%, #bfdbfe, transparent 60%), radial-gradient(900px 700px at 100% 20%, #fbcfe8, transparent 60%), #f1f5f9; }
body[data-size=s] { --tile: 76px; --ico: 40px; } body[data-size=l] { --tile: 122px; --ico: 74px; } body[data-size=xl] { --tile: 150px; --ico: 96px; }
.ic { display: inline-block; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; vertical-align: -3px; flex: none; }
.ic.sm { width: 15px; height: 15px; } .ic.xl { width: 40px; height: 40px; }
.hidden { display: none !important; }
.muted { color: var(--fg2); } .small { font-size: 13px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 24px rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.5); }
h1 { margin: 0; font-size: clamp(24px, 3.4vw, 38px); font-weight: 700; letter-spacing: .2px; }
.sub { color: var(--fg2); font-size: 15px; margin-top: 2px; }
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.where { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.where.home { color: #4ade80; } .where.away { color: #fbbf24; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.search input, .websearch input { border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 15px; padding: 11px 0; outline: none; width: 210px; }
.tbtn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer; backdrop-filter: blur(12px); }
body.editing .tbtn#editBtn { background: var(--acc); color: #fff; }
.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 18px; }
.widgets:empty { display: none; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; backdrop-filter: blur(16px); min-height: 110px; }
.wt { font-weight: 600; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.clock { font-size: 46px; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; } .date { color: var(--fg2); }
.rb { display: grid; grid-template-columns: 44px 1fr 40px auto; align-items: center; gap: 8px; font-size: 13px; margin: 5px 0; } .rb b { text-align: end; }
.bar { height: 7px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 4px; transition: width .5s; }
.wx { display: flex; align-items: center; gap: 12px; } .wx b { font-size: 40px; font-weight: 300; }
.websearch { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; background: rgba(255,255,255,.08); margin-top: 22px; } .websearch input { width: 100%; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 12px; } .cal b { color: var(--fg2); font-weight: 600; } .cal span { padding: 3px 0; border-radius: 6px; } .cal .today { background: var(--acc); color: #fff; font-weight: 700; }
.note { width: 100%; min-height: 70px; resize: vertical; background: rgba(255,255,255,.06); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; font: inherit; }
.editbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; margin-bottom: 16px; border-radius: 16px; background: var(--card); border: 1px dashed var(--acc); backdrop-filter: blur(12px); font-size: 14px; }
.editbar select, .editbar button { font: inherit; font-size: 13px; color: var(--fg); background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; cursor: pointer; }
.editbar button.primary { background: var(--acc); color: #fff; border-color: transparent; }
.editbar .wsel { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.group h2 { font-size: 15px; font-weight: 600; color: var(--fg2); margin: 18px 4px 10px; letter-spacing: .3px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile), 1fr)); gap: 14px; }
.tile { position: relative; border-radius: 20px; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(14px); transition: transform .15s, border-color .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.35); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.tile .open { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; width: 100%; box-sizing: border-box; text-align: center; }
.art { width: var(--ico); height: var(--ico); display: grid; place-items: center; }
.art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.art .ltr { width: 100%; height: 100%; border-radius: 28%; background: linear-gradient(135deg, #64748b, #334155); display: grid; place-items: center; font-size: calc(var(--ico) * .45); font-weight: 700; }
.lucide { width: 100%; height: 100%; border-radius: 28%; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.lucide .ic { width: 52%; height: 52%; }
.nm { font-size: 13px; font-weight: 500; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
body[data-size=s] .nm { font-size: 11.5px; } body[data-size=xl] .nm { font-size: 15px; }
.tile .info { position: absolute; top: 6px; inset-inline-end: 6px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--fg); font-size: 12px; font-weight: 700; cursor: pointer; opacity: .55; }
.tile:hover .info { opacity: 1; } .tile .info:hover { background: var(--acc); }
.tile .dot { position: absolute; top: 9px; inset-inline-start: 9px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.25); }
.tile.down .art { opacity: .55; }
.tile .eye, .tile .del { position: absolute; bottom: 6px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; }
.tile .eye { inset-inline-start: 6px; } .tile .del { inset-inline-end: 6px; }
body.editing .tile .open { padding-bottom: 36px; }
.tile.is-hidden { opacity: .4; } body.editing .tile { cursor: grab; } .tile.dragging { opacity: .3; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 50px 10px; text-align: center; color: var(--fg2); } .empty .ic { width: 44px; height: 44px; }
.pop { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: center; z-index: 10; padding: 16px; backdrop-filter: blur(4px); }
.pop .card { position: relative; width: min(460px, 100%); background: #111827f2; color: #f1f5f9; border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
body[data-theme=light] .pop .card { background: #fff; color: #0f172a; }
.pop .x { position: absolute; top: 12px; inset-inline-end: 12px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.pop .ph { display: flex; gap: 14px; align-items: center; } .pop .ph .art { --ico: 64px; } .pop h3 { margin: 0; font-size: 20px; }
.pop p { line-height: 1.6; color: inherit; opacity: .9; }
.addrs { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 16px; }
.addr { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; padding: 8px 10px; border-radius: 10px; background: rgba(127,127,127,.12); font-size: 13px; } .addr code { margin-inline-start: auto; opacity: .75; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop .primary { width: 100%; border: 0; border-radius: 12px; padding: 12px; background: var(--acc); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.foot { text-align: center; color: var(--fg2); font-size: 12px; margin-top: 30px; }
@media (max-width: 640px) {
  .top { padding-top: 14px; } .logo { width: 48px; height: 48px; } .search input { width: 140px; }
  .tools { width: 100%; } .search { flex: 1; } .search input { width: 100%; }
  .tiles { gap: 10px; } .widgets { grid-template-columns: 1fr 1fr; } .clock { font-size: 34px; }
}
