:root { 
  /* --- VARSAYILAN: KOYU TEMA (DARK) --- */
  --bg: #0b1220; 
  --panel: #0f1b33; 
  --card: #101f3d; 
  --text: #e9eefc; 
  --text-muted: #94a3b8;
  --muted: #a9b6d6; 
  --line: #1b2b4d; 
  --accent: #4f7cff; 
  --accent-hover: #3a63e0;
  --danger: #ff5b6e; 
  --success: #10b981;
  --warning: #ffc107;
  --hover-bg: rgba(255,255,255,0.04);
  --active-bg: rgba(79, 124, 255, 0.1);
  --shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* --- AÇIK TEMA (LIGHT) --- */
[data-theme="light"] {
  --bg: #f1f5f9;
  --panel: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --danger: #ef4444;
  --success: #059669;
  --warning: #d97706;
  --hover-bg: #f8fafc;
  --active-bg: #e0f2fe;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

/* Scrollbar Tasarımı */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
  background: var(--bg); 
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; transition: 0.2s; }

/* --- Layout Structure --- */
.app-shell { display: flex; height: 100%; width: 100%; overflow: hidden; }

.sidebar {
  width: 240px;
  background: var(--panel); 
  border-right: 1px solid var(--line); 
  display: flex; 
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  overflow-y: auto;
  transition: background 0.3s, border-color 0.3s;
}

.main {
  flex: 1;
  display: flex; 
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  position: relative;
  background: var(--bg);
}

/* --- Sidebar Components --- */
.brand {
  font-weight: 800; 
  letter-spacing: 1px; 
  font-size: 18px; 
  padding: 20px 20px;
  color: var(--text);
}
.brand span { color: var(--accent); }

.menu {
  display: flex; 
  flex-direction: column; 
  gap: 2px;
  padding: 0 10px;
  flex: 1;
}

.menu-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin: 16px 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 12px;
  opacity: 0.8;
}

.menu-item {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px; 
  color: var(--text);
  opacity: 0.8;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  font-weight: 500;
}
.menu-item:hover {
  background: var(--hover-bg);
  opacity: 1;
}
.menu-item.active {
  background: var(--active-bg);
  color: var(--accent);
  border-color: transparent;
  opacity: 1;
  font-weight: 600;
}

.sidebar-foot {
  margin-top: auto; 
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted); 
  font-size: 11px;
}

/* --- Header & Content --- */
.header {
  flex-shrink: 0;
  height: 60px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 0 24px; 
  border-bottom: 1px solid var(--line); 
  background: var(--panel); 
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background 0.3s, border-color 0.3s;
}
.crumb { color: var(--text); font-weight: 600; font-size: 14px; }

.content {
  flex: 1;
  padding: 24px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  flex-shrink: 0;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

.debugbar {
  color: var(--muted);
  font-size: 11px;
  font-family: monospace;
  opacity: 0.7;
}

/* --- Components --- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* Grid Sistemi */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 16px; }

/* Stat Box */
.stat { background: var(--hover-bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.stat-value { font-size: 24px; font-weight: 700; margin-top: 4px; color: var(--text); }

/* --- User Menu & Dropdown --- */
.user-menu { position: relative; display: flex; gap: 10px; align-items: center; }
.user-btn { background: transparent; border: 0; cursor: pointer; padding: 0; display: block; }
.avatar {
  width: 34px; height: 34px; 
  display: inline-flex; align-items: center; justify-content: center; 
  border-radius: 50%; 
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)); 
  border: 2px solid var(--bg); 
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    width: 34px; height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.theme-toggle:hover {
    background: var(--hover-bg);
    color: var(--text);
    border-color: var(--muted);
}

/* Dropdown Logic */
.dropdown {
  position: absolute; right: 0; top: 100%; margin-top: 8px; width: 220px; 
  background: var(--panel); border: 1px solid var(--line); 
  border-radius: 12px; padding: 6px; 
  display: none; /* Varsayılan gizli */
  box-shadow: var(--shadow);
  z-index: 100;
}
.dropdown.show { display: block !important; animation: fadeIn 0.15s ease-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-size: 13px; font-weight: 500; }
.dropdown-item:hover { background: var(--hover-bg); }
.dropdown-form { margin: 0; }
.dropdown-item.danger { color: var(--danger); background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer; }
.dropdown-item.danger:hover { background: rgba(255, 91, 110, 0.1); }

/* --- Forms & Auth --- */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.auth-card { width: min(400px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.auth-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; text-align: center; color: var(--text); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.label { color: var(--text-muted); font-size: 13px; margin-bottom: 6px; font-weight: 500; display: block; }
.input {
  width: 100%;
  padding: 10px 14px; 
  border-radius: 8px; 
  border: 1px solid var(--line); 
  background: var(--bg); 
  color: var(--text);
  font-family: inherit; font-size: 14px;
  transition: 0.2s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--active-bg); }

.btn {
  padding: 12px 16px; 
  border-radius: 8px; 
  border: 1px solid transparent; 
  background: var(--accent); 
  color: white; 
  font-weight: 600; 
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn:hover { background: var(--accent-hover); }

.alert { 
  background: rgba(255,91,110,0.1); 
  border: 1px solid rgba(255,91,110,0.2); 
  color: var(--danger); 
  padding: 12px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; font-weight: 500;
}
.alert.success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}
.mb-4 { margin-bottom: 16px; }

/* --- DASHBOARD STYLES --- */
.pulse-dot {
  width: 10px; height: 10px; 
  background: #10b981; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.action-box {
  flex: 1; min-width: 110px; 
  background: var(--card); 
  border: 1px solid var(--line);
  border-radius: 12px; 
  padding: 16px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 8px;
  transition: all 0.2s; 
  text-align: center;
  color: var(--text);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.action-box:hover { 
  background: var(--hover-bg); 
  transform: translateY(-2px); 
  border-color: var(--accent); 
  color: var(--text);
}
.action-box.primary { 
  background: var(--active-bg); 
  border-color: rgba(79, 124, 255, 0.3); 
  color: var(--accent);
}
.action-box.primary:hover {
  background: var(--active-bg); 
  border-color: var(--accent);
}
.action-box .icon { font-size: 24px; margin-bottom: 4px; }
.action-box .text { font-size: 12px; font-weight: 600; }

.status-dot { font-size: 10px; margin-right: 6px; }
.status-operational { color: var(--success); }

/* --- BILLING STYLES --- */
.plan-card {
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--line);
}
.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.plan-card.current {
  border-color: var(--accent);
  background: var(--active-bg);
}
.plan-badge {
  position: absolute; 
  top: 12px; right: 12px; 
  background: var(--accent); 
  color: white; 
  font-size: 10px; font-weight: 700; 
  padding: 4px 8px; border-radius: 4px;
}
.plan-feature {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted);
}

/* --- CHANNEL STYLES --- */
.text-danger { color: var(--danger); }
.badge-danger {
  background: var(--danger); color: white; padding: 4px 10px; 
  border-radius: 8px; font-size: 11px; font-weight: 700;
}
.grid-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px;
}
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.note { color: var(--text-muted); font-size: 13px; padding: 12px; border: 1px dashed var(--line); border-radius: 8px; text-align: center; }

.channel-list { display: flex; flex-direction: column; gap: 10px; }
.channel-item {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: var(--hover-bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.code-badge {
  background: rgba(0,0,0,0.2); padding: 2px 6px; border-radius: 4px; 
  color: var(--accent); font-family: monospace; font-size: 11px; border: 1px solid var(--line);
}
.btn-text-danger {
  background: transparent; border: 1px solid rgba(255,91,110,.35); color: var(--danger);
  padding: 8px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; transition: 0.2s;
}
.btn-text-danger:hover { background: rgba(255,91,110,0.1); }

/* --- CREDITS PAGE --- */
.balance-card {
  background: linear-gradient(135deg, var(--active-bg) 0%, var(--card) 100%);
  border-color: rgba(79, 124, 255, 0.2);
}
.card-label {
  color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.balance-amount {
  font-size: 36px; font-weight: 800; margin: 8px 0; color: var(--text);
}
.resource-list { margin-top: 12px; font-size: 13px; }
.resource-item { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--text-muted); }

.transaction-table { width: 100%; text-align: left; border-collapse: collapse; font-size: 13px; }
.transaction-table th { border-bottom: 1px solid var(--line); color: var(--text-muted); padding: 10px 10px 10px 0; font-weight: 600; }
.transaction-table th:last-child { padding-right: 0; }
.transaction-table td { border-bottom: 1px solid var(--hover-bg); padding: 16px 10px 16px 0; }
.transaction-table td:last-child { padding-right: 0; }
.transaction-table tr:last-child td { border-bottom: none; }

.status-badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.status-badge.completed { background: var(--hover-bg); color: var(--text-muted); }

/* --- PLAYLIST PAGE STYLES --- */
.create-playlist-form { display: flex; gap: 10px; align-items: center; }

/* Grid Layout: Sol (Liste) - Sağ (İçerik) */
.playlist-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: start; }
@media (max-width: 768px) { .playlist-grid { grid-template-columns: 1fr; } }

.playlist-list { display: flex; flex-direction: column; gap: 8px; }

/* Playlist Listesi Satırı */
.playlist-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--card); transition: 0.2s;
}
.playlist-row:hover { border-color: var(--accent); background: var(--hover-bg); }
.playlist-row.active {
    background: var(--active-bg); border-color: var(--accent);
}
.playlist-info { text-decoration: none; flex: 1; }
.playlist-name { font-weight: 600; color: var(--text); font-size: 14px; }
.playlist-row.active .playlist-name { color: var(--accent); }
.playlist-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.btn-icon-danger {
    background: transparent; border: 0; color: var(--text-muted); cursor: pointer; padding: 6px; display: flex; border-radius: 4px; transition: 0.2s;
}
.btn-icon-danger:hover { color: var(--danger); background: rgba(255,91,110,0.1); }

/* Playlist İçerik Listesi (Sağ Taraf) */
.playlist-items-container { display: flex; flex-direction: column; gap: 8px; }

.playlist-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: 8px;
    padding: 10px 14px; transition: box-shadow 0.2s, background 0.2s;
}
.playlist-item:hover { background: var(--hover-bg); }

.playlist-handle {
    cursor: grab; color: var(--text-muted); user-select: none; padding-right: 4px; display: flex; align-items: center;
}
.playlist-handle:hover { color: var(--text); }
.playlist-handle:active { cursor: grabbing; }

/* Sürükle Bırak Efektleri */
.sortable-ghost { opacity: 0.5; background: var(--hover-bg); border: 1px dashed var(--text-muted); }
.sortable-drag { cursor: grabbing; background: var(--active-bg); opacity: 1; box-shadow: var(--shadow); z-index: 9999; }

.pos-badge {
    background: var(--line); padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; color: var(--text);
}

/* --- PROFILE PAGE STYLES --- */
.profile-container { max-width: 900px; margin: 0 auto; }
.page-header { margin-bottom: 24px; }
.page-title { margin: 0 0 4px; font-size: 24px; color: var(--text); }
.page-subtitle { color: var(--text-muted); font-size: 13px; }

.profile-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 24px; }

.card-title-border { margin: 0 0 16px; font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; color: var(--text); }
.card-title { margin: 0 0 16px; font-size: 16px; color: var(--text); }

.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.input-hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; }
.password-section { margin-bottom: 24px; padding-top: 16px; border-top: 1px solid var(--line); margin-top: 20px; }

.profile-sidebar { display: flex; flex-direction: column; gap: 20px; }

.plan-summary-card { 
    background: linear-gradient(135deg, var(--card) 0%, rgba(79, 124, 255, 0.08) 100%); 
    border: 1px solid var(--accent); 
}
.plan-label { color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.plan-name { font-size: 28px; font-weight: 800; margin: 8px 0 4px 0; color: var(--text); }
.tenant-id { font-size: 13px; color: var(--text-muted); }
.plan-price { font-size: 18px; font-weight: 700; color: var(--text); opacity: 0.8; }
.plan-price span { font-size: 12px; font-weight: 400; }

.btn-outline-light { width: 100%; text-align: center; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); color: var(--text); }
.btn-outline-light:hover { background: rgba(255,255,255,0.2); }

.usage-header { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.progress-track { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; transition: width 0.3s ease; }
.progress-fill.accent { background: var(--accent); }
.progress-fill.danger { background: var(--danger); }

/* --- STREAM (STUDIO) PAGE STYLES --- */
.page-header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--text); padding: 8px 14px; border-radius: 8px; transition: 0.2s; font-size: 13px; cursor: pointer; }
.btn-outline:hover { background: var(--hover-bg); border-color: var(--accent); }

.empty-state-card { text-align: center; padding: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.empty-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.empty-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }

.stream-grid { grid-template-columns: 1fr; gap: 16px; }

.studio-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.studio-head { padding: 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: var(--hover-bg); }
.studio-body { padding: 16px; }

.channel-info { display: flex; align-items: center; gap: 12px; }
.channel-icon { width: 40px; height: 40px; background: var(--bg); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--text-muted); border: 1px solid var(--line); }
.channel-name { font-weight: 700; font-size: 16px; color: var(--text); }
.stream-key-hint { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Status Badges */
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid transparent; }
.status-stopped { background: rgba(255,255,255,0.1); color: var(--text-muted); border-color: rgba(255,255,255,0.1); }
.status-starting, .status-stopping { background: rgba(255,193,7,0.15); color: var(--warning); border-color: rgba(255,193,7,0.3); }
.status-running { background: rgba(16, 185, 129, 0.15); color: var(--success); border-color: rgba(16, 185, 129, 0.3); }
.status-failed { background: rgba(239, 68, 68, 0.15); color: var(--danger); border-color: rgba(239, 68, 68, 0.3); }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-running .live-dot { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: pulse-green 2s infinite; }

.error-alert { margin-bottom: 16px; font-size: 13px; padding: 10px; border: 1px solid rgba(239,68,68,0.3); background: rgba(239,68,68,0.1); color: var(--danger); border-radius: 8px; }

.studio-controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.playlist-select-form { flex: 1; min-width: 250px; }
.control-label { margin-bottom: 6px; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.select-group { display: flex; gap: 8px; }
.btn-secondary { background: var(--panel); border: 1px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.btn-secondary:hover { background: var(--hover-bg); border-color: var(--text-muted); }

.action-buttons { display: flex; gap: 8px; }
.btn-start { background: var(--accent); color: #fff; min-width: 120px; box-shadow: 0 4px 12px rgba(79,124,255,0.3); border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: 0.2s; }
.btn-start:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-stop { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); min-width: 100px; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: 0.2s; }
.btn-stop:hover { background: rgba(239,68,68,0.2); }

.log-box { background: #080c14; padding: 8px 12px; border-radius: 8px; font-family: monospace; font-size: 11px; color: #9ca3af; border: 1px solid rgba(255,255,255,0.05); }

/* --- VIDEO PAGE STYLES --- */
.media-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.usage-stats { color: var(--text-muted); font-size: 12px; display: flex; gap: 16px; margin-top: 4px; }
.upload-form { display: flex; gap: 10px; align-items: center; }
.upload-hint { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

.video-list { display: flex; flex-direction: column; gap: 10px; }
.video-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--hover-bg); }
.video-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.03); border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 16px; }
.video-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.1); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- PLANS (ADMIN) STYLES --- */
.plan-form { align-items: end; }
.grid-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.section-title { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }

/* --- SETTINGS PAGE STYLES --- */
.settings-container { max-width: 600px; margin: 0 auto; }
.page-header-simple { margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.settings-section { background: var(--hover-bg); padding: 16px; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 24px; }
.setting-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.setting-row:last-child { margin-bottom: 0; }
.setting-label { font-weight: 600; font-size: 14px; color: var(--text); }
.setting-desc { font-size: 11px; color: var(--text-muted); }

/* Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.1); transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(18px); }

/* --- USERS PAGE STYLES (Eklendi) --- */
.user-create-form { margin-bottom: 0; }
.form-action { grid-column: span 2; display: flex; align-items: flex-end; }
@media (max-width: 600px) { .form-action { grid-column: span 1; } }

.data-table { width: 100%; text-align: left; border-collapse: collapse; font-size: 13px; }
.data-table th { border-bottom: 1px solid var(--line); color: var(--text-muted); padding: 10px; font-weight: 600; }
.data-table th:last-child { text-align: right; }
.data-table td { border-bottom: 1px solid var(--hover-bg); padding: 12px 10px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }

.badge { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; display: inline-block; }
.badge-admin { background: rgba(79, 124, 255, 0.2); color: #82aaff; }
.badge-user { background: rgba(255,255,255,0.05); color: var(--text-muted); }

.section-box { margin-top: 24px; background: var(--hover-bg); padding: 16px; border-radius: 12px; border: 1px solid var(--line); }

