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

:root {
  --cyan:    #00C8D7;
  --blue:    #0080C0;
  --navy:    #003D6B;
  --navy-d:  #002a4d;
  --gray:    #A0B0B8;
  --bg:      #f0f5f8;
  --surface: #ffffff;
  --border:  #d0dce5;
  --text:    #1a2733;
  --muted:   #6b7f8c;
  --sidebar: 220px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
}

/* ─── Sol Sidebar ─── */
.sidebar {
  width: var(--sidebar);
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
}

.sidebar-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand .logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.sidebar-brand .logo-icon svg {
  width: 18px; height: 18px; color: #fff;
}

.sidebar-brand h1 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.sidebar-brand h1 span { color: var(--cyan); }

.sidebar-brand p {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── Nav ─── */
nav {
  flex: 1;
  padding: 12px 0;
}

.nav-section {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 20px 6px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

nav a svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

nav a.active {
  color: #fff;
  background: rgba(0, 200, 215, 0.12);
  border-left-color: var(--cyan);
}

nav a.active svg { opacity: 1; }

/* ─── Kayıtlar grup başlığı ve alt linkler ─── */
.nav-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  border-left: 3px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s, background 0.15s;
}

.nav-group-label:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-group-label > svg:first-child {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-group-arrow {
  width: 14px; height: 14px;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.45;
  transition: transform 0.2s ease;
}

.nav-group-label.open .nav-group-arrow {
  transform: rotate(180deg);
}

.nav-sub-group {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.2s ease;
}

.nav-sub-group.open {
  max-height: 200px;
}

nav a.nav-sub {
  padding-left: 46px;
  font-size: 12px;
}

/* ─── Kullanıcı (sidebar alt) ─── */
.sidebar-user {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-user .info {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.sidebar-user .info strong {
  display: block;
  font-size: 13px;
  color: #fff;
}

.sidebar-user a {
  font-size: 11px;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid rgba(0,200,215,0.35);
  border-radius: 5px;
  padding: 4px 10px;
  transition: background 0.15s;
}

.sidebar-user a:hover { background: rgba(0,200,215,0.1); }

/* ─── Ana İçerik ─── */
.main-wrap {
  margin-left: var(--sidebar);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 52px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .page-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.topbar .breadcrumb {
  font-size: 12px;
  color: var(--muted);
}

.content {
  flex: 1;
  padding: 28px;
}

#cybers-img {
  width: 140px;
  height: 64px;
}
/* ─── Manager bileşenleri ─── */
a { color: var(--blue); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 18px;
}
.card h2 {
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 14px;
  font-weight: 700;
}
.card .hint { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cyan);
  color: #003;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.07); }
.btn.secondary { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn.danger { background: #d34a4a; color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input[type=text], input[type=password], input[type=date], input[type=number],
input[type=email], textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 11px;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  font-family: inherit;
}
input[type=date] { padding: 10px 12px; font-size: 14px; }
input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }
input[type=date]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); }
textarea.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.5;
}
.field { margin-bottom: 18px; }

.checks { display: flex; flex-wrap: wrap; gap: 14px; }
.checks label {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500; color: var(--text); margin: 0;
  border: 1px solid var(--border); border-radius: 6px; padding: 8px 13px; cursor: pointer;
}
.checks input { width: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
tr:hover td { background: rgba(0,200,215,0.04); }

.badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 20px;
}
.badge.draft   { background: #eceff1; color: #607d8b; }
.badge.building{ background: #fff3cd; color: #8a6d00; }
.badge.built   { background: #d7f5e2; color: #1b7a44; }
.badge.failed  { background: #fbdada; color: #b22; }
.badge.posted  { background: #d6ecff; color: #0a5; color: #0064b0; }
.badge.send-running { background: #fff3cd; color: #8a6d00; }
.badge.send-done    { background: #d7f5e2; color: #1b7a44; }
.badge.send-error   { background: #fbdada; color: #b22; }

.pkg-row { display: flex; gap: 10px; margin-bottom: 8px; align-items: center; }
.pkg-row input { flex: 1; }
.icon-btn {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 6px;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--blue);
}
.icon-btn:hover { background: rgba(0,200,215,0.08); }
.icon-btn.rm { color: #c44; }

.log {
  background: #0d1b26; color: #cfe; border-radius: 8px; padding: 14px 16px;
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.5;
  white-space: pre-wrap; max-height: 460px; overflow: auto; min-height: 80px;
}
.msg { padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 12px; }
.msg.success { background: #d7f5e2; color: #1b7a44; }
.msg.info    { background: #d6ecff; color: #0064b0; }
.msg.warning { background: #fff3cd; color: #8a6d00; }
.msg.error   { background: #fbdada; color: #b22; }

.meta-grid { display: grid; grid-template-columns: 150px 1fr; gap: 8px 18px; font-size: 13px; }
.meta-grid dt { color: var(--muted); font-weight: 600; }
.dotted { font-family: ui-monospace, Menlo, monospace; color: var(--navy); }

.log .err  { color: #ff6b6b; font-weight: 600; }
.log .warn { color: #ffcf5c; }
.log .cmd  { color: #7fd4ff; }
