/* ===========================================================
   REMOTEDESK WEB UI — Modern Dark Theme
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #060B14;
  --surface:       #0C1322;
  --card:          #0F1829;
  --card-hover:    #131F38;
  --border:        #1A2640;
  --border-light:  #1E2D4A;

  --accent:        #2563EB;
  --accent-hover:  #1D4ED8;
  --accent-glow:   rgba(37, 99, 235, 0.25);
  --accent-subtle: rgba(37, 99, 235, 0.08);

  --success:       #10B981;
  --success-glow:  rgba(16, 185, 129, 0.2);
  --error:         #EF4444;
  --error-glow:    rgba(239, 68, 68, 0.2);
  --warning:       #F59E0B;

  --text:          #F1F5F9;
  --text-2:        #94A3B8;
  --text-3:        #475569;

  --radius:        10px;
  --radius-lg:     14px;
  --radius-xl:     18px;

  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:     0 8px 48px rgba(0,0,0,0.5);

  --sidebar-w:     230px;
  --topbar-h:      52px;
  --toolbar-h:     70px;

  --font:          'Inter', system-ui, sans-serif;
  --mono:          'JetBrains Mono', 'Fira Code', monospace;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ¦¦ Arka plan efektleri ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orb-float 20s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(37,99,235,0.07), transparent 70%);
  animation-duration: 22s; }
.orb-2 { width: 500px; height: 500px; bottom: -150px; right: -100px;
  background: radial-gradient(circle, rgba(124,58,237,0.05), transparent 70%);
  animation-duration: 28s; animation-direction: reverse; }
.orb-3 { width: 400px; height: 400px; top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.04), transparent 70%);
  animation-duration: 18s; animation-delay: -8s; }

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -40px) scale(1.05); }
  66%       { transform: translate(-30px, 30px) scale(0.95); }
}

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* ¦¦ Sayfa yönetimi ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.page {
  position: fixed; inset: 0;
  display: none; z-index: 10;
}
.page.active { display: flex; }

/* ==========================================================
   LOGIN SAYFASI
========================================================== */
#page-login {
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.login-wrap {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.logo-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 16px var(--accent-glow));
}
.logo-icon-sm { width: 36px; height: 36px;
  filter: drop-shadow(0 0 10px var(--accent-glow)); }
.logo-icon-xs { width: 28px; height: 28px;
  filter: drop-shadow(0 0 8px var(--accent-glow)); }

.logo-name { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.logo-tagline { font-size: 11px; font-weight: 500; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-top: 2px; }
.logo-sub { font-size: 9px; font-weight: 700; color: var(--accent); letter-spacing: 2px; margin-top: 2px; }

.login-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(37,99,235,0.05) inset;
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.6), transparent);
}

.login-card-header {
  margin-bottom: 28px;
}
.login-card-header h1 {
  font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.login-card-header p {
  font-size: 13px; color: var(--text-2); line-height: 1.5;
}

.login-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--text-2); text-transform: uppercase; letter-spacing: 0.5px;
}
.form-group label svg { width: 13px; height: 13px; }

.input-wrap { position: relative; }

.input-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-wrap input::placeholder { color: var(--text-3); }
.input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-3); cursor: pointer;
  display: flex; align-items: center;
  transition: color 0.15s;
}
.input-toggle:hover { color: var(--text-2); }
.input-toggle svg { width: 16px; height: 16px; }

.error-banner {
  display: flex; align-items: center; gap: 8px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: #FCA5A5; font-size: 13px;
}
.error-banner svg { width: 15px; height: 15px; flex-shrink: 0; }
.error-banner.hidden { display: none; }

.login-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: center;
}
.security-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-3);
}
.security-badge svg { width: 12px; height: 12px; }

.login-version {
  font-size: 11px; color: var(--text-3);
}

/* ==========================================================
   BUTONLAR
========================================================== */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none; border-radius: var(--radius);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer;
  padding: 12px 20px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 11px; }

.btn-arrow { width: 16px; height: 16px; transition: transform 0.2s; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-loader { display: none; align-items: center; gap: 8px; }
.btn-loader.hidden { display: none; }
.btn-loader:not(.hidden) { display: flex; }

.btn-secondary {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); color: var(--text-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font); font-size: 13px; font-weight: 500;
  cursor: pointer; padding: 8px 14px;
  transition: all 0.15s;
}
.btn-secondary:hover { background: var(--card-hover); color: var(--text); border-color: var(--accent); }
.btn-secondary svg { width: 14px; height: 14px; }
.btn-sm { padding: 7px 12px; font-size: 12px; }

.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: transparent; border: none;
  color: var(--text-3); border-radius: 8px;
  cursor: pointer; transition: all 0.15s;
}
.btn-icon:hover { background: var(--card-hover); color: var(--text); }
.btn-icon svg { width: 15px; height: 15px; }

/* ==========================================================
   SPINNER
========================================================== */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-lg {
  width: 32px; height: 32px;
  border: 3px solid rgba(37,99,235,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   DASHBOARD LAYOUT
========================================================== */
#page-dashboard { flex-direction: row; }

.app-layout {
  display: flex; width: 100%; height: 100%;
  position: relative; z-index: 1;
}

/* ¦¦ Sidebar ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  height: 100%;
}

.sidebar-logo {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav {
  flex: 1; padding: 14px 10px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}

.nav-section-title {
  font-size: 10px; font-weight: 600; color: var(--text-3);
  letter-spacing: 1px; padding: 6px 10px 8px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text-2); font-size: 13px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: all 0.15s;
  position: relative;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item span { flex: 1; }
.nav-item:hover { background: var(--card); color: var(--text); }
.nav-item.active {
  background: var(--accent-subtle);
  color: var(--text);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.nav-item.active svg { color: var(--accent); }

.nav-badge {
  background: var(--accent);
  color: #fff; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
}

.sidebar-bottom {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.3);
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-status { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--success); margin-top: 2px; }

/* ¦¦ Status dot ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.online { background: var(--success); box-shadow: 0 0 0 2px var(--success-glow); animation: pulse-dot 2s infinite; }
.status-dot.offline { background: var(--text-3); }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ¦¦ Ana içerik ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.main-content {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; background: var(--bg);
}

.content-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(12,19,34,0.8);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}
.content-header h2 { font-size: 18px; font-weight: 700; }
.content-header p  { font-size: 12px; color: var(--text-2); margin-top: 3px; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-stats { display: flex; gap: 8px; }
.stat-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px;
  font-size: 12px; color: var(--text-2);
}
.stat-chip svg { width: 12px; height: 12px; }

.content-view { padding: 24px 28px; overflow-y: auto; flex: 1; display: none; }
.content-view.active { display: block; }

/* ¦¦ Cihaz kartları ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.device-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.device-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.3), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.device-card:hover {
  background: var(--card-hover);
  border-color: rgba(37,99,235,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.12);
}
.device-card:hover::before { opacity: 1; }

.device-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px;
}
.device-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-subtle);
  border: 1px solid rgba(37,99,235,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.device-icon-wrap svg { width: 22px; height: 22px; }
.device-status-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}
.device-status-badge.online {
  background: rgba(16,185,129,0.1);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.2);
}
.device-status-badge.offline {
  background: rgba(71,85,105,0.15);
  color: var(--text-3);
  border: 1px solid rgba(71,85,105,0.2);
}

.device-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.device-id   { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.device-meta {
  display: flex; gap: 14px; margin: 14px 0;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.device-meta-item { font-size: 11px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.device-meta-item svg { width: 11px; height: 11px; }

.btn-connect {
  width: 100%; padding: 10px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 9px;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all 0.2s;
}
.btn-connect:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-connect svg { width: 14px; height: 14px; }
.btn-connect.offline {
  opacity: 0.4; cursor: not-allowed;
  pointer-events: none;
}

/* ¦¦ Empty state ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px;
  min-height: 300px; text-align: center;
}
.empty-state.hidden { display: none; }
.empty-icon { color: var(--text-3); margin-bottom: 8px; }
.empty-icon svg { width: 64px; height: 64px; }
.empty-state h3 { font-size: 16px; color: var(--text-2); }
.empty-state p  { font-size: 13px; color: var(--text-3); }

/* ==========================================================
   UZAK OTURUM
========================================================== */
#page-session { flex-direction: column; background: #000; }

/* Üst bar */
.session-topbar {
  height: var(--topbar-h);
  background: rgba(12,19,34,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px; gap: 16px;
  flex-shrink: 0; z-index: 100;
}
.session-topbar-left  { display: flex; align-items: center; gap: 12px; flex: 1; }
.session-topbar-center{ flex: 1; display: flex; justify-content: center; }
.session-topbar-right { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

.session-device-info { display: flex; flex-direction: column; gap: 3px; }
.session-device-name {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.session-path-badge {
  background: rgba(37,99,235,0.12);
  color: #60A5FA; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px;
  border: 1px solid rgba(37,99,235,0.2);
  letter-spacing: 0.5px; align-self: flex-start;
}
.session-title {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  letter-spacing: 1px; text-transform: uppercase;
}

.session-stats { display: flex; gap: 14px; }
.stat-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.stat-item svg { width: 13px; height: 13px; }

.session-win-controls { display: flex; }
.win-btn {
  width: 36px; height: 36px;
  background: transparent; border: none;
  border-radius: 8px; color: var(--text-2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.win-btn:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.win-btn svg { width: 13px; height: 13px; }
.win-close:hover { background: rgba(239,68,68,0.15); color: var(--error); }

/* Ekran */
.session-screen {
  flex: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #050A12;
}
/* Yakınlaştırılmışsa kaydırılabilir olsun, sol-üstten başlasın */
.session-screen.zoomed {
  overflow: auto;
  align-items: flex-start;
  justify-content: flex-start;
}
#remote-canvas {
  display: block; cursor: default;
}

/* ¦¦ Zoom kontrolü (üst bar) ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ */
.session-zoom {
  display: flex; align-items: center; gap: 2px;
  margin-right: 10px;
}
.zoom-btn {
  height: 28px; min-width: 28px; padding: 0 8px;
  background: #16203A; color: #C7D3E8;
  border: 1px solid #24314F;
  border-radius: 6px; cursor: pointer;
  font-size: 14px; font-weight: 600; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.zoom-btn:hover { background: #1F2C49; }
.zoom-reset { min-width: 58px; font-size: 12px; }

/* Overlay */
.session-overlay {
  position: absolute; inset: 0;
  background: rgba(6,11,20,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.session-overlay.hidden { display: none; }
.overlay-card {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px 48px;
  font-size: 14px; color: var(--text-2);
}

/* Alt araç çubuğu */
.session-toolbar {
  height: var(--toolbar-h);
  background: rgba(12,19,34,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 0 20px; flex-shrink: 0;
}
.toolbar-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 14px; min-width: 76px;
  background: transparent; border: none;
  color: var(--text-2); font-family: var(--font); font-size: 10px; font-weight: 500;
  border-radius: 10px; cursor: pointer; transition: all 0.15s;
}
.toolbar-btn svg { width: 18px; height: 18px; }
.toolbar-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.toolbar-sep { width: 1px; height: 32px; background: var(--border); margin: 0 8px; }
.toolbar-btn-danger { color: #FB923C; }
.toolbar-btn-danger:hover { background: rgba(239,68,68,0.1); color: var(--error); }

/* ==========================================================
   UTILITY
========================================================== */
.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* Toast bildirim */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 9999;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: 10px; padding: 12px 16px;
  font-size: 13px; color: var(--text);
  box-shadow: var(--shadow);
  animation: toast-in 0.3s ease forwards;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--error); }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* zoom kapatildi */
.session-zoom { display: none !important; }
#remote-canvas { max-width: 100% !important; max-height: 100% !important; width: auto !important; height: auto !important; }
.session-screen.zoomed { overflow: hidden !important; align-items: center !important; justify-content: center !important; }
