/* JundaSoft Yönetim Paneli — Modern SaaS Tasarım Sistemi (Obsidian / Violet #9040FF) */
@import url('/css/junda-theme.css');

:root {
  --bg: #0f0f13;
  --panel: #17171d;
  --panel-2: #202028;
  --panel-3: #282833;
  --line: #2c2c38;
  --line-strong: #3a3a4a;
  --text: #F2F2F7;
  --muted: #A2A2B4;
  --dim: #6E6E82;
  --accent: #9040FF;
  --accent-hover: #7c2df0;
  --accent-soft: rgba(144, 64, 255, 0.15);
  --accent-border: rgba(144, 64, 255, 0.34);
  --green: #34D399;
  --green-soft: rgba(52, 211, 153, 0.14);
  --amber: #FBBF24;
  --amber-soft: rgba(251, 191, 36, 0.14);
  --rose: #FB7185;
  --rose-soft: rgba(251, 113, 133, 0.14);
  --cyan: #38BDF8;
  --r: 12px;
  --r-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html.light {
  --bg: #F3F4F8;
  --panel: #FFFFFF;
  --panel-2: #F6F7FB;
  --panel-3: #ECEEF5;
  --line: #E2E5EF;
  --line-strong: #CBD0E0;
  --text: #121317;
  --muted: #454854;
  --dim: #6E7385;
  --accent: #7C3AED;
  --accent-hover: #6D28D9;
  --accent-soft: rgba(124, 58, 237, 0.10);
  --accent-border: rgba(124, 58, 237, 0.28);
  --shadow-sm: 0 2px 6px rgba(18, 19, 23, 0.04);
  --shadow-md: 0 8px 24px rgba(18, 19, 23, 0.08);
}
html.light[data-light-tone="amethyst"] {
  --bg: #F4F1FB;
  --panel: #FFFFFF;
  --panel-2: #F8F6FD;
  --line: #E3DDF2;
}
html.light[data-light-tone="sandstone"] {
  --bg: #F5F3EE;
  --panel: #FFFFFF;
  --panel-2: #F9F8F5;
  --line: #E5E1D8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 13.5px/1.5 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
.hidden { display: none !important; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-icon] svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Uygulama İkon Yardımcıları */
.mini-app-ico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.app-ico-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* Marka Başlığı */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 14px;
  border-bottom: 1px solid var(--line);
}
.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #141418;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt strong { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.brand-txt small { font-size: 11px; font-weight: 600; color: var(--dim); }

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 35px;
  padding: 0 13px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 12.5px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  transition: background .15s, border-color .15s, transform .1s, opacity .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--panel-3); border-color: var(--line-strong); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.btn.danger { color: var(--rose); border-color: rgba(251, 113, 133, 0.28); background: var(--rose-soft); }
.btn.danger:hover { background: rgba(251, 113, 133, 0.22); border-color: rgba(251, 113, 133, 0.45); }
.btn.sm { height: 29px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn.active-toggle { background: var(--accent-soft); border-color: var(--accent-border); color: #d5b8ff; }
.btn:disabled { opacity: .5; cursor: default; }
.link { color: var(--accent); font-size: 12.5px; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Giriş Ekranı */
.login {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(60% 50% at 50% 0%, rgba(144, 64, 255, 0.16), transparent), var(--bg);
  z-index: 100;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.login-logo-wrap { display: flex; justify-content: center; margin-bottom: 4px; }
.login-logo-img { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; border: 1px solid var(--line); background: #141418; padding: 4px; }
.login-brand-title { font-size: 30px; font-weight: 900; letter-spacing: -1px; color: var(--text); line-height: 1.1; }
.login-brand-title span { color: var(--accent); }
.login-brand-sub { color: var(--dim); font-size: 10.5px; letter-spacing: 2.5px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.login-key-inp { text-align: center; font-weight: 600; letter-spacing: 1px; height: 40px; }
.login-submit-btn { height: 40px; font-size: 13.5px; }
.login-quick-links { display: flex; gap: 6px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.login-quick-links a { flex: 1; }
.login-card .err { color: var(--rose); font-size: 12.5px; min-height: 18px; font-weight: 500; }

input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 11px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; }

/* Ana Yerleşim (Sidebar + Main) */
.layout { display: grid; grid-template-columns: 248px 1fr; height: 100vh; }
.side {
  background: var(--panel);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 12px;
  overflow-y: auto;
}
.side nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-sec-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 12px 10px 4px;
}
.nav-sec-lbl:first-child { padding-top: 2px; }
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8.5px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  text-align: left;
  transition: background .14s, color .14s;
}
.nav .ico { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-app-img { width: 19px; height: 19px; border-radius: 5px; object-fit: cover; display: block; }
.nav:hover { background: var(--panel-2); color: var(--text); }
.nav.active {
  background: var(--accent-soft);
  color: #d8bfff;
  font-weight: 600;
  border: 1px solid var(--accent-border);
}
.nav .count {
  margin-left: auto;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Hızlı Erişim Harici Uygulamalar */
.nav-ext-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.nav-ext-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.nav-ext-card img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.nav-ext-card span { flex: 1; }
.nav-ext-card i { font-size: 11px; opacity: 0.45; }
.nav-ext-card:hover {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
}
.nav-ext-card:hover i { opacity: 0.9; color: var(--accent); }

.side-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px 2px;
  border-top: 1px solid var(--line);
}
.live { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.live.on i { background: var(--green); box-shadow: 0 0 8px var(--green); }
.live b { font-weight: 600; }

/* Üst Başlık (Header) */
.main { overflow-y: auto; display: flex; flex-direction: column; min-width: 0; }
.head {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  background: rgba(15, 15, 19, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-title-wrap { display: flex; flex-direction: column; min-width: 0; }
.head h1 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.head-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); align-items: center; justify-content: center; }

.view { display: none; padding: 22px 26px 40px; max-width: 1600px; width: 100%; margin: 0 auto; }
.view.active { display: flex; flex-direction: column; gap: 16px; }

/* KPI İstatistik Kartları */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s;
}
.stat:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat span { color: var(--muted); font-size: 12px; font-weight: 600; }
.stat-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 13px;
}
.stat strong { display: block; font-size: 25px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.stat small { color: var(--dim); font-size: 11.5px; font-weight: 500; }
.stat.hl { border-color: rgba(251, 191, 36, 0.3); }
.stat.hl strong { color: var(--amber); }
.stat.hl .stat-ico { color: var(--amber); background: var(--amber-soft); border-color: rgba(251, 191, 36, 0.25); }

/* Ekosistem Hızlı Durum Şeridi */
.eco-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.eco-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
.eco-card:hover {
  background: var(--panel-2);
  border-color: var(--accent-border);
  transform: translateY(-1px);
}
.eco-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #141418;
  flex-shrink: 0;
}
.eco-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.eco-meta strong { font-size: 13.5px; font-weight: 700; color: var(--text); }
.eco-meta small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Paneller */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-head-bar {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.panel-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-head-title i { color: var(--accent); font-size: 14px; }
.panel-head h2 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.panel-toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box i {
  position: absolute;
  left: 11px;
  color: var(--dim);
  font-size: 12.5px;
  pointer-events: none;
}
.search-box input {
  padding-left: 32px;
  min-width: 280px;
  height: 34px;
  font-size: 12.5px;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-side { display: grid; grid-template-columns: 370px 1fr; gap: 16px; align-items: start; }

/* Liste Satırları (Genel Bakış) */
.rows { display: flex; flex-direction: column; }
.r {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  text-align: left;
  width: 100%;
  border-radius: 7px;
  transition: background .12s;
}
.r:first-child { border-top: 0; }
button.r:hover { background: var(--panel-2); }
.r .grow { flex: 1; min-width: 0; }
.r .t { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r .s { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.r .m { color: var(--dim); font-size: 11.5px; white-space: nowrap; font-weight: 500; }
.empty { color: var(--dim); text-align: center; padding: 28px 12px; font-size: 13px; }

/* Rozetler (Badges) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 21px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.b-open { background: var(--amber-soft); color: var(--amber); border-color: rgba(251, 191, 36, 0.28); }
.b-answered, .b-on { background: var(--green-soft); color: var(--green); border-color: rgba(52, 211, 153, 0.28); }
.b-closed { background: rgba(139, 147, 167, 0.12); color: var(--muted); }
.b-accent { background: var(--accent-soft); color: #d5b8ff; border-color: var(--accent-border); }

/* Pil Göstergesi */
.bat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.bat-high { color: var(--green); border-color: rgba(52, 211, 153, 0.28); background: var(--green-soft); }
.bat-mid { color: var(--amber); border-color: rgba(251, 191, 36, 0.28); background: var(--amber-soft); }
.bat-low { color: var(--rose); border-color: rgba(251, 113, 133, 0.28); background: var(--rose-soft); }

/* Formlar */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form small, .note { color: var(--dim); font-size: 12px; font-weight: 400; line-height: 1.4; }
.file input { padding: 7px; font-size: 12px; }

/* Tablolar */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--dim);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.01);
}
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--dim); font-size: 11.5px; margin-top: 2px; }
td.mono, .mono { font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); margin-right: 6px; vertical-align: middle; }
.dot.on { background: var(--green); box-shadow: 0 0 6px var(--green); }

/* ================= CİHAZLAR & ÇAPRAZ EŞLEME (BENTO TREE) ================= */
.dev-main-cell { display: flex; align-items: center; gap: 10px; }
.dev-main-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #141418;
  flex-shrink: 0;
}
.dev-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: #d5b8ff;
  border: 1px solid var(--accent-border);
  font-weight: 700;
  margin-left: 6px;
}

/* Cihaz Satırı Çapraz Eşleme Özet Hapları */
.cross-summary-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cs-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cs-pill:hover { border-color: var(--accent-border); background: var(--panel-3); }
.cs-pill img { width: 14px; height: 14px; border-radius: 3px; object-fit: cover; }
.cs-pill.empty-pill { opacity: 0.55; color: var(--dim); }

/* Cihaz Detay Satırı (Bento Grid) */
.dev-cross-row td {
  background: rgba(12, 14, 20, 0.65);
  padding: 14px 18px 18px 24px;
  border-bottom: 1px solid var(--line-strong);
}
.dev-cross-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dev-cat-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dev-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #d5b8ff;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.dev-cat-head-left { display: flex; align-items: center; gap: 6px; }
.dev-cat-items { display: flex; flex-direction: column; gap: 6px; }
.dev-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
}
.dev-chip-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dev-chip-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: #d5b8ff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}
.dev-chip-meta { display: flex; flex-direction: column; min-width: 0; }
.dev-chip-meta b { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev-chip-meta small { font-size: 11px; color: var(--muted); font-family: ui-monospace, 'JetBrains Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ================= KULLANICILAR & MAİLLER GÖRÜNÜMÜ ================= */
.user-cell { display: flex; align-items: center; gap: 11px; }
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.user-info { display: flex; flex-direction: column; min-width: 0; }
.user-info-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.user-dev-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  max-width: 290px;
}
.user-dev-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.user-dev-select {
  padding: 5px 8px;
  font-size: 11.5px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  width: 100%;
}

.user-mail-list { display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.user-mail-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.user-mail-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mail-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.mail-meta { display: flex; flex-direction: column; min-width: 0; }
.mail-meta-top { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; }
.mail-counters {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  margin-top: 1px;
}

/* ================= UYGULAMA MAĞAZASI SATIRLARI ================= */
.app-row-cell { display: flex; align-items: center; gap: 11px; }
.app-row-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #141418;
  flex-shrink: 0;
}

/* ================= DESTEK TALEPLERİ (INBOX) ================= */
.inbox {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: calc(100vh - 125px);
  min-height: 500px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.inbox-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: 6px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tab b { font-weight: 700; color: var(--dim); margin-left: 3px; }
.tab.active { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.tlist { overflow-y: auto; flex: 1; }
.ti { display: block; width: 100%; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); transition: background .12s; }
.ti:hover { background: var(--panel-2); }
.ti.active { background: var(--accent-soft); }
.ti-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); }
.ti-top .when { margin-left: auto; }
.ti-subj { font-weight: 600; margin: 3px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-last { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti.unread .ti-subj::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }

.inbox-detail { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.placeholder { margin: auto; text-align: center; color: var(--dim); padding: 24px; }
.placeholder [data-icon] svg { width: 38px; height: 38px; stroke-width: 1.5; }
.placeholder p { margin-top: 8px; font-size: 13px; }
.d-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
.d-head .grow { flex: 1; min-width: 0; }
.d-head h2 { font-size: 16px; font-weight: 700; }
.d-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 5px; font-size: 12px; color: var(--muted); }
.d-actions { display: flex; gap: 6px; }
.d-thread { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.45; }
.msg.user { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.admin { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg time { display: block; font-size: 11px; opacity: .68; margin-top: 4px; }
.d-reply { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.d-reply textarea { flex: 1; min-height: 44px; max-height: 160px; resize: none; }
.d-closed { border-top: 1px solid var(--line); padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }
.back-list { display: none; }

/* ================= VERİTABANI YÖNETİCİSİ (phpMyAdmin Stili) ================= */
.db-shell { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; min-height: calc(100vh - 125px); }
.db-sidebar { display: flex; flex-direction: column; gap: 10px; padding: 14px; max-height: calc(100vh - 125px); overflow: hidden; }
.db-meta { display: flex; flex-direction: column; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.db-meta strong { font-size: 13.5px; color: #d5b8ff; }
.db-meta small { font-size: 11.5px; color: var(--muted); }
.db-maint-box {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.db-maint-title { font-size: 11px; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 5px; }
.db-maint-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.db-maint-btns .btn-full { grid-column: 1 / -1; }

.db-filter-inp { padding: 7px 10px; font-size: 12.5px; }
.db-table-list { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; padding-right: 2px; }
.db-group-lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); padding: 10px 6px 4px; }
.db-tbtn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7.5px 10px; border-radius: 7px; text-align: left; font-size: 12.5px; color: var(--muted); transition: background .12s, color .12s; }
.db-tbtn:hover { background: var(--panel-2); color: var(--text); }
.db-tbtn.active { background: var(--accent-soft); color: #d5b8ff; font-weight: 600; border: 1px solid var(--accent-border); }
.db-tbtn .tname { font-family: ui-monospace, 'JetBrains Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-tbtn .tcount { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--panel-2); color: var(--dim); flex-shrink: 0; }
.db-tbtn.active .tcount { background: rgba(144, 64, 255, 0.28); color: #fff; }

.db-content { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: calc(100vh - 125px); }
.db-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.db-active-title { display: flex; align-items: center; gap: 10px; }
.db-active-title h2 { font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 16px; font-weight: 700; }
.db-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.db-tab { padding: 7px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line); transition: .15s; }
.db-tab:hover { color: var(--text); border-color: var(--line-strong); }
.db-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.db-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.db-toolbar-left, .db-toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.db-search-inp { width: 260px; padding: 7px 11px; font-size: 12.5px; }
.db-limit-sel { width: auto; padding: 6px 10px; font-size: 12.5px; }

.db-grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); max-height: calc(100vh - 280px); }
.db-grid th { position: sticky; top: 0; background: var(--panel-2); z-index: 2; cursor: pointer; user-select: none; padding: 9px 11px; font-family: ui-monospace, 'JetBrains Mono', monospace; text-transform: none; font-size: 12px; color: var(--text); }
.db-grid th:hover { background: var(--panel-3); }
.db-grid th .pk-tag { color: var(--amber); font-size: 10px; margin-right: 4px; }
.db-grid th .col-type { display: block; font-size: 10px; color: var(--dim); font-weight: 400; }
.db-grid td { padding: 8px 11px; font-size: 12.5px; font-family: ui-monospace, 'JetBrains Mono', monospace; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.db-grid tr:hover td { background: rgba(144, 64, 255, 0.05); }
.db-grid td.null-val { color: var(--dim); font-style: italic; }
.db-grid td.act-col { max-width: none; cursor: default; width: 1%; white-space: nowrap; }

.db-sql-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.db-sql-box { font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 13px; min-height: 130px; background: #090b10; color: #a5b4fc; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }

/* Modal */
.db-modal-backdrop { position: fixed; inset: 0; background: rgba(5, 7, 11, 0.78); backdrop-filter: blur(4px); z-index: 150; display: grid; place-items: center; padding: 20px; }
.db-modal-card { width: 100%; max-width: 680px; max-height: 88vh; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-md); }
.db-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.db-modal-head h3 { font-size: 15px; font-weight: 700; font-family: ui-monospace, 'JetBrains Mono', monospace; }
.db-modal-body { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.db-field-grid { display: grid; grid-template-columns: 180px 1fr; gap: 10px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.db-field-lbl { font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 12px; color: var(--text); word-break: break-all; }
.db-field-lbl small { display: block; color: var(--dim); font-size: 10.5px; margin-top: 2px; }
.db-edit-form { display: flex; flex-direction: column; gap: 12px; }
.db-field { display: flex; flex-direction: column; gap: 5px; }
.db-field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.db-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* Toast Bildirim */
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: .2s;
  pointer-events: none;
  z-index: 200;
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: none; }
.toast.err { border-color: rgba(251, 113, 133, 0.45); color: var(--rose); }

/* ================= AÇIK TEMA (html.light) UYUMLULUĞU ================= */
html.light .logo,
html.light .eco-ico,
html.light .dev-main-ico,
html.light .app-row-ico {
  background: #222226;
}
html.light .nav.active,
html.light .db-tbtn.active,
html.light .dev-cat-head,
html.light .dev-chip-ico,
html.light .dev-hub-badge,
html.light .db-meta strong,
html.light .b-accent,
html.light .btn.active-toggle {
  color: var(--accent);
}
html.light .head {
  background: rgba(243, 244, 248, 0.90);
  border-bottom-color: var(--line);
}
html.light .db-sql-box {
  background: var(--panel-2);
  color: #4c1d95;
}
html.light .dev-cross-row td {
  background: var(--panel-2);
}

/* ================= RESPONSIVE KIRILIMLAR ================= */
@media (max-width: 1150px) {
  .eco-strip { grid-template-columns: repeat(2, 1fr); }
  .dev-cross-wrap { grid-template-columns: 1fr; }
  .grid-side { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .db-shell { grid-template-columns: 1fr; }
  .db-sidebar { max-height: 280px; }
  .db-field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform .2s;
  }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
  .menu-btn { display: inline-flex; }
  .head, .view { padding-left: 16px; padding-right: 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 115px); }
  .inbox.detail-open .inbox-list { display: none; }
  .inbox:not(.detail-open) .inbox-detail { display: none; }
  .back-list { display: inline-flex; }
  .msg { max-width: 88%; }
  .search-box input { min-width: 200px; width: 100%; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .eco-strip { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .db-search-inp { width: 100%; }
  .dev-cross-row td { padding: 10px 12px; }
  .head-sub { display: none; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}
