/* ========================================================
   RENK RADYO - YÖNETİM & STÜDYO PANELİ STİLLERİ
======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --admin-bg: #090d16;
  --admin-sidebar: #0f1523;
  --admin-card: #131b2e;
  --admin-border: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #7928ca;
  --accent: #ff007f;
  --cyan: #00dfd8;
  --blue: #0070f3;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--admin-bg);
  color: var(--text-main);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ========================================================
   SIDEBAR (SOL MENÜ)
======================================================== */
.admin-sidebar {
  width: 260px;
  background-color: var(--admin-sidebar);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-header img {
  height: 38px;
}
.sidebar-brand-text {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}
.sidebar-brand-text span {
  color: var(--cyan);
}

.sidebar-menu {
  padding: 20px 12px;
  list-style: none;
  flex: 1;
  overflow-y: auto;
}
.menu-category {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 12px 14px 6px 14px;
}
.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  margin-bottom: 4px;
}
.sidebar-menu li a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.sidebar-menu li a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(121, 40, 202, 0.4) 0%, rgba(255, 0, 127, 0.3) 100%);
  border: 1px solid rgba(255, 0, 127, 0.3);
}
.sidebar-menu li a i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}
.menu-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.sidebar-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.user-name {
  font-size: 0.85rem;
  font-weight: 700;
}
.user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.logout-btn {
  color: var(--danger);
  font-size: 1.1rem;
}

/* ========================================================
   MAIN CONTENT AREA
======================================================== */
.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.admin-topbar {
  background: var(--admin-sidebar);
  border-bottom: 1px solid var(--admin-border);
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-title {
  font-size: 1.35rem;
  font-weight: 800;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-content {
  padding: 30px;
  flex: 1;
}

/* ========================================================
   STAT KARTLARI (DASHBOARD STATS)
======================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}
.stat-info .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.stat-info .stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.stat-icon.pink { background: rgba(255, 0, 127, 0.15); color: var(--accent); }
.stat-icon.purple { background: rgba(121, 40, 202, 0.15); color: var(--primary); }
.stat-icon.cyan { background: rgba(0, 223, 216, 0.15); color: var(--cyan); }
.stat-icon.blue { background: rgba(0, 112, 243, 0.15); color: var(--blue); }

/* ========================================================
   KARTLAR & TABLOLAR
======================================================== */
.card {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 800;
}
.card-body {
  padding: 24px;
}

/* Tablo Stilleri */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.admin-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 20px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--admin-border);
}
.admin-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}
.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ========================================================
   AKTİF / PASİF TOGGLE SWITCH (SCREENSHOT_1)
======================================================== */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
input:checked + .slider:before {
  transform: translateX(22px);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Form Elemanları */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.07);
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 4px 15px rgba(255, 0, 127, 0.4);
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

/* Flash Mesajlar */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid var(--success); color: #34d399; }
.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid var(--danger); color: #f87171; }
.alert-info { background: rgba(0, 112, 243, 0.15); border: 1px solid var(--blue); color: #60a5fa; }
