/* Fleet Manager — web theme (ported from the desktop EVE dark theme). */
:root{
  --bg-deep:#060c12; --bg-panel:#0d1520; --bg-card:#111e2e; --bg-header:#0a1628;
  --border:#1e3a4a; --border-lt:#2a5570;
  --accent:#4fc3f7; --accent2:#00bcd4;
  --text:#c8d8e8; --dim:#6a8a9a;
  --green:#4caf50; --red:#ef5350; --yellow:#f0c040; --blue:#4a9eff;
  --purple:#b06fe6; --amber:#e0a526;
  --primary-bg:#0d3a5a; --primary-bg-hover:#1a5070;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{
  background:var(--bg-deep); color:var(--text);
  font-family:"Segoe UI",Arial,sans-serif; font-size:13px;
}
.hidden{display:none !important}

/* header */
.header{
  display:flex; align-items:center; gap:12px;
  background:var(--bg-header); border-bottom:1px solid var(--border);
  padding:8px 16px;
}
.title{color:var(--accent); font-weight:bold; letter-spacing:3px; font-size:14px; cursor:pointer}
.spacer{flex:1}
.who{color:var(--dim); font-size:12px}

/* layout */
.wrap{max-width:1100px; margin:0 auto; padding:16px}
.panel{
  background:var(--bg-panel); border:1px solid var(--border);
  border-radius:4px; padding:12px 14px; margin-bottom:12px;
}
.row{display:flex; align-items:center; gap:12px}
.muted{color:var(--dim)}

/* buttons */
button{
  background:var(--bg-panel); color:var(--text);
  border:1px solid var(--border); border-radius:3px;
  padding:6px 14px; font-size:12px; cursor:pointer;
}
button:hover{border-color:var(--accent); color:var(--accent)}
button.primary{background:var(--primary-bg); color:var(--accent); border-color:var(--accent); font-weight:bold}
button.primary:hover{background:var(--primary-bg-hover)}
button.seg{color:var(--dim); font-size:11px; padding:4px 12px}
button.seg.active{background:var(--primary-bg); color:var(--accent); border-color:var(--accent)}
button.kick{color:var(--yellow); border-color:var(--yellow); padding:2px 12px; font-size:11px; font-weight:bold}
button.kick:hover{background:rgba(240,192,64,.18); color:var(--yellow)}
button.ban,button.danger{color:var(--red); border-color:var(--red); padding:2px 12px; font-size:11px; font-weight:bold}
button.ban:hover,button.danger:hover{background:rgba(239,83,80,.18); color:var(--red)}

input,select{
  background:var(--bg-deep); color:var(--text);
  border:1px solid var(--border); border-radius:3px; padding:6px 8px; font-size:13px;
}
input:focus,select:focus{outline:none; border-color:var(--accent)}

/* gauge */
.gauge{display:flex; align-items:center; gap:10px}
.gauge .num{font-size:24px; font-weight:bold; color:var(--accent)}
.gauge .slash{color:var(--dim); font-size:16px}
.bar{flex:1; height:10px; background:var(--bg-deep); border:1px solid var(--border); border-radius:4px; overflow:hidden}
.bar > div{height:100%; background:var(--accent); width:0}

/* indicator */
.indicator{display:flex; gap:18px; align-items:center}
.in-fleet{color:var(--green); font-weight:bold; font-size:14px}
.out-fleet{color:var(--red); font-weight:bold; font-size:14px}

/* tables / tree */
table{width:100%; border-collapse:collapse}
th{
  background:var(--bg-header); color:var(--dim); text-align:left;
  padding:6px 8px; font-size:11px; font-weight:bold; border-bottom:1px solid var(--border);
}
td{padding:6px 8px; border-bottom:1px solid var(--border)}
.center{text-align:center}
.c-role{color:var(--blue)} .c-max{color:var(--purple)}
.c-in{color:var(--green)} .c-out{color:var(--red)}
.c-admin{color:var(--purple); font-weight:bold}
.c-ls{color:var(--amber); font-weight:bold}
.c-fc{color:var(--blue); font-weight:bold}
.c-ban{color:var(--red); font-weight:bold}
.c-pilot{color:var(--dim)}
.rolebadge{font-size:10px; font-weight:bold; border:1px solid currentColor; border-radius:2px; padding:0 5px; margin-left:8px; vertical-align:middle}
.mine{color:var(--accent)}
.alt-row td{color:var(--dim)}
.alt-toggle{cursor:pointer; color:var(--dim); font-size:11px; user-select:none; margin-right:4px}
.alt-toggle:hover{color:var(--accent)}
#admin-search{min-width:280px; flex:0 1 320px}
.del-user{color:var(--red); border-color:var(--red); padding:0 8px; margin-left:8px; font-size:11px; font-weight:bold}
.del-user:hover{background:rgba(240,64,64,.18); color:var(--red)}
.grp-main{cursor:pointer}
.grp-main .caret{display:inline-block; width:14px; color:var(--dim)}
ul.chars-list{margin:8px 0 0; padding:0}
.chars-list li{list-style:none; display:flex; align-items:center; gap:8px; padding:6px 2px; border-bottom:1px solid var(--border)}
.chars-list .cname{color:var(--text)}
.chars-list .sel{width:16px; height:16px; accent-color:var(--accent)}
.chars-list .mv{padding:2px 8px; font-size:12px; min-width:30px}
.chars-list .mv:disabled{opacity:.35; cursor:default}
.chars-list .del{background:transparent; border:1px solid var(--border); color:var(--dim); border-radius:3px; padding:2px 8px; font-size:12px}
.chars-list .del:hover{color:var(--red); border-color:var(--red)}
.tag{font-size:10px; font-weight:bold; padding:1px 6px; border:1px solid var(--border-lt); border-radius:2px; margin-right:8px; color:var(--dim)}
.tag.main{color:var(--accent); border-color:var(--accent)}
.status{color:var(--dim); font-size:12px; min-height:18px}
a{color:var(--accent)}
