/* SkyBase Cloud · masaüstü uygulamayla aynı görünüm dili (koyu tema, mavi → turkuaz marka rengi) */
:root {
  --bg: #0a1020; --surface: #0d1527; --card: #121c32; --card2: #17233e; --elevated: #101a2f; --input: #0c1424;
  --line: #1f2c47; --line2: #2d3d60;
  --text: #e8eef8; --muted: #9aa9c4; --faint: #66758f;
  --blue: #1e7bf2; --blue2: #3b8ef6; --teal: #14b8a6; --green: #22c55e; --amber: #f59e0b; --red: #ef4444; --sky: #38bdf8;
  --brand: linear-gradient(135deg, #0f6fea, #13b3a4);
  --brand-soft: linear-gradient(135deg, #0f6fea30, #13b3a420);
  --hero: linear-gradient(90deg, #0f6fea1a, #13b3a405);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-size: 13.5px; }
a { color: var(--sky); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
h1 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; font-size: 30px; margin: 0 0 4px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 16.5px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 600; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
.boot { padding: 80px; text-align: center; color: var(--muted); }
.hidden { display: none !important; }
i.fa-solid, i.fa-brands { flex: none; }
.navitem i { width: 20px; text-align: center; font-size: 15px; }
button i.bi { margin-right: 7px; font-size: .92em; opacity: .9; }
button.sm i.bi { margin-right: 5px; font-size: .88em; }
.tabs a i { margin-right: 8px; font-size: .95em; opacity: .85; }
.faint a i, a i.fa-arrow-left { margin-right: 6px; }
.stat { position: relative; }
.stat .static { position: absolute; right: 18px; top: 18px; font-size: 22px; opacity: .22; }
.stat.ok .static { color: var(--green); opacity: .5; } .stat.warn .static { color: var(--amber); opacity: .6; } .stat.bad .static { color: var(--red); opacity: .6; }

/* İşletim sistemi simgesi */
.osbox { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 16px; flex: none; background: #ffffff12; color: var(--muted); }
.osbox.big { width: 52px; height: 52px; border-radius: 14px; font-size: 26px; }
.osbox.win { background: #0f6fea26; color: #4aa3ff; }
.osbox.linux { background: #f59e0b24; color: #fbbf24; }
.osbox.mac { background: #e8eef824; color: #e8eef8; }
.titlerow { display: flex; align-items: center; gap: 16px; }
.osline { display: flex; align-items: center; gap: 10px; }
a.card.pc { display: flex; gap: 16px; align-items: flex-start; color: inherit; text-decoration: none; }
.pcbody { flex: 1; min-width: 0; }

/* ===== Düzen: sol kenar menü + içerik (masaüstü ana pencere gibi) ===== */
.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 14px 16px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 26px; color: var(--text); text-decoration: none !important; }
.brand img { width: 40px; height: 40px; }
.brand b { display: block; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: 19px; font-weight: 700; line-height: 1.1; }
.brand small { display: block; font-size: 10px; font-weight: 700; color: var(--teal); letter-spacing: .05em; margin-top: 1px; }
.navsec { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--faint); margin: 22px 0 8px 16px; text-transform: uppercase; }
.navsec:first-child { margin-top: 0; }
.navitem { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px; margin: 2px 0; border-radius: 10px; color: var(--muted); font-size: 13.5px; font-weight: 500; text-decoration: none !important; }
.navitem:hover { background: #ffffff0f; color: var(--text); }
.navitem.active { background: var(--brand-soft); color: var(--text); font-weight: 600; }
.navitem.active::before { content: ""; position: absolute; left: 0; top: 12px; width: 3px; height: 18px; border-radius: 2px; background: var(--brand); }
.side-nav { flex: 1; }
.sidecard { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.sidecard .who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; word-break: break-all; }
.sidecard .row2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; margin-top: 8px; }
.sidecard .bar { margin: 10px 0 6px; }
.sidecard button { width: 100%; margin-top: 12px; }
.main { position: relative; min-width: 0; }
.main::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 260px; background: var(--hero); pointer-events: none; }
.container { position: relative; max-width: 1320px; margin: 0 auto; padding: 30px 40px 60px; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .container { padding: 20px 16px 40px; } }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 6px; }
  .brand { padding: 0 8px 0 0; } .navsec { display: none; } .side-nav { display: flex; flex: 1; flex-wrap: wrap; } .navitem { height: 38px; padding: 0 12px; }
  .sidecard { display: none; }
}

/* Üyelik uyarı şeridi (yalnızca etkin değilse) */
.membership.bad { position: relative; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 12px 40px; background: #3a1a22; border-bottom: 1px solid #6b2a35; }

/* ===== Kartlar ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card.flush { padding: 0; overflow: hidden; }
.card h2 { display: flex; align-items: center; justify-content: space-between; }
a.card:hover { background: var(--card2); border-color: var(--line2); text-decoration: none; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .n { font-size: 34px; font-weight: 650; line-height: 1.1; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; }
.stat .l { color: var(--muted); font-size: 12.5px; }
.stat.ok .n { color: var(--green); } .stat.warn .n { color: var(--amber); } .stat.bad .n { color: var(--red); } .stat.info .n { color: var(--sky); }
.bar { height: 6px; border-radius: 4px; background: #ffffff14; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.bar.low > i { background: linear-gradient(90deg, var(--amber), var(--red)); }

/* ===== Tablo ===== */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--faint); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid #18243c; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover, tbody tr:hover td { background: #ffffff06; }
td.num, th.num { text-align: right; }
.empty { padding: 36px; text-align: center; color: var(--muted); }

/* ===== Rozet ===== */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #ffffff12; color: var(--muted); white-space: nowrap; }
.chip.Success, .chip.ok, .chip.Done { background: #22c55e22; color: var(--green); }
.chip.Warning, .chip.warn, .chip.stale { background: #f59e0b22; color: var(--amber); }
.chip.Failed, .chip.bad, .chip.failed, .chip.offline { background: #ef444422; color: var(--red); }
.chip.Running, .chip.info, .chip.Delivered, .chip.Pending { background: #38bdf822; color: var(--sky); }
.chip.Cancelled, .chip.Expired { background: #ffffff12; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--faint); }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px #22c55e26; animation: pulse 2.4s ease-out infinite; } .dot.off { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #22c55e66; } 100% { box-shadow: 0 0 0 8px #22c55e00; } }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: #ffffff14; color: var(--muted); }

/* ===== Form ===== */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; font-weight: 600; }
label.f > small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 5px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], select, textarea {
  width: 100%; background: var(--input); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #1e7bf230; }
textarea { min-height: 84px; resize: vertical; }
input[type=checkbox] { accent-color: var(--blue); width: 16px; height: 16px; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.formgrid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .formgrid { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 6px 0 14px; padding: 12px 14px 4px; }
legend { color: var(--faint); font-size: 11px; font-weight: 700; padding: 0 6px; text-transform: uppercase; letter-spacing: .06em; }

/* ===== Düğme ===== */
button { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); padding: 8px 16px; font-weight: 600; transition: background .15s, filter .15s; }
button:hover { background: #1f2f50; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--brand); border: 0; color: #fff; padding: 9px 18px; }
button.primary:hover { filter: brightness(1.12); }
button.danger { color: var(--red); border-color: #6b2a35; background: transparent; }
button.danger:hover { background: #3a1a22; }
button.ghost { background: transparent; border-color: transparent; color: var(--sky); }
button.sm { padding: 5px 11px; font-size: 12.5px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ===== Sekmeler (masaüstü Ayarlar sekmeleri gibi) ===== */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 16px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; font-size: 13.5px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-color: var(--blue); font-weight: 600; }

/* ===== Modal ve bildirim ===== */
.overlay { position: fixed; inset: 0; background: #050a14b3; z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 14px; overflow-y: auto; }
.modal { background: var(--card); border: 1px solid var(--line2); border-radius: 16px; width: 100%; max-width: 560px; box-shadow: 0 24px 60px #000a; }
.modal.wide { max-width: 860px; }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--hero); border-radius: 16px 16px 0 0; }
.modal header h2 { margin: 0; }
.modal .body { padding: 20px 22px; max-height: 70vh; overflow-y: auto; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 80; max-width: 420px; }
.toast { background: var(--card2); border: 1px solid var(--line2); border-left: 4px solid var(--blue); padding: 12px 16px; border-radius: 12px; box-shadow: 0 8px 24px #0008; }
.toast.ok { border-left-color: var(--green); } .toast.err { border-left-color: var(--red); } .toast.warn { border-left-color: var(--amber); }

/* ===== Giriş (masaüstü açılış ekranı gibi) ===== */
.authwrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 380px at 50% 0, #0f6fea26, transparent), var(--bg); }
.authcard { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 24px 64px #000a; position: relative; overflow: hidden; }
.authcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; background: var(--hero); pointer-events: none; }
.authcard > * { position: relative; }
.authcard .logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 22px; }
.authcard .logo img { width: 72px; }
.authcard .logo h1 { margin-top: 12px; font-size: 24px; }
.err { color: var(--red); margin: 8px 0; min-height: 20px; }
.qr { background: #fff; border-radius: 12px; padding: 10px; width: 230px; margin: 12px auto; }
.qr svg { width: 100%; height: auto; display: block; }
pre.log { background: #080f1e; border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 320px; overflow: auto; font-size: 12px; white-space: pre-wrap; word-break: break-word; margin: 0; font-family: "Cascadia Mono", Consolas, monospace; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 9px 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.issue { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid #18243c; }
.issue:last-child { border-bottom: 0; }
