/* Atlas Bulut Santral — Shared design system */
:root {
  --bg: #07090c;
  --bg-1: #0b0e13;
  --bg-2: #11151c;
  --bg-3: #181d26;
  --card: #0f141b;
  --card-hover: #141a23;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f6f8;
  --text-dim: #a8b0bd;
  --text-mute: #6b7280;
  --brand: #7aa7d9;
  --brand-2: #2b4a6f;
  --brand-ink: #1e3a52;
  --accent: #6ee7ff;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.7), 0 8px 24px -8px rgba(0,0,0,0.5);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #07090c; }

/* Typography */
.h-display { font-size: clamp(48px, 7vw, 96px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; }
.h1 { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); font-weight: 500; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--text-dim); line-height: 1.5; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 32px; }

/* Top Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(7, 9, 12, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.brand-mark { width: 22px; height: 22px; color: var(--text); }
.brand-name { font-size: 15px; }
.brand-name span { color: var(--text-dim); font-weight: 400; }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--text-dim); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; color: var(--text-dim); }
.lang a { background: transparent; padding: 4px 10px; border-radius: 999px; color: inherit; cursor: pointer; font-size: 11px; font-weight: 500; }
.lang a.active { background: var(--text); color: var(--bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid transparent; cursor: pointer; transition: all .2s; white-space: nowrap; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--border-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-danger { background: rgba(248, 113, 113, 0.14); color: #fca5a5; border-color: rgba(248, 113, 113, 0.3); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.22); }
.btn-success { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.3); }
.btn-success:hover { background: rgba(52, 211, 153, 0.22); }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 999px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, background .2s, transform .2s; }
.card:hover { border-color: var(--border-strong); }
.card-lg { border-radius: var(--radius-lg); }
.card-pad { padding: 24px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; color: var(--text-mute); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-col h4 { color: var(--text); font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* Utility */
.grid-lines { background-image: linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 64px 64px; }
.glow { background: radial-gradient(ellipse at center, rgba(122, 167, 217, 0.18), transparent 60%); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; color: var(--text-dim); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.pill-green { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.pill-yellow { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
.pill-red { background: rgba(248, 113, 113, 0.12); color: #fca5a5; }
.pill-blue { background: rgba(122, 167, 217, 0.14); color: #a5c4e4; }
.pill-gray { background: rgba(255,255,255,0.06); color: var(--text-dim); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); padding: 11px 14px; border-radius: 10px; font-size: 14px;
  font-family: inherit; transition: border-color .15s, background .15s;
  outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); background: var(--bg-3); }
.textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.help { font-size: 12px; color: var(--text-mute); }
.error-text { font-size: 12px; color: var(--danger); }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; font-weight: 500; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table td { padding: 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }
.table tbody tr:hover td { background: var(--bg-2); color: var(--text); }
.table td strong { color: var(--text); font-weight: 500; }
.table tr:last-child td { border-bottom: 0; }

/* Panel layout */
.panel-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: var(--bg-1); border-right: 1px solid var(--border);
  padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 24px; }
.side-section { margin-top: 24px; }
.side-section-title { font-size: 11px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; padding: 0 10px 8px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; color: var(--text-dim); font-size: 13px;
  transition: all .15s; cursor: pointer;
}
.side-link:hover { background: var(--bg-2); color: var(--text); }
.side-link.active { background: var(--bg-3); color: var(--text); }
.side-link svg { width: 16px; height: 16px; opacity: .8; }

.panel-main { padding: 0; min-width: 0; }
.panel-header {
  height: 64px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; position: sticky; top: 0; z-index: 10;
  background: rgba(7,9,12,0.72); backdrop-filter: blur(20px);
}
.panel-title { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.panel-body { padding: 32px; max-width: 1240px; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; }
.stat-label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.stat-value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.stat-trend { font-size: 11px; color: var(--success); margin-top: 4px; }

/* Flash messages */
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; border: 1px solid transparent; }
.flash-success { background: rgba(52, 211, 153, 0.10); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.3); }
.flash-error   { background: rgba(248, 113, 113, 0.10); color: #fca5a5; border-color: rgba(248, 113, 113, 0.3); }
.flash-info    { background: rgba(122, 167, 217, 0.10); color: #a5c4e4; border-color: rgba(122, 167, 217, 0.3); }

/* Section helpers */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }

/* Responsive */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .panel-shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .container, .container-narrow { padding: 0 20px; }
}
