/* Extras din einpanel.css (fisier unic anterior) -- vezi INSTALL.md / notele proiectului pt. harta completa a fisierelor CSS. */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Teko:wght@400;500;600;700&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --gold: #de9b35;
  --gold-dim: #b47c26;
  --gold-glow: rgba(222, 155, 53, .18);
  --bg: #0c0d10;
  --bg-2: #121318;
  --panel: #16181f;
  --panel-2: #1b1e27;
  --line: #23262f;
  --line-2: #2c3140;
  --txt: #e6e8ee;
  --txt-dim: #8b909c;
  --txt-mute: #5c616e;
  --green: #4ade80;
  --red: #ef4444;
  --orange: #f59e0b;
  --blue: #60a5fa;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(900px 500px at 78% -10%, rgba(222,155,53,.06), transparent 60%),
    radial-gradient(700px 500px at -5% 8%, rgba(222,155,53,.04), transparent 55%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.clip { clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.clip-sm { clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.page-title { font-family: 'Bebas Neue', sans-serif; font-size: 34px; letter-spacing: 1px; line-height: 1; }
.page-title small { display: block; font-family: 'Rajdhani'; font-size: 13px; color: var(--txt-mute); letter-spacing: .5px; margin-top: 4px; }


.card {
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
  position: relative;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 2px;
  background: var(--gold);
}
.card-h {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 16px;
}
.card-h svg { width: 18px; height: 18px; color: var(--gold); }
.card-b { padding: 20px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 18px 20px;
  clip-path: polygon(0 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%);
}
.tile-label { font-size: 11px; letter-spacing: 2px; color: var(--txt-mute); text-transform: uppercase; }
.tile-value { font-family: 'Teko', sans-serif; font-size: 46px; font-weight: 600; line-height: 1; margin-top: 4px; }
.tile-sub { font-size: 12px; color: var(--txt-mute); }
.tile.green .tile-value { color: var(--green); }
.tile.blue .tile-value { color: var(--blue); }
.tile.orange .tile-value { color: var(--orange); }
.tile.gold .tile-value { color: var(--gold); }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; padding: 12px 16px;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--txt-mute); border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.tbl td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(255,255,255,.015); }
.srv-name { font-weight: 700; font-size: 16px; }
.srv-id { font-size: 12px; color: var(--txt-mute); font-family: 'Rajdhani'; }
.mono { font-family: ui-monospace, 'Cascadia Code', Menlo, monospace; font-size: 13px; color: var(--txt-dim); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; font-size: 12px; font-weight: 600;
  border: 1px solid transparent; border-radius: 3px;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.on { color: var(--green); background: rgba(74,222,128,.1); }
.badge.off { color: var(--txt-mute); background: rgba(255,255,255,.04); }
.badge.susp { color: var(--orange); background: rgba(245,158,11,.1); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 18px; font-family: 'Rajdhani'; font-weight: 600; font-size: 14px;
  letter-spacing: .5px; text-transform: uppercase; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--txt);
  transition: .12s; clip-path: polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px);
}
.btn:hover { border-color: var(--gold-dim); color: var(--gold); }
.btn svg { width: 16px; height: 16px; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dim)); color: #14150f; border: none; }
.btn-toggle-on { background: rgba(74,222,128,.14); color: #4ade80; border: 1px solid rgba(74,222,128,.35); }
.btn-toggle-on:hover { background: rgba(74,222,128,.22); }
.btn-toggle-off { background: rgba(255,255,255,.04); color: var(--txt-mute); border: 1px solid var(--line); }
.btn-toggle-off:hover { background: rgba(222,155,53,.1); color: var(--gold); border-color: rgba(222,155,53,.3); }
.btn-power-inactive { opacity: .35; cursor: not-allowed; pointer-events: none; }

.btn-gold:hover { filter: brightness(1.08); color: #14150f; }
.btn-green { background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.3); color: var(--green); }
.btn-green:hover { background: rgba(74,222,128,.2); color: var(--green); }
.btn-red { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); color: var(--red); }
.btn-red:hover { background: rgba(239,68,68,.2); color: var(--red); }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-icon { padding: 8px; width: 36px; }

.actions { display: flex; gap: 8px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-dim); margin-bottom: 7px; font-weight: 600; }
.input {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--txt);
  font-family: 'Rajdhani'; font-size: 15px; font-weight: 500;
  clip-path: polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px);
}
.input:focus { border-color: var(--gold); background: #101116; }
.input::placeholder { color: var(--txt-mute); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tab { padding: 12px 20px; font-weight: 600; color: var(--txt-dim); border-bottom: 2px solid transparent; cursor: pointer; text-transform: uppercase; font-size: 14px; letter-spacing: .5px; }
.tab.on { color: var(--gold); border-bottom-color: var(--gold); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.delimiter { margin: 22px 0 14px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 8px; font-weight: 700; }
select.input optgroup { background: var(--panel); color: var(--txt-mute); font-weight: 700; }
select.input option { background: var(--panel); color: var(--txt); }

.kv { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--txt-dim); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.kv .v { font-weight: 600; }

.empty { text-align: center; padding: 60px 20px; color: var(--txt-mute); }
.empty svg { width: 44px; height: 44px; opacity: .4; margin-bottom: 14px; }

.note { display: flex; gap: 12px; align-items: flex-start; background: rgba(222,155,53,.07); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 14px 16px; color: var(--txt-dim); font-size: 14px; line-height: 1.55; }
.note svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.tbl td svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; flex-shrink: 0; }
.btn-icon-back {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; flex-shrink: 0;
  background: var(--panel); border: 1px solid var(--line-2); color: var(--txt-dim); cursor: pointer;
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.btn-icon-back:hover { border-color: rgba(222,155,53,.4); color: var(--gold); }
.btn-icon-back svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.flash-ok { background: rgba(34,197,94,.1) !important; border-color: rgba(34,197,94,.4) !important; color: var(--green) !important; }
.form-sep { margin: 22px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--gold); font-family: 'Teko','Rajdhani',sans-serif; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }
