/* ===== BORSA TAKİP — ANA STİL ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bt-sidebar-w: 220px;
  --bt-blue:   #2563eb;
  --bt-green:  #16a34a;
  --bt-red:    #dc2626;
  --bt-amber:  #d97706;
  --bt-teal:   #0d9488;
  --bt-gray:   #6b7280;
  --bt-bg:     #f8fafc;
  --bt-surface:#ffffff;
  --bt-border: #e2e8f0;
  --bt-text:   #0f172a;
  --bt-muted:  #64748b;
  --bt-radius: 10px;
  --bt-shadow: 0 1px 3px rgba(0,0,0,.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  color: var(--bt-text);
  background: var(--bt-bg);
  line-height: 1.5;
}

/* ===== LAYOUT ===== */
.bt-layout { display: flex; min-height: 100vh; }

.bt-sidebar {
  width: var(--bt-sidebar-w);
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.bt-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid #1e293b;
}
.bt-logo-icon { font-size: 20px; }
.bt-logo-text { font-size: 15px; font-weight: 600; color: #f1f5f9; }

.bt-nav { list-style: none; padding: 10px 8px; flex: 1; }
.bt-nav li { margin: 2px 0; }
.bt-nav-spacer { flex: 1; min-height: 20px; }

.bt-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  transition: background .15s, color .15s;
}
.bt-nav-link:hover { background: #1e293b; color: #f1f5f9; }
.bt-nav-link.active { background: #1d4ed8; color: #fff; }

.bt-user {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #1e293b;
}
.bt-user-info { flex: 1; overflow: hidden; }
.bt-user-name { display: block; font-size: 12.5px; font-weight: 500; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-user-email { display: block; font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-user-role { display: inline-flex; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: #1e3a5f; color: #bfdbfe; font-size: 10px; font-weight: 700; width: fit-content; }
.bt-cikis-btn { background: none; border: none; color: #64748b; font-size: 16px; cursor: pointer; padding: 4px; border-radius: 6px; }
.bt-cikis-btn:hover { color: #ef4444; background: #1e293b; }

.bt-main { margin-left: var(--bt-sidebar-w); flex: 1; }
.bt-content { padding: 24px 28px; max-width: 1400px; }

/* ===== PAGE HEADER ===== */
.bt-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.bt-page-title { font-size: 20px; font-weight: 600; color: var(--bt-text); }
.bt-page-sub { font-size: 13px; color: var(--bt-muted); }

/* ===== CARDS ===== */
.bt-card {
  background: var(--bt-surface);
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius);
  box-shadow: var(--bt-shadow);
  overflow: hidden;
}
.bt-card.mt-3 { margin-top: 16px; }

.bt-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bt-border);
  background: #f8fafc;
}
.bt-card-title { font-size: 14px; font-weight: 600; color: var(--bt-text); }
.bt-card-body { padding: 16px 18px; }
.bt-card-body.p-0 { padding: 0; }

/* ===== STAT CARDS ===== */
.bt-card-grid { display: grid; gap: 14px; margin-bottom: 20px; }
.bt-card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.bt-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bt-card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.bt-stat-card {
  padding: 18px 20px;
  border-radius: var(--bt-radius);
  border-left: 4px solid;
  background: var(--bt-surface);
  box-shadow: var(--bt-shadow);
}
.bt-stat-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; opacity: .7; }
.bt-stat-value { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.bt-stat-sub { font-size: 11.5px; opacity: .6; }

.bt-stat-blue  { border-color: var(--bt-blue);  color: var(--bt-blue); }
.bt-stat-green { border-color: var(--bt-green); color: var(--bt-green); }
.bt-stat-red   { border-color: var(--bt-red);   color: var(--bt-red); }
.bt-stat-amber { border-color: var(--bt-amber); color: var(--bt-amber); }
.bt-stat-teal  { border-color: var(--bt-teal);  color: var(--bt-teal); }

/* ===== GRID 2-COL ===== */
.bt-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== TABLE ===== */
.bt-table { width: 100%; border-collapse: collapse; }
.bt-table th {
  padding: 10px 14px;
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--bt-muted);
  background: #f8fafc;
  border-bottom: 1px solid var(--bt-border);
  text-align: left;
}
.bt-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  color: var(--bt-text);
}
.bt-table tbody tr:last-child td { border-bottom: none; }
.bt-table-hover tbody tr:hover { background: #f8fafc; }
.bt-row-clickable { cursor: pointer; }
.text-end { text-align: right; }
.fw-500 { font-weight: 500; }

/* ===== BADGES ===== */
.bt-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}
.bt-badge-blue   { background: #dbeafe; color: #1d4ed8; }
.bt-badge-green  { background: #dcfce7; color: #15803d; }
.bt-badge-red    { background: #fee2e2; color: #dc2626; }
.bt-badge-amber  { background: #fef9c3; color: #b45309; }
.bt-badge-gray   { background: #f1f5f9; color: #475569; }

/* ===== COLOURS ===== */
.bt-text-green { color: var(--bt-green); }
.bt-text-red   { color: var(--bt-red); }
.bt-text-muted { color: var(--bt-muted); }

/* ===== FORMS ===== */
.bt-form-group { margin-bottom: 14px; }
.bt-form-group label { display: block; font-size: 12.5px; font-weight: 500; color: var(--bt-muted); margin-bottom: 5px; }
.bt-input {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--bt-border); border-radius: 8px;
  font-size: 14px; color: var(--bt-text); background: #fff;
  transition: border-color .15s;
  outline: none;
}
.bt-input:focus { border-color: var(--bt-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.bt-input:disabled { background: #f8fafc; color: var(--bt-muted); }
.bt-search { max-width: 280px; }
.bt-search-wrap { display: flex; gap: 10px; }

.bt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Toggle group (Al/Sat) */
.bt-toggle-group { display: flex; gap: 0; border: 1px solid var(--bt-border); border-radius: 8px; overflow: hidden; }
.bt-toggle {
  flex: 1; padding: 9px; font-size: 13px; font-weight: 600;
  background: #f8fafc; border: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.active-buy  { background: #16a34a !important; color: #fff !important; }
.active-sell { background: #dc2626 !important; color: #fff !important; }

/* ===== BUTTONS ===== */
.bt-btn {
  padding: 9px 18px; border-radius: 8px; border: none;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: opacity .15s;
}
.bt-btn:disabled { opacity: .5; cursor: not-allowed; }
.bt-btn-primary { background: var(--bt-blue); color: #fff; }
.bt-btn-green   { background: var(--bt-green); color: #fff; }
.bt-btn-red     { background: var(--bt-red); color: #fff; }
.bt-btn-full    { width: 100%; }
.bt-btn:hover:not(:disabled) { opacity: .88; }

.bt-btn-icon { background: none; border: none; cursor: pointer; font-size: 15px; padding: 3px 6px; border-radius: 5px; }
.bt-btn-icon:hover { background: #fee2e2; }
.bt-close-btn { background: none; border: none; color: var(--bt-muted); font-size: 16px; cursor: pointer; }

/* ===== MISC ===== */
.bt-link { font-size: 13px; color: var(--bt-blue); text-decoration: none; }
.bt-link:hover { text-decoration: underline; }
.bt-empty { padding: 28px 18px; text-align: center; color: var(--bt-muted); font-size: 13.5px; }
.bt-loading { padding: 40px; text-align: center; color: var(--bt-muted); }
.bt-mini-text { font-size: 11px; color: var(--bt-muted); margin-top: 3px; }

.bt-nav-pill {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
}

.bt-tabbar {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
}

.bt-tab {
  border: 1px solid var(--bt-border);
  background: #fff;
  color: var(--bt-muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.bt-tab.active {
  border-color: var(--bt-blue);
  color: var(--bt-blue);
  background: #dbeafe;
}

.bt-live-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bt-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.bt-fiyat-goster {
  padding: 10px 14px; background: #f0f9ff; border: 1px solid #bae6fd;
  border-radius: 8px; font-size: 13.5px; margin-bottom: 14px; color: #0369a1;
}

.bt-ozet-kutu {
  background: #f8fafc; border: 1px solid var(--bt-border); border-radius: 8px;
  overflow: hidden;
}
.bt-ozet-row {
  display: flex; justify-content: space-between;
  padding: 8px 14px; font-size: 13.5px;
  border-bottom: 1px solid var(--bt-border);
}
.bt-ozet-row:last-child { border-bottom: none; background: #f1f5f9; }
.bt-ozet-row.fw-500 { font-weight: 600; }

.bt-info-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--bt-border);
  font-size: 13.5px;
}
.bt-info-row:last-child { border-bottom: none; }

.mt-3 { margin-top: 16px; }

/* ===== LOGIN ===== */
.bt-login-wrap {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}
.bt-login-shell { padding: 24px; }
.bt-login-card {
  width: 400px; background: #fff;
  border-radius: 16px; padding: 36px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.bt-login-card-solo {
  width: min(560px, 100%);
  border: 1px solid rgba(191,219,254,.65);
  padding: 0;
  overflow: hidden;
}
.bt-login-topband {
  padding: 38px 34px 28px;
  background: radial-gradient(circle at top left, rgba(59,130,246,.22), transparent 35%), linear-gradient(180deg, #162745 0%, #15233c 100%);
  color: #e2e8f0;
}
.bt-login-toprow {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bt-login-brandblock { display: flex; flex-direction: column; gap: 6px; }
.bt-login-header,
.bt-login-card-solo .bt-form,
.bt-login-card-solo .alert,
.bt-login-card-solo .bt-login-footer {
  margin-left: 34px;
  margin-right: 34px;
}
.bt-login-card-solo .bt-form {
  margin-bottom: 34px;
}
.bt-login-header { text-align: center; margin-top: 26px; margin-bottom: 28px; }
.bt-login-header { text-align: center; margin-bottom: 28px; }
.bt-login-logo { font-size: 40px; margin-bottom: 8px; }
.bt-login-logo-lg {
  width: 74px; height: 74px; border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
  color: #1e3a8a; font-weight: 800; letter-spacing: .06em; font-size: 28px;
}
.bt-login-title { font-size: 22px; font-weight: 700; color: #0f172a; }
.bt-login-sub { font-size: 14px; color: var(--bt-muted); margin-top: 4px; }
.bt-login-title-hero { color: #f8fafc; font-size: 34px; margin: 0; }
.bt-login-sub-hero { color: #cbd5e1; max-width: 420px; margin: 0; }
.bt-login-form-title { font-size: 24px; font-weight: 700; color: #0f172a; }
.bt-login-form-sub { margin-top: 6px; color: var(--bt-muted); }
.bt-login-note { margin-bottom: 14px; }
.bt-btn-strong { padding: 12px 18px; font-weight: 700; }
.bt-login-footer { margin-top: 20px; margin-bottom: 28px; }
.bt-login-hint {
  font-size: 12px; color: var(--bt-muted); text-align: center;
  background: #f8fafc; border-radius: 8px; padding: 10px;
}

@media (max-width: 960px) {
  .bt-login-card-solo .bt-form,
  .bt-login-card-solo .alert,
  .bt-login-card-solo .bt-login-footer,
  .bt-login-header { margin-left: 22px; margin-right: 22px; }
  .bt-login-topband { padding: 26px 22px 22px; }
  .bt-login-title-hero { font-size: 28px; }
  .bt-login-toprow { align-items: flex-start; }
}

/* ===== ALERTS ===== */
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13.5px; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
