/* LAN Manager 1337 — ELOGE design system (emerald + glass + dark) */

:root {
  --brand-500: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.96);
  --border: rgba(148, 163, 184, 0.55);
  --shadow-brand: 0 6px 14px rgba(16, 185, 129, 0.28);
}

html.dark {
  --brand-500: #4e8cff;
  --brand-600: #2f6bd9;
  --brand-700: #1f4ea8;
  --surface: rgba(34, 40, 64, 0.92);
  --surface-soft: rgba(40, 47, 73, 0.95);
  --border: rgba(99, 110, 142, 0.55);
  --shadow-brand: 0 6px 14px rgba(78, 140, 255, 0.28);
}

html, body { background: #f8fafc; }
body {
  background-image:
    radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.12), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(16, 185, 129, 0.10), transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.06), transparent 55%);
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
html.dark, html.dark body { background: #161a2a; color: #e3e8f4; }
html.dark body {
  background-image:
    radial-gradient(circle at 10% 10%, rgba(78, 140, 255, 0.18), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(78, 140, 255, 0.13), transparent 35%),
    radial-gradient(circle at 50% 100%, rgba(78, 140, 255, 0.10), transparent 55%);
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}
.glass-soft {
  background: var(--surface-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}

html.dark .text-slate-800 { color: #eef2f9 !important; }
html.dark .text-slate-700 { color: #d6dceb !important; }
html.dark .text-slate-600 { color: #b6bed4 !important; }
html.dark .text-slate-500 { color: #95a0bd !important; }
html.dark .text-slate-400 { color: #7a85a3 !important; }
html.dark .border-slate-200 { border-color: rgba(99,110,142,0.4) !important; }
html.dark .border-slate-300 { border-color: rgba(99,110,142,0.6) !important; }
html.dark .bg-white { background: rgba(34,40,64,0.85) !important; }
html.dark .bg-slate-50 { background: rgba(34,40,64,0.6) !important; }
html.dark .bg-slate-100 { background: rgba(48,54,82,0.7) !important; }
html.dark .bg-emerald-50 { background: rgba(78,140,255,0.12) !important; }
html.dark .bg-emerald-100 { background: rgba(78,140,255,0.20) !important; }
html.dark .text-emerald-600 { color: #7ab0ff !important; }
html.dark .text-emerald-700 { color: #93beff !important; }
html.dark .text-emerald-800 { color: #b5d2ff !important; }
html.dark .border-emerald-200 { border-color: rgba(78,140,255,0.35) !important; }
html.dark .border-emerald-500 { border-color: var(--brand-500) !important; }
html.dark .focus\:ring-emerald-200:focus { box-shadow: 0 0 0 3px rgba(78,140,255,0.25) !important; }
html.dark .focus\:border-emerald-500:focus { border-color: var(--brand-500) !important; }

.btn-brand {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: white;
  box-shadow: var(--shadow-brand);
  border: none;
  transition: transform .15s ease, box-shadow .25s ease, filter .2s ease;
}
.btn-brand:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-brand:active { transform: scale(.99); }

button, a, input, select, textarea, [role="button"] {
  transition: background-color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease, color .2s ease;
}

input, select, textarea {
  background: var(--surface-soft);
  color: inherit;
}
html.dark input, html.dark select, html.dark textarea { color: #e3e8f4; }
input::placeholder, textarea::placeholder { color: rgba(100,116,139,.7); }
html.dark input::placeholder, html.dark textarea::placeholder { color: rgba(180,190,212,.55); }

.menu-item {
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
}
.menu-item:hover { background: rgba(16,185,129,0.08); transform: translateY(-1px); }
html.dark .menu-item:hover { background: rgba(78,140,255,0.12); }
.menu-item.active {
  background: linear-gradient(135deg, rgba(16,185,129,0.16), rgba(16,185,129,0.04));
  border-color: rgba(16,185,129,0.3);
  color: var(--brand-700);
  transform: translateY(-1px);
}
html.dark .menu-item.active {
  background: linear-gradient(135deg, rgba(78,140,255,0.20), rgba(78,140,255,0.05));
  border-color: rgba(78,140,255,0.4);
  color: #cfe0ff;
}

.card-hover { transition: transform .2s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,23,42,0.10); }

.fade-in { animation: fade-in .28s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.toast {
  pointer-events: auto;
  animation: toast-in .3s cubic-bezier(.2,.7,.2,1) both;
}
.toast.leaving { animation: toast-out .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

.modal-overlay { animation: overlay-in .18s ease both; }
.modal-overlay.leaving { animation: overlay-out .14s ease both; }
.modal-panel { animation: modal-in .18s cubic-bezier(.2,.7,.2,1) both; }
.modal-panel.leaving { animation: modal-out .14s ease both; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlay-out { to { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modal-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }
html.dark ::-webkit-scrollbar-thumb { background: #4b5474; }
html.dark ::-webkit-scrollbar-thumb:hover { background: #6b779a; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(16,185,129,0.25);
  border-top-color: var(--brand-500);
  border-radius: 9999px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tab-underline { position: relative; }
.tab-underline.active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
  border-radius: 2px;
}

.skel { background: linear-gradient(90deg, rgba(148,163,184,.15) 0%, rgba(148,163,184,.3) 50%, rgba(148,163,184,.15) 100%); background-size: 200% 100%; animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
