/* Aerteon müşteri paneli – sitenin renkleri ve yazı tipiyle uyumlu koyu tema */
:root {
  --bg: #01071A;
  --bg-2: #060d26;
  --card: #12162e;
  --card-2: #1C1F37;
  --line: rgba(213, 223, 255, 0.12);
  --text: #ECECEC;
  --muted: #A5A5A5;
  --blue: #008AFC;
  --blue-2: #119CFF;
  --cyan: #97F8F4;
  --grad: linear-gradient(117deg, #008AFC 0%, #97F8F4 100%);
  --ok: #3ddc84;
  --warn: #F58300;
  --err: #ff5d6c;
  --radius: 14px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 100% -10%, rgba(0, 138, 252, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(151, 248, 244, 0.08), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -0.3px; }
h1 { font-size: 26px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lead { margin: 4px 0 24px; }

/* Düğmeler ve formlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 10px; padding: 11px 20px;
  background: var(--grad); color: #01071A; font: 700 14px var(--font);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 138, 252, 0.3); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue-2); box-shadow: none; }
.btn-danger { color: var(--err); }
.btn-danger:hover { border-color: var(--err); }

input, select, textarea {
  width: 100%; font: 400 15px var(--font); color: var(--text);
  background: rgba(1, 7, 26, 0.6); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; outline: none; transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(17, 156, 255, 0.15); }
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
option { background: var(--card-2); }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.inline { display: inline; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select { width: auto; min-width: 150px; }
.inline-form input { flex: 1; min-width: 160px; }
.form-narrow { max-width: 620px; }
.link-sm { font-size: 14px; text-align: center; }

.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; border: 1px solid; }
.alert p { margin: 0 0 8px; }
.alert-ok { background: rgba(61, 220, 132, 0.08); border-color: rgba(61, 220, 132, 0.35); color: #b8f5d3; }
.alert-err { background: rgba(255, 93, 108, 0.08); border-color: rgba(255, 93, 108, 0.4); color: #ffc2c8; }
.alert-info { background: rgba(17, 156, 255, 0.08); border-color: rgba(17, 156, 255, 0.35); color: #cfe6ff; }
.copy { display: flex; gap: 8px; }
.copy input { font-size: 13px; }

/* Giriş sayfaları */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; gap: 18px; }
.auth-card {
  width: 100%; max-width: 440px; padding: 36px 32px;
  background: linear-gradient(180deg, rgba(28, 31, 55, 0.92), rgba(18, 22, 46, 0.92));
  border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.auth-card h1 { font-size: 24px; margin: 22px 0 6px; }
.auth-card > p.muted { margin: 0 0 22px; font-size: 14px; }
.auth-logo { display: block; height: auto; width: 170px; }
.auth-foot { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.auth-foot a { color: var(--muted); }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a { padding: 3px 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang a:hover { text-decoration: none; color: var(--text); }
.lang a[aria-current] { background: var(--card-2); color: var(--text); }

/* Panel düzeni */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 260px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 28px; padding: 26px 18px;
  background: rgba(6, 13, 38, 0.85); border-right: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; gap: 6px; padding: 0 10px; }
.brand img { width: 140px; height: auto; }
.brand span { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.brand:hover { text-decoration: none; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.nav a:hover { text-decoration: none; color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.on { color: var(--text); background: linear-gradient(90deg, rgba(0, 138, 252, 0.22), rgba(151, 248, 244, 0.06)); box-shadow: inset 3px 0 0 var(--blue); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 10px; }
.who { display: flex; flex-direction: column; font-size: 14px; }
.who span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; min-width: 0; padding: 34px 40px 60px; max-width: 1200px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.top-actions { display: flex; gap: 10px; }

.card { background: rgba(28, 31, 55, 0.7); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card + .card { margin-top: 18px; }
.card h2 { margin-bottom: 4px; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card-head time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.section { margin-top: 34px; }
.section > h2, .section-head { margin-bottom: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-head a { font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.grid2 .card + .card { margin-top: 0; }
.list { display: flex; flex-direction: column; gap: 14px; }
.ann p { margin: 8px 0 0; color: #d5d8e4; }
.ann form { margin-top: 12px; }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: rgba(28, 31, 55, 0.7); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; }
.stat strong { font-size: 32px; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Tablolar */
.table-wrap { background: rgba(28, 31, 55, 0.7); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.dim td { opacity: .55; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid; }
.b-active, .b-answered { color: var(--ok); border-color: rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .08); }
.b-setup { color: var(--warn); border-color: rgba(245, 131, 0, .45); background: rgba(245, 131, 0, .08); }
.b-planned, .b-open { color: var(--blue-2); border-color: rgba(17, 156, 255, .45); background: rgba(17, 156, 255, .08); }
.b-paused, .b-closed { color: var(--muted); border-color: var(--line); background: rgba(255, 255, 255, .03); }
.b-cancelled { color: var(--err); border-color: rgba(255, 93, 108, .45); background: rgba(255, 93, 108, .08); }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 13.5px; font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.on { background: var(--card-2); color: var(--text); border-color: var(--blue); }

/* Talep yazışması */
.meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; font-size: 14px; }
.thread { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.msg { border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); max-width: 860px; }
.msg-customer { background: rgba(28, 31, 55, 0.7); }
.msg-staff { background: linear-gradient(135deg, rgba(0, 138, 252, 0.14), rgba(151, 248, 244, 0.05)); border-color: rgba(17, 156, 255, 0.35); margin-left: auto; }
.msg-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 6px; flex-wrap: wrap; }
.msg-head time { color: var(--muted); }
.msg-body { white-space: normal; overflow-wrap: anywhere; }
.add-service { margin-top: 14px; }

/* Mobil */
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .side { position: static; width: 100%; height: auto; padding: 16px; gap: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { flex-direction: row; align-items: center; justify-content: space-between; padding: 0; }
  .brand img { width: 120px; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .nav a { white-space: nowrap; padding: 8px 12px; font-size: 13.5px; }
  .nav a.on { box-shadow: inset 0 -2px 0 var(--blue); }
  .side-foot { flex-direction: row; align-items: center; justify-content: space-between; padding: 0; flex-wrap: wrap; }
  .who { display: none; }
  .main { padding: 22px 16px 48px; }
  h1 { font-size: 22px; }
  .grid2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 14px 18px; }
  .stat strong { font-size: 26px; order: 2; }
  .msg-staff { margin-left: 0; }
}
@media (max-width: 640px) {
  .table-wrap { background: none; border: 0; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { background: rgba(28, 31, 55, 0.7); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; }
  td { border: 0; padding: 8px 16px; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; text-align: left; flex-shrink: 0; }
  td:not([data-label])::before { content: none; }
  td[colspan] { display: block; text-align: left; }
  td[colspan]::before { display: block; margin-bottom: 6px; }
  .inline-form select, .inline-form input { width: 100%; flex: 1 1 100%; }
  .auth-card { padding: 28px 22px; }
}

/* Teklif talepleri */
.b-new { color: var(--blue-2); border-color: rgba(17, 156, 255, .45); background: rgba(17, 156, 255, .08); }
.b-contacted { color: #f5b544; border-color: rgba(245, 181, 68, .45); background: rgba(245, 181, 68, .08); }
.b-won { color: #34d399; border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .08); }
.b-lost { color: #9aa4b5; border-color: rgba(154, 164, 181, .35); background: rgba(154, 164, 181, .06); }
.kv-list { display: grid; gap: 12px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: baseline; }
.kv > span { color: var(--muted, #9aa4b5); font-size: 13px; }
.kv > div { overflow-wrap: anywhere; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; gap: 2px; } }
