/* ============================================================
   UmutCangaReklam — Studio Light Design System v10.0
   Clean, Crisp, Modern Left-Sidebar Light Studio Architecture
   ============================================================ */

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

/* ─── Design Tokens (Aydınlık / Light Theme) ─── */
:root {
  /* Color Palette - Clean Studio Light */
  --bg-app:          #f8fafc;
  --bg-sidebar:      #ffffff;
  --bg-sidebar-card: #f1f5f9;
  --bg-header:       rgba(255, 255, 255, 0.92);
  --bg-card:         #ffffff;
  --bg-card-hover:   #ffffff;
  --bg-card-inner:   #f8fafc;
  --bg-input:        #ffffff;

  /* Accent Colors */
  --accent:          #4f46e5;
  --accent-light:    #6366f1;
  --accent-glow:     rgba(79, 70, 229, 0.15);
  --accent-cyan:     #0284c7;
  --accent-cyan-glow:rgba(2, 132, 199, 0.15);
  --accent-emerald:  #059669;
  --accent-amber:    #d97706;
  --accent-rose:     #e11d48;
  --accent-violet:   #7c3aed;

  /* Text Hierarchy */
  --text-primary:    #0f172a;
  --text-secondary:  #475569;
  --text-muted:      #64748b;
  --text-dim:        #94a3b8;

  /* Borders & Dividers */
  --border:          #e2e8f0;
  --border-subtle:   #f1f5f9;
  --border-light:    #cbd5e1;
  --border-hover:    #a5b4fc;

  /* Geometry & Shadows */
  --sidebar-w:       270px;
  --header-h:        68px;
  --radius-xs:       5px;
  --radius-sm:       8px;
  --radius-md:       12px;
  --radius-lg:       16px;
  --radius-xl:       24px;

  --shadow-sm:       0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:       0 4px 14px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg:       0 12px 30px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-glow:     0 0 20px rgba(79, 70, 229, 0.12);

  --transition:      all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Global Reset & Setup ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14.5px;
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Soft Pearl Backdrop Sheen */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(79, 70, 229, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 100% 100%, rgba(2, 132, 199, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════
   APP LAYOUT: MODERN LEFT SIDEBAR ARCHITECTURE
   ═══════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ─── Modern Left Sidebar (Crisp White Studio) ─── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.03);
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.12) transparent;
}

.sidebar-header {
  padding: 24px 20px 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #0284c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  flex-shrink: 0;
}

.sidebar-logo i {
  color: #fff;
  font-size: 18px;
}

.sidebar-brand-name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  line-height: 1.2;
}

.sidebar-brand-sub {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Sidebar Workspace Pill */
.sidebar-workspace {
  margin: 14px 16px;
  padding: 8px 12px;
  background: var(--bg-sidebar-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-workspace-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sidebar-workspace-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

/* Sidebar Navigation Sections */
.sidebar-nav {
  padding: 8px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 16px 12px 6px 12px;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.sidebar-nav-link-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sidebar-nav-link-left i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.sidebar-nav-link:hover {
  color: var(--text-primary);
  background: #f1f5f9;
}

.sidebar-nav-link:hover i {
  color: var(--accent);
}

.sidebar-nav-link.active {
  color: var(--accent);
  background: #eef2ff;
  border-left: 3px solid var(--accent);
  padding-left: 9px;
  font-weight: 700;
}

.sidebar-nav-link.active i {
  color: var(--accent);
}

/* Special Highlight for 3D Supermarket link */
.sidebar-nav-link.nav-highlight {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(79, 70, 229, 0.06) 100%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  font-weight: 700;
}

.sidebar-nav-link.nav-highlight i {
  color: #0284c7;
}

.sidebar-nav-link.nav-highlight:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(79, 70, 229, 0.12) 100%);
  color: #0369a1;
}

/* Sidebar Footer Card */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-status-card {
  background: var(--bg-sidebar-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.sidebar-status-card strong {
  color: #059669;
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   CONTENT WRAPPER & TOP APP BAR
   ═══════════════════════════════════════════ */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--bg-app);
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 20px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.header-breadcrumb {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-breadcrumb-root {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.header-page-title strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-size: 12px;
  font-weight: 700;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* ═══════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════ */
.main-content {
  flex: 1;
  padding: 28px 32px 60px 32px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   HERO / BANNER
   ═══════════════════════════════════════════ */
.section-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.section-hero-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.3px;
}

.section-hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   BENTO GRID STAT CARDS
   ═══════════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.stat-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.stat-icon.green {
  background: #dcfce7;
  color: #059669;
  border: 1px solid #bbf7d0;
}

.stat-icon.red {
  background: #ffe4e6;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.stat-icon.purple {
  background: #f3e8ff;
  color: #7c3aed;
  border: 1px solid #e9d5ff;
}

.stat-icon.amber {
  background: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-details .value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.stat-details .label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   CARDS & CONTAINERS
   ═══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: #cbd5e1;
}

.card-header {
  padding: 16px 22px;
  background: #fcfcfd;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.2px;
}

.card-title i {
  color: var(--accent);
  font-size: 15px;
}

.card-body {
  padding: 22px;
}

.mb-0 { margin-bottom: 0 !important; }

/* ═══════════════════════════════════════════
   BUTTONS (MODERN STUDIO LIGHT STYLE)
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  outline: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff !important;
  border-color: #4338ca;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  border-color: #047857;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-success:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: translateY(-1px);
}

.btn-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.btn-danger:hover {
  background: #dc2626;
  color: #ffffff !important;
  border-color: #dc2626;
}

.btn-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border-color: #0369a1;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.btn-cyan:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 11.5px;
  border-radius: var(--radius-xs);
}

.btn-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
}

.w-full { width: 100%; }

/* ═══════════════════════════════════════════
   DATA TABLES (CLEAN LIGHT DESIGN)
   ═══════════════════════════════════════════ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table thead {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  white-space: nowrap;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: #334155;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color var(--transition);
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

.data-table code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #bae6fd;
}

/* ═══════════════════════════════════════════
   BADGES & PILLS
   ═══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.badge-primary {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.badge-online {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-offline {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.badge-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* ═══════════════════════════════════════════
   FORMS & INPUTS
   ═══════════════════════════════════════════ */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.form-control, .form-select {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-select option {
  background: #ffffff;
  color: var(--text-primary);
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.open .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 22px;
  background: #fcfcfd;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body {
  padding: 22px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #fcfcfd;
}

/* ═══════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  font-size: 13px;
}

.toast-success { border-left: 4px solid #10b981; }
.toast-success i { color: #10b981; }
.toast-error { border-left: 4px solid #e11d48; }
.toast-error i { color: #e11d48; }

/* ═══════════════════════════════════════════
   PROFILES & MEDIA PLAYLIST CARDS
   ═══════════════════════════════════════════ */
.profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 6px;
  transition: var(--transition);
}

.profile-item:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.profile-item.active {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #4338ca;
}

.profile-item-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}

.profile-item-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.media-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.media-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.media-preview {
  width: 100%;
  height: 150px;
  background: #0f172a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview img, .media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-info {
  padding: 12px;
  background: #ffffff;
  flex: 1;
}

.media-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-actions {
  padding: 10px 12px;
  background: #fcfcfd;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════
   SIMULATOR TV FRAME
   ═══════════════════════════════════════════ */
.simulator-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.tv-frame {
  background: #000;
  border: 10px solid #1e293b;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.tv-stand {
  width: 120px;
  height: 20px;
  background: #334155;
  margin: 0 auto;
}

.tv-base {
  width: 240px;
  height: 8px;
  background: #475569;
  margin: 0 auto;
  border-radius: 4px;
}

.tv-overlay-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  color: #fff;
  z-index: 60;
}

/* ═══════════════════════════════════════════
   SETTINGS SECTIONS
   ═══════════════════════════════════════════ */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.settings-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.settings-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.settings-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

/* ═══════════════════════════════════════════
   UTILITIES & RESPONSIVENESS
   ═══════════════════════════════════════════ */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.d-grid { display: grid; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 38px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .sidebar { width: 80px; }
  .sidebar-brand-name, .sidebar-brand-sub, .sidebar-section-title, .sidebar-workspace, .sidebar-footer, .sidebar-nav-link span { display: none; }
  .sidebar-header { justify-content: center; padding: 16px 8px; }
  .sidebar-nav-link { justify-content: center; }
  .top-header { padding: 0 16px; }
  .main-content { padding: 20px 16px; }
}
