/* ==========================================================================
   Windows 11 / Fluent Light Theme Stylesheet for N-O-D Task Manager
   الوضع النهاري الكامل (Full Light Mode)
   ========================================================================== */

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

:root {
  color-scheme: light;
  /* Daylight Palette (Windows 11 Light / Mica) */
  --bg-desktop: #f0f3f8;
  --acrylic-bg: rgba(255, 255, 255, 0.88);
  --acrylic-card: #ffffff;
  --acrylic-hover: rgba(0, 0, 0, 0.04);
  --acrylic-border: rgba(0, 0, 0, 0.08);
  --acrylic-border-focus: rgba(2, 132, 199, 0.45);
  --taskbar-bg: rgba(248, 250, 252, 0.92);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  
  --accent-blue: #0284c7;
  --accent-cyan: #0891b2;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --accent-purple: #7c3aed;
  
  --shadow-window: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
  --shadow-taskbar: 0 -4px 16px rgba(0, 0, 0, 0.06);
  
  --taskbar-height: 44px;
  --radius-window: 10px;
  --radius-card: 8px;
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, select, [contenteditable="true"] {
  user-select: text !important;
  -webkit-user-select: text !important;
}

button, a, .desktop-icon, .taskbar-btn, .task-card, .check-item, .active-task-bar-tab, .filter-btn, .kanban-tab-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  color-scheme: light;
  font-family: var(--font-arabic);
  background-color: var(--bg-desktop);
  color: var(--text-main);
  height: 100%;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  direction: rtl;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-x pan-y pinch-zoom;
}

/* --------------------------------------------------------------------------
   Desktop Wallpaper & Layout (Windows 11 Light Bloom Theme)
   -------------------------------------------------------------------------- */
#desktop {
  position: relative;
  width: 100vw;
  height: calc(100% - var(--taskbar-height));
  height: calc(100dvh - var(--taskbar-height));
  overflow: hidden;
  touch-action: pan-x pan-y pinch-zoom;
  background: 
    radial-gradient(circle at 75% 20%, rgba(186, 230, 253, 0.7) 0%, transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(224, 231, 255, 0.75) 0%, transparent 55%),
    radial-gradient(circle at 50% 45%, rgba(199, 210, 254, 0.45) 0%, transparent 60%),
    linear-gradient(135deg, #f0f4f9 0%, #e6edf8 50%, #f1f8f5 100%);
  background-attachment: fixed;
}

/* Subtle light grid overlay */
#desktop::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Desktop Icons Grid (Windows Multi-Column Layout) */
.desktop-icons {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  height: calc(100% - 32px);
  max-height: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px 14px;
  z-index: 10;
  pointer-events: none;
}

.desktop-icon {
  width: 86px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  pointer-events: auto;
}

.desktop-icon:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.desktop-icon:active {
  transform: scale(0.96);
}

.desktop-icon .icon-img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.desktop-icon .icon-label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #1e293b;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Windows System (Draggable, Minimizable, Resizable - Light Theme)
   -------------------------------------------------------------------------- */
.win-window {
  position: absolute;
  background: var(--acrylic-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--acrylic-border);
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 320px;
  min-height: 220px;
}

.win-window.active {
  border-color: var(--acrylic-border-focus);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px var(--acrylic-border-focus);
}

.win-window.minimized {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7) translateY(120px);
}

.win-window.maximized,
.win-window.maximized[id] {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  transform: none !important;
}

.win-window.maximized .win-content {
  padding: 20px 24px;
}

.win-window.maximized #hud-task-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.win-window.maximized #hud-task-container .hud-notes-box {
  min-height: 160px;
  max-height: 380px;
}

/* Window Titlebar */
.win-titlebar {
  height: 38px;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid var(--acrylic-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: grab;
  user-select: none;
}

.win-titlebar:active {
  cursor: grabbing;
}

.win-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.win-title-icon {
  font-size: 15px;
}

/* Controls: Minimize, Maximize, Close */
.win-controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.win-ctrl-btn {
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s;
  font-size: 11px;
}

.win-ctrl-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.win-ctrl-btn.close:hover {
  background: #e11d48;
  color: #fff;
}

/* Window Content Body */
.win-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.win-content::-webkit-scrollbar {
  width: 6px;
}
.win-content::-webkit-scrollbar-track {
  background: transparent;
}
.win-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Special Feature: Active Task Live Board (لوحة المهمة الشغالة - وضع نهاري)
   -------------------------------------------------------------------------- */
#win-active-task {
  width: 580px;
  height: 620px;
  max-width: 95vw;
  max-height: 88vh;
}

.active-task-hero {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: var(--radius-card);
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.active-task-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #10b981, #f59e0b, #0284c7);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.active-layer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0369a1;
  margin-bottom: 8px;
}

.active-task-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 6px;
}

.active-task-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Giant Digital Focus Timer (Daylight Style) */
.timer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.timer-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 600;
}

.timer-display {
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(2, 132, 199, 0.15);
  direction: ltr;
}

.timer-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  font-family: var(--font-arabic);
}

.btn-timer.primary {
  background: #0284c7;
  color: #fff;
}
.btn-timer.primary:hover {
  background: #0369a1;
}

.btn-timer.warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #b45309;
}
.btn-timer.warning:hover {
  background: rgba(245, 158, 11, 0.22);
}

.btn-timer.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #065f46;
}
.btn-timer.success:hover {
  background: rgba(16, 185, 129, 0.25);
}

.btn-timer.secondary {
  background: #f1f5f9;
  color: var(--text-main);
  border-color: rgba(0, 0, 0, 0.08);
}
.btn-timer.secondary:hover {
  background: #e2e8f0;
}

/* Subtasks Checklist (Daylight Style) */
.section-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.checklist-container {
  background: rgba(241, 245, 249, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.12s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.check-item:hover {
  background: #f8fafc;
  border-color: rgba(2, 132, 199, 0.3);
}

.check-item.done {
  opacity: 0.6;
}

.check-item.done .check-title {
  text-decoration: line-through;
  color: var(--text-dim);
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  background: #fff;
}

.check-item.done .custom-checkbox {
  background: #10b981;
  border-color: #10b981;
}

.check-item.done .custom-checkbox::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.check-title {
  font-size: 13px;
  color: #1e293b;
  flex: 1;
}

/* Live Scratchpad / Notes (Daylight Style) */
.notes-container textarea {
  width: 100%;
  height: 70px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  color: var(--text-main);
  padding: 8px 12px;
  font-family: var(--font-arabic);
  font-size: 12px;
  resize: none;
  outline: none;
  transition: border-color 0.15s;
}

.notes-container textarea:focus {
  border-color: #0284c7;
}

/* ==========================================================================
   Clean & Practical Active Task HUD
   (اسم المهمة، خطواتها، ملاحظات)
   ========================================================================== */
#hud-task-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 24px;
}

.hud-header-bar {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.hud-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  word-break: break-word;
}

.hud-card-section {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.hud-steps-section {
  padding: 10px 12px;
}

.hud-checklist-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hud-checklist-box:not(:empty) {
  margin-bottom: 6px;
}

/* Embedded Add Button inside the Subtask Input */
.hud-subtask-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.hud-subtask-input {
  width: 100%;
  padding: 8px 12px 8px 36px; /* 36px on left for the embedded + button in RTL */
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--font-arabic);
  font-size: 12.5px;
  background: #f8fafc;
  outline: none;
  transition: all 0.15s;
}

.hud-subtask-input:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}

.hud-btn-add-inline {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: none;
  background: #0284c7;
  color: #ffffff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.hud-btn-add-inline:hover {
  background: #0369a1;
  transform: translateY(-50%) scale(1.05);
}

.hud-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Bottom Action Buttons - Compact, harmonious and non-distracting */
.hud-bottom-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 2px;
}

.btn-hud-bottom, .btn-hud-compact {
  height: 33px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-arabic);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  user-select: none;
  flex: initial;
}

.btn-hud-bottom.complete, .btn-hud-compact.complete {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.25);
}
.btn-hud-bottom.complete:hover, .btn-hud-compact.complete:hover {
  background: #059669;
}

.btn-hud-bottom.pause, .btn-hud-compact.pause {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: #b45309;
}
.btn-hud-bottom.pause:hover, .btn-hud-compact.pause:hover {
  background: rgba(245, 158, 11, 0.22);
}

.btn-hud-bottom.resume, .btn-hud-compact.resume {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.25);
}
.btn-hud-bottom.resume:hover, .btn-hud-compact.resume:hover {
  background: #0369a1;
}

.hud-save-indicator {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.hud-notes-box {
  width: 100%;
  min-height: 75px;
  max-height: 200px;
  resize: vertical;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  font-family: var(--font-arabic);
  font-size: 12.5px;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.5;
  outline: none;
  transition: all 0.15s;
}
.hud-notes-box:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* --------------------------------------------------------------------------
   Task Explorer Window (Kanban / List - Daylight Style)
   -------------------------------------------------------------------------- */
#win-tasks-explorer {
  width: 900px;
  height: 600px;
  max-width: 96vw;
  max-height: 90vh;
}

.explorer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 6px 12px;
  flex: 1;
  min-width: 180px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.search-box input {
  background: transparent;
  border: none;
  color: #0f172a;
  outline: none;
  font-family: var(--font-arabic);
  font-size: 13px;
  width: 100%;
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.filter-pills {
  display: flex;
  gap: 6px;
}

.filter-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s;
  font-family: var(--font-arabic);
}

.filter-btn.active, .filter-btn:hover {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}

/* Kanban Columns */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  flex: 1;
  overflow-y: auto;
}

.kanban-col {
  background: rgba(241, 245, 249, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.col-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.col-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  font-weight: bold;
}

/* Task Card inside Kanban */
.task-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.task-card.is-active-task {
  border: 2px solid #059669;
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.2);
}

.task-card.is-active-task::before {
  content: '⚡ جاري العمل عليها الآن';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #059669;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.task-layer-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-layer-n { background: rgba(2, 132, 199, 0.12); color: #0284c7; border: 1px solid rgba(2, 132, 199, 0.25); }
.tag-layer-w { background: rgba(147, 51, 234, 0.12); color: #7e22ce; border: 1px solid rgba(147, 51, 234, 0.25); }
.tag-layer-d { background: rgba(16, 185, 129, 0.12); color: #047857; border: 1px solid rgba(16, 185, 129, 0.25); }

.task-priority-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.priority-urgent { background: rgba(225, 29, 72, 0.12); color: #be123c; }
.priority-high { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.priority-medium { background: rgba(2, 132, 199, 0.12); color: #0369a1; }
.priority-low { background: rgba(100, 116, 139, 0.12); color: #475569; }

.task-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.task-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-run-task {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #0284c7;
  color: #fff;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-arabic);
}

.btn-run-task:hover {
  background: #0369a1;
  transform: scale(1.02);
}

.card-icon-btns {
  display: flex;
  gap: 4px;
}

.btn-icon-sm {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.12s;
}

.btn-icon-sm:hover {
  background: #e2e8f0;
  color: #000;
}

.btn-icon-sm.delete:hover {
  background: #e11d48;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Windows Task Manager & System Telemetry (Daylight Style)
   -------------------------------------------------------------------------- */
#win-system-telemetry {
  width: 680px;
  height: 520px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.telemetry-stat-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.stat-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #059669);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.sys-info-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* --------------------------------------------------------------------------
   WINDOWS TASKBAR (شريط المهام السفلي - Windows 11 Light)
   -------------------------------------------------------------------------- */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--taskbar-height);
  background: var(--taskbar-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-taskbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 9999;
}

.taskbar-center-apps {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.taskbar-btn {
  height: 34px;
  min-width: 34px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  font-family: var(--font-arabic);
}

.taskbar-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.06);
}

.taskbar-btn.active {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

.taskbar-btn.active::after {
  content: '';
  position: absolute;
  bottom: 1.5px;
  width: 14px;
  height: 2.5px;
  background: #0284c7;
  border-radius: 2px;
}

.taskbar-btn-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.taskbar-btn-label {
  font-size: 11px;
  font-weight: 600;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
  user-select: none;
}

#taskbar-windows-container {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 4px;
  max-width: 50vw;
  overflow-x: auto;
  scrollbar-width: none;
}

#taskbar-windows-container::-webkit-scrollbar {
  display: none;
}

/* Start Button */
.btn-start {
  height: 34px;
  min-width: 34px;
  padding: 0;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.25);
}
.btn-start:hover {
  background: rgba(2, 132, 199, 0.22);
}

/* Taskbar Group Badge */
.taskbar-group-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #0284c7;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.4);
  margin-inline-start: 3px;
}

/* Stacked subtle card effect for multiple open windows of the same app */
.taskbar-btn.has-multiple::before {
  content: '';
  position: absolute;
  top: 2px;
  right: 6px;
  left: 6px;
  height: 3px;
  background: rgba(2, 132, 199, 0.35);
  border-radius: 3px 3px 0 0;
}

/* Floating Taskbar Group Popup Menu (Windows 11 Style) */
.taskbar-group-popup {
  position: fixed;
  z-index: 10000;
  display: none;
  flex-direction: column;
  min-width: 240px;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 6px;
  direction: rtl;
  font-family: var(--font-arabic);
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.taskbar-group-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.taskbar-group-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 4px;
}

.taskbar-group-popup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.taskbar-group-popup-count {
  font-size: 10.5px;
  font-weight: 700;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.1);
  padding: 1px 7px;
  border-radius: 10px;
}

.taskbar-group-popup-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.taskbar-group-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  transition: all 0.12s ease;
  user-select: none;
}

.taskbar-group-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.taskbar-group-item.active {
  background: rgba(2, 132, 199, 0.09);
}

.taskbar-group-item-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.taskbar-group-item-title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.taskbar-group-item.active .taskbar-group-item-title {
  color: #0284c7;
  font-weight: 700;
}

.taskbar-group-item-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0284c7;
  flex-shrink: 0;
}

.taskbar-group-item-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.taskbar-group-item-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

@media (max-width: 768px) {
  .taskbar-group-popup {
    left: 10px !important;
    right: 10px !important;
    max-width: calc(100vw - 20px) !important;
    min-width: unset !important;
  }
}

/* ==========================================================================
   MULTI-TASK RUNNING TASKBAR CONTAINER (حاوية تشغيل المهام المتعددة في شريط المهام)
   ========================================================================== */
#taskbar-running-container {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 58vw;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#taskbar-running-container::-webkit-scrollbar {
  display: none;
}

.active-task-bar-tab {
  height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transition: all 0.15s;
  font-family: var(--font-arabic);
  color: var(--text-main);
  position: relative;
}

.active-task-bar-tab:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.06);
}

.active-task-bar-tab.selected {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

.active-task-bar-tab.selected::after {
  content: '';
  position: absolute;
  bottom: 1.5px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2.5px;
  background: #059669; /* Green instead of blue to distinguish tasks */
  border-radius: 2px;
}

.active-pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 5px #059669;
  animation: pulse-dot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #059669; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.active-task-bar-title {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  max-width: 115px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-task-bar-timer {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background: rgba(2, 132, 199, 0.12);
  padding: 1px 6px;
  border-radius: 10px;
  border: 1px solid rgba(2, 132, 199, 0.2);
  direction: ltr;
}

.btn-tab-quick-close {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text-muted);
  font-size: 9px;
  cursor: pointer;
  transition: all 0.1s;
  margin-right: 2px;
}
.btn-tab-quick-close:hover {
  background: #e11d48;
  color: #fff;
}

/* Running Tasks Multi-Group Styling */
.active-task-bar-tab.has-multiple::before {
  content: '';
  position: absolute;
  top: 2px;
  right: 6px;
  left: 6px;
  height: 3px;
  background: rgba(16, 185, 129, 0.4);
  border-radius: 3px 3px 0 0;
}

.taskbar-tasks-popup {
  min-width: 270px;
  max-width: 350px;
}

.taskbar-task-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.taskbar-task-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.taskbar-task-action-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-group-mini-action:hover {
  background: rgba(0, 0, 0, 0.07) !important;
}

/* Tab Bar inside Live HUD Window */
.hud-tabs-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  scrollbar-width: none;
}
.hud-tabs-bar::-webkit-scrollbar {
  display: none;
}

.hud-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.hud-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.hud-tab-btn.active {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.25);
}

/* System Tray (Right Side) */
.system-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.tray-item {
  padding: 2px 6px;
  height: 30px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.12s;
}

.tray-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000;
}

.clock-tray {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.clock-time {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-mono);
}

.clock-date {
  font-size: 10px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   START MENU (قائمة ابدأ - Windows 11 Light)
   -------------------------------------------------------------------------- */
#start-menu {
  position: fixed;
  bottom: calc(var(--taskbar-height) + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 520px;
  height: 540px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#start-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.start-search {
  padding: 18px 20px 10px;
}

.start-search-box {
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.start-search-box input {
  background: transparent;
  border: none;
  color: #0f172a;
  outline: none;
  font-family: var(--font-arabic);
  font-size: 13px;
  width: 100%;
}

.start-apps-grid {
  flex: 1;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-content: start;
}

.start-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s;
  text-align: center;
}

.start-app-item:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.start-app-icon {
  font-size: 26px;
}

.start-app-name {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
}

.start-search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.start-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}

.start-search-item:hover, .start-search-item.active {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

.start-search-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.start-search-item-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.start-search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.start-search-item:hover .start-search-item-title,
.start-search-item.active .start-search-item-title {
  color: #0284c7;
}

.start-search-item-meta {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.start-search-empty {
  padding: 36px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.start-footer {
  padding: 12px 20px;
  background: rgba(248, 250, 252, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.start-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.start-action-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.start-action-icon-btn:hover {
  background: #f1f5f9;
  border-color: rgba(2, 132, 199, 0.3);
  transform: translateY(-1px);
}

.start-action-icon-btn:active {
  transform: scale(0.95);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.user-info {
  line-height: 1.2;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.user-role {
  font-size: 10px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Modal Dialogs & Forms (Daylight Style)
   -------------------------------------------------------------------------- */
.win-form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.win-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.win-input, .win-select, .win-textarea {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  color: #0f172a;
  padding: 8px 12px;
  font-family: var(--font-arabic);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.win-input:focus, .win-select:focus, .win-textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.btn-primary-win {
  padding: 8px 18px;
  background: #0284c7;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-arabic);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary-win:hover {
  background: #0369a1;
}

/* Architecture Cards in About N-O-D */
.about-layer-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Toast Notifications (Daylight Style) */
#toast-container {
  position: fixed;
  bottom: calc(var(--taskbar-height) + 16px);
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10001;
  pointer-events: none;
}

.win-toast {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  animation: slideInToast 0.25s ease forwards;
  pointer-events: auto;
  color: #0f172a;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.kanban-mobile-tabs {
  display: none;
}

/* ==========================================================================
   Desktop Folders, Notepad & File Explorer Styles
   ========================================================================== */

/* Desktop Folder Badge */
.desktop-icon .folder-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: #0284c7;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Notepad App Window (المفكرة)
   ========================================================================== */
.notepad-window-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  background: #ffffff;
  overflow: hidden;
}

.notepad-top-bar {
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notepad-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.notepad-field-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}

.notepad-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.notepad-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notepad-status-hint {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
}

.notepad-editor-wrap {
  flex: 1;
  position: relative;
  background: #ffffff;
}

.notepad-textarea {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-family: 'Cairo', 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: #0f172a;
  resize: none;
  background: transparent;
}

.notepad-statusbar {
  height: 28px;
  background: #f1f5f9;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ==========================================================================
   Windows File Explorer for Folders (مستكشف المجلدات والملفات)
   ========================================================================== */
.folder-explorer-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  background: #f8fafc;
  overflow: hidden;
}

.explorer-address-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-address-nav, .btn-address-refresh {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}

.btn-address-nav:hover, .btn-address-refresh:hover {
  background: #f1f5f9;
}

.explorer-path-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.path-segment {
  cursor: pointer;
  transition: color 0.15s;
}

.path-segment:hover {
  color: #0284c7;
  text-decoration: underline;
}

.path-current {
  font-weight: 700;
  color: #0284c7;
}

.path-sep {
  color: #94a3b8;
  font-weight: 700;
  user-select: none;
}


/* Folder 3-Dots Dropdown Menu */
.folder-menu-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-folder-menu-trigger {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.btn-folder-menu-trigger:hover,
.btn-folder-menu-trigger.active {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

.btn-folder-menu-trigger .dots-icon {
  font-size: 16px;
  letter-spacing: 1.5px;
  line-height: 1;
  font-weight: 900;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}

.btn-folder-menu-trigger:hover .dots-icon,
.btn-folder-menu-trigger.active .dots-icon {
  color: #0284c7;
}

.folder-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 6px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dropdownFadeIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.folder-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-arabic);
  color: #1e293b;
  cursor: pointer;
  text-align: right;
  transition: all 0.12s;
  white-space: nowrap;
}

.folder-dropdown-item:hover {
  background: #f1f5f9;
  color: #0284c7;
}

.folder-dropdown-item .item-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.folder-dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 4px 6px;
}

.folder-dropdown-item.danger {
  color: #e11d48;
}

.folder-dropdown-item.danger:hover {
  background: rgba(225, 29, 72, 0.08);
  color: #be123c;
}

.btn-explorer-action {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-arabic);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-explorer-action.primary {
  background: #0284c7;
  color: #ffffff;
}
.btn-explorer-action.primary:hover {
  background: #0369a1;
}

.btn-explorer-action.secondary {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.2);
}
.btn-explorer-action.secondary:hover {
  background: rgba(2, 132, 199, 0.18);
}

.btn-explorer-action.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}
.btn-explorer-action.danger:hover {
  background: rgba(239, 68, 68, 0.18);
}

.folder-items-grid {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 14px;
  align-content: start;
}

.explorer-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.explorer-grid-item:hover {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
}

.explorer-grid-item.selected {
  background: rgba(2, 132, 199, 0.15);
  border-color: #0284c7;
}

.explorer-item-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 6px;
  position: relative;
}

.explorer-item-name {
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  word-break: break-word;
  max-width: 95px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explorer-item-tag {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 4px;
  font-weight: 600;
}

.explorer-item-tag.task-done {
  background: rgba(16, 185, 129, 0.15);
  color: #065f46;
}

.explorer-item-tag.task-prog {
  background: rgba(2, 132, 199, 0.15);
  color: #0369a1;
}

.explorer-item-tag.task-todo {
  background: rgba(100, 116, 139, 0.15);
  color: #334155;
}

.explorer-item-tag.note-tag {
  background: rgba(99, 102, 241, 0.15);
  color: #4338ca;
}

.explorer-statusbar {
  height: 28px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ==========================================================================
   Windows Modal Dialogs
   ========================================================================== */
.win-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.win-modal-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  animation: modalPop 0.2s ease-out forwards;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.win-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #f8fafc;
}

.win-modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.btn-close-modal {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-close-modal:hover {
  background: rgba(0, 0, 0, 0.06);
}

.win-modal-body {
  padding: 18px;
}

.win-modal-footer {
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   MOBILE & TOUCH RESPONSIVE STYLESHEET (الهواتف الذكية والشاشات الصغيرة)
   ========================================================================== */
@media (max-width: 768px) {
  /* Full Screen Mobile Window Model */
  .win-window {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--taskbar-height) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100% - var(--taskbar-height)) !important;
    height: calc(100dvh - var(--taskbar-height)) !important;
    max-height: calc(100dvh - var(--taskbar-height)) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
    margin: 0 !important;
  }

  .win-window.minimized {
    display: none !important;
  }

  body.keyboard-open #taskbar {
    display: none !important;
  }

  body.keyboard-open .win-window {
    top: var(--keyboard-top, 0px) !important;
    bottom: auto !important;
    height: var(--keyboard-height, 100%) !important;
    max-height: var(--keyboard-height, 100%) !important;
  }

  body.keyboard-open .win-content {
    scroll-padding-bottom: 120px !important;
  }

  /* Sticky App Header / Titlebar */
  .win-titlebar {
    height: 48px !important;
    padding: 0 12px !important;
    cursor: default !important;
    flex-shrink: 0 !important;
  }

  .win-title-group {
    font-size: 13px !important;
    max-width: 75% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }

  .win-ctrl-btn.minimize {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
    margin-left: 6px !important;
  }

  .win-ctrl-btn.maximize {
    display: none !important;
  }

  .win-ctrl-btn.close {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border-radius: 8px !important;
    background: rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .win-content {
    padding: 12px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Desktop Icons arranged in clean mobile grid */
  .desktop-icons {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: var(--taskbar-height) !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: max(36px, calc(env(safe-area-inset-top, 0px) + 20px)) 16px 24px 16px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px 12px !important;
    justify-items: center !important;
    align-content: start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    pointer-events: auto !important;
    z-index: 10 !important;
  }

  .desktop-icon {
    width: 92px !important;
    padding: 8px 6px !important;
  }

  .desktop-icon .icon-img {
    width: 56px !important;
    height: 56px !important;
    font-size: 28px !important;
    border-radius: 14px !important;
  }

  .desktop-icon .icon-label {
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
  }

  /* Mobile Taskbar */
  #taskbar {
    height: 38px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  @media (display-mode: standalone) {
    #taskbar {
      height: calc(38px + env(safe-area-inset-bottom, 0px)) !important;
      padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }
  }

  .taskbar-center-apps {
    position: static !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 4px !important;
    scrollbar-width: none !important;
  }

  .taskbar-center-apps::-webkit-scrollbar {
    display: none !important;
  }

  #taskbar-running-container {
    max-width: none !important;
    flex-shrink: 0 !important;
    gap: 4px !important;
  }

  .active-task-bar-tab {
    height: 30px !important;
    padding: 0 6px !important;
    gap: 5px !important;
  }

  .active-task-bar-title {
    max-width: 80px !important;
    font-size: 10px !important;
  }

  .taskbar-btn {
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 4px !important;
    flex-shrink: 0 !important;
  }

  .btn-start {
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
  }

  .taskbar-btn-label {
    display: none !important;
  }

  #taskbar-windows-container {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .system-tray {
    flex-shrink: 0 !important;
    gap: 6px !important;
  }

  .system-tray .tray-item:first-child span:last-child {
    display: none !important;
  }

  /* Start Menu Mobile Bottom Sheet */
  #start-menu {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--taskbar-height) !important;
    transform: translateY(100%) !important;
    border-radius: 18px 18px 0 0 !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px !important;
  }

  #start-menu.open {
    transform: translateY(0) !important;
  }

  /* Kanban Mobile Tabs & Columns */
  .kanban-mobile-tabs {
    display: flex !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
  }

  .kanban-tab-btn {
    flex: 1 !important;
    padding: 8px 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    font-family: var(--font-arabic) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.15s !important;
  }

  .kanban-tab-btn.active {
    background: #0284c7 !important;
    color: #fff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25) !important;
  }

  .kanban-board {
    display: block !important;
    overflow-y: visible !important;
  }

  .kanban-col {
    margin-bottom: 14px !important;
    width: 100% !important;
  }

  #col-container-progress, #col-container-done {
    display: none;
  }

  .explorer-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .search-box {
    width: 100% !important;
    min-width: 0 !important;
  }

  .filter-pills {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
    width: 100% !important;
  }

  /* Form inputs font-size to prevent iOS zoom */
  .win-input, .win-select, .win-textarea {
    font-size: 16px !important;
  }

  #win-new-task form > div[style*="grid-template-columns"],
  #win-task-details form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Live HUD on Mobile */
  .timer-display {
    font-size: 38px !important;
  }

  .timer-controls {
    gap: 6px !important;
  }

  .btn-timer {
    min-height: 38px !important;
    font-size: 12px !important;
  }

  .active-task-hero {
    padding: 14px !important;
  }

  .active-task-title {
    font-size: 16px !important;
  }

  .hud-tabs-bar {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding-bottom: 4px !important;
  }

  /* Clean HUD on Mobile */
  .hud-header-bar {
    padding: 8px 12px !important;
  }
  .hud-title {
    font-size: 15px !important;
  }
  .hud-bottom-actions {
    gap: 8px !important;
    justify-content: flex-end !important;
  }
  .btn-hud-bottom, .btn-hud-compact {
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 11.5px !important;
    flex: initial !important;
  }
  .hud-notes-box {
    font-size: 13px !important;
    min-height: 70px !important;
  }
  .hud-subtask-input {
    font-size: 13px !important;
  }
}

/* ==========================================================================
   THIS PC (هذا الكمبيوتر) & NOD CLOUD DRIVE (D:)
   ========================================================================== */
.this-pc-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  overflow: hidden;
  padding: 0 !important;
}

.this-pc-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 24px;
}

.btn-this-pc-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-arabic);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-this-pc-action:hover {
  background: #0369a1;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.btn-this-pc-action.secondary {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.btn-this-pc-action.secondary:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

.this-pc-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.this-pc-section-header .section-arrow {
  font-size: 12px;
  color: var(--text-muted);
}

.this-pc-section-header .section-title {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  font-family: var(--font-arabic);
  white-space: nowrap;
}

.this-pc-section-header .section-line {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.btn-section-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-arabic);
  color: #0284c7;
  cursor: pointer;
  transition: all 0.12s;
}

.btn-section-add:hover {
  background: #f0f9ff;
  border-color: #0284c7;
}

/* Windows 11 Drive Card */
.drives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.drive-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.drive-card:hover {
  background: #f0f7ff;
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12);
  transform: translateY(-1px);
}

.drive-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  font-size: 24px;
  flex-shrink: 0;
}

.drive-badge-cloud {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 13px;
}

.drive-details {
  flex: 1;
  min-width: 0;
}

.drive-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.drive-label {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-status-tag {
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 1px 6px;
  white-space: nowrap;
}

.drive-meter {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}

.drive-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.drive-capacity-text {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drive-meta-sub {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 2px;
}

/* This PC Folders Grid */
.this-pc-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.this-pc-folder-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 7px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(2, 132, 199, 0.15);
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.15s;
}

.this-pc-folder-card:hover {
  background: #f8fafc;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.this-pc-folder-card .fld-icon {
  font-size: 22px;
}

.this-pc-folder-card .fld-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.this-pc-folder-card .fld-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* Connect Modal */
.connect-drive-modal-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.connect-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #bae6fd;
}

.connect-intro-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.connect-intro-text h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #0369a1;
}

.connect-intro-text p {
  margin: 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
}

.connect-credentials-card {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cred-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cred-row .cred-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

.cred-input-wrap {
  display: flex;
  gap: 6px;
}

.cred-input-wrap input,
.cred-row input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: #ffffff;
  font-size: 12.5px;
  font-family: monospace;
  direction: ltr;
  text-align: left;
}

.btn-copy-cred,
.btn-copy-code {
  padding: 6px 14px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s;
}

.btn-copy-cred:hover,
.btn-copy-code:hover {
  background: #0369a1;
}

.cred-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.connect-methods-section .methods-title {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 10px;
}

.methods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.method-badge {
  font-size: 11px;
  font-weight: 800;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.method-content {
  flex: 1;
}

.method-content h6 {
  margin: 0 0 3px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
}

.method-content p {
  margin: 0 0 6px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.5;
}

.code-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #0f172a;
  color: #f8fafc;
  padding: 6px 10px;
  border-radius: 6px;
  direction: ltr;
}

.code-copy-box code {
  font-family: monospace;
  font-size: 11.5px;
  overflow-x: auto;
  white-space: nowrap;
}

.btn-download-zip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #10b981;
  color: #ffffff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-download-zip-link:hover {
  background: #059669;
}

.explorer-item-tag.file-tag {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

/* ==========================================================================
   PHOTO VIEWER (عارض الصور)
   ========================================================================== */
.photo-viewer-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #18181b;
  overflow: hidden;
  padding: 0 !important;
}

.photo-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #27272a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.photo-tools-left, .photo-tools-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.photo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  background: #3f3f46;
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-arabic);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.photo-btn:hover {
  background: #52525b;
  color: #ffffff;
}

.photo-btn.download-btn {
  background: #0284c7;
  border-color: #38bdf8;
}

.photo-btn.download-btn:hover {
  background: #0369a1;
}

.photo-canvas-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  position: relative;
  background: radial-gradient(circle, #27272a 10%, #18181b 90%);
  padding: 20px;
}

.photo-canvas-area img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  user-select: none;
}

.photo-statusbar {
  background: #27272a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #a1a1aa !important;
}

/* ==========================================================================
   PDF VIEWER (قارئ PDF)
   ========================================================================== */
.pdf-viewer-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #323639;
  overflow: hidden;
  padding: 0 !important;
}

.pdf-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #202124;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-info-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-icon-tag {
  background: #e11d48;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.pdf-filename {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.pdf-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #3c4043;
  color: #e8eaed;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-arabic);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.pdf-action-btn:hover {
  background: #5f6368;
  color: #ffffff;
}

.pdf-action-btn.download {
  background: #e11d48;
  border-color: #f43f5e;
}

.pdf-action-btn.download:hover {
  background: #be123c;
}

.pdf-frame-wrap {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  background: #525659;
}

.pdf-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   WORD VIEWER (عارض مستندات وورد Word DOCX)
   ========================================================================== */
.word-viewer-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f3f2f1;
  overflow: hidden;
  padding: 0 !important;
}

.word-ribbon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #2b579a;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.word-ribbon-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.word-badge-w {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #185abd;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
}

.word-filename {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.word-ribbon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.word-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-arabic);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.word-action-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.word-action-btn.download {
  background: #ffffff;
  color: #2b579a;
  border-color: #ffffff;
}

.word-action-btn.download:hover {
  background: #f0f7ff;
}

.word-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 30px 15px;
  display: flex;
  justify-content: center;
}

.word-paper-container {
  width: 100%;
  max-width: 820px;
}

.word-paper {
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 50px 60px;
  min-height: 800px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, 'Noto Naskh Arabic';
  font-size: 14px;
  line-height: 1.8;
  color: #1e293b;
  direction: rtl;
  text-align: right;
}

.word-paper h1 { font-size: 24px; font-weight: 800; color: #0f172a; margin: 20px 0 12px; border-bottom: 2px solid #e2e8f0; padding-bottom: 6px; }
.word-paper h2 { font-size: 20px; font-weight: 800; color: #1e293b; margin: 18px 0 10px; }
.word-paper h3 { font-size: 16px; font-weight: 700; color: #334155; margin: 14px 0 8px; }
.word-paper p { margin-bottom: 12px; }
.word-paper ul, .word-paper ol { margin: 10px 24px 16px; }
.word-paper li { margin-bottom: 6px; }

.word-paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}

.word-paper table, .word-paper th, .word-paper td {
  border: 1px solid #cbd5e1;
}

.word-paper th, .word-paper td {
  padding: 8px 12px;
  text-align: right;
}

.word-paper th {
  background: #f1f5f9;
  font-weight: 700;
}

.word-statusbar {
  background: #e2e8f0 !important;
  color: #475569 !important;
  border-top: 1px solid #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   FEATURE 1: EXCEL VIEWER (عارض جداول إكسيل)
   -------------------------------------------------------------------------- */
.excel-viewer-titlebar {
  background: #107c41 !important;
  color: #ffffff !important;
}

.excel-viewer-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 36px);
  background: #f8fafc;
}

.excel-ribbon-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: #107c41;
  color: #ffffff;
  flex-shrink: 0;
}

.excel-ribbon-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.excel-badge-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #ffffff;
  color: #107c41;
  font-weight: 900;
  font-size: 14px;
  border-radius: 4px;
}

.excel-filename {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.excel-ribbon-search {
  flex: 1;
  max-width: 320px;
}

.excel-ribbon-search input {
  width: 100%;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12px;
  font-family: var(--font-arabic);
  outline: none;
  transition: all 0.2s;
}

.excel-ribbon-search input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.excel-ribbon-search input:focus {
  background: #ffffff;
  color: #0f172a;
}

.excel-ribbon-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.excel-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-arabic);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.excel-action-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.excel-action-btn.download {
  background: #ffffff;
  color: #107c41;
  border-color: #ffffff;
}

.excel-action-btn.download:hover {
  background: #f0fdf4;
}

.excel-viewport {
  flex: 1;
  overflow: auto;
  background: #ffffff;
  position: relative;
}

.excel-table-wrap {
  min-width: 100%;
  display: inline-block;
}

.excel-data-table {
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
  font-family: 'Segoe UI', Tahoma, sans-serif, var(--font-arabic);
}

.excel-data-table th, .excel-data-table td {
  border: 1px solid #d1d5db;
  padding: 6px 12px;
  text-align: right;
  white-space: nowrap;
}

.excel-data-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #334155;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.excel-data-table tr:hover td {
  background: #f0fdf4;
}

.excel-row-idx {
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 600;
  text-align: center !important;
  width: 40px;
  position: sticky;
  right: 0;
  z-index: 1;
}

.excel-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px;
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.excel-sheet-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.excel-sheet-tab-btn {
  padding: 4px 14px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.excel-sheet-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.excel-sheet-tab-btn.active {
  background: #ffffff;
  color: #107c41;
  border-color: #cbd5e1;
  border-bottom: 2px solid #107c41;
  font-weight: 800;
}

.excel-statusbar-info {
  font-size: 11px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   FEATURE 2: RECYCLE BIN (سلة المحذوفات)
   -------------------------------------------------------------------------- */
.recycle-bin-titlebar {
  background: linear-gradient(90deg, #b91c1c, #dc2626) !important;
  color: #ffffff !important;
}

.recycle-bin-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 36px);
  background: #ffffff;
}

.recycle-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.btn-recycle-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-recycle-action:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-recycle-action.danger:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.recycle-toolbar-divider {
  width: 1px;
  height: 18px;
  background: #cbd5e1;
  margin: 0 4px;
}

.recycle-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.recycle-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.recycle-table th {
  text-align: right;
  padding: 8px 10px;
  color: #64748b;
  font-weight: 700;
  border-bottom: 2px solid #e2e8f0;
}

.recycle-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.recycle-table tr:hover td {
  background: #f8fafc;
}

.recycle-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.recycle-badge.task { background: #e0f2fe; color: #0284c7; }
.recycle-badge.note { background: #ede9fe; color: #7c3aed; }
.recycle-badge.file { background: #fef3c7; color: #d97706; }

.btn-trash-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
}

.btn-trash-row.restore:hover {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.btn-trash-row.del:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.recycle-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 280px;
  color: #64748b;
  text-align: center;
}

.recycle-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   FEATURE 3: SPOTLIGHT SEARCH (البحث الشامل الفوري)
   -------------------------------------------------------------------------- */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  z-index: 999999 !important;
  direction: rtl;
  animation: spotlightFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spotlightFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.spotlight-card {
  width: 620px;
  max-width: 92%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spotlight-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.spotlight-icon {
  font-size: 20px;
  color: #0284c7;
}

.spotlight-header input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  font-family: var(--font-arabic);
}

.btn-spotlight-close {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.spotlight-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px 12px;
}

.spotlight-group {
  margin-bottom: 10px;
}

.spotlight-group-title {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  padding: 6px 10px 4px;
  text-transform: uppercase;
}

.spotlight-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s;
  margin-bottom: 2px;
}

.spotlight-item:hover, .spotlight-item.active {
  background: #0284c7;
  color: #ffffff;
}

.spotlight-item:hover .spotlight-item-meta, .spotlight-item.active .spotlight-item-meta {
  color: rgba(255, 255, 255, 0.85);
}

.spotlight-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spotlight-item-icon {
  font-size: 18px;
}

.spotlight-item-text {
  font-size: 13px;
  font-weight: 600;
}

.spotlight-item-meta {
  font-size: 11px;
  color: #64748b;
}

.spotlight-empty-hint {
  padding: 36px 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.spotlight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #f8fafc;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 11px;
  color: #64748b;
}

.spotlight-badge {
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   FEATURE 4: WINDOWS LOCK SCREEN (شاشة القفل ورمز PIN)
   -------------------------------------------------------------------------- */
.win-lock-screen {
  position: fixed;
  inset: 0;
  z-index: 9999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lock-screen-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.75) 0%, rgba(2, 6, 23, 0.94) 100%),
              url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
}

.lock-screen-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  animation: lockFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lockFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.lock-time-box {
  text-align: center;
  color: #ffffff;
}

.lock-time {
  font-size: 72px;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lock-date {
  font-size: 18px;
  font-weight: 600;
  margin-top: 8px;
  color: #e2e8f0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.lock-user-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.lock-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}

.lock-user-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.lock-pin-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 4px 6px;
  transition: all 0.2s;
}

.lock-pin-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

.lock-pin-box.shake {
  animation: lockShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: #ef4444;
}

@keyframes lockShake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.lock-pin-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 18px;
  font-family: var(--font-mono);
  letter-spacing: 4px;
  text-align: center;
  width: 130px;
}

.lock-pin-input::placeholder {
  font-size: 12px;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-arabic);
}

.btn-lock-submit {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: #0284c7;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-lock-submit:hover {
  background: #0369a1;
}

.lock-error-feedback {
  font-size: 12px;
  color: #fca5a5;
  min-height: 18px;
}

.lock-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.tray-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: default;
  user-select: none;
}

.tray-clock:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* --------------------------------------------------------------------------
   FEATURE 5: FLUENT CONTEXT MENU (قائمة النقر بالزر الأيمن)
   -------------------------------------------------------------------------- */
.win-context-menu {
  position: fixed;
  z-index: 999999 !important;
  right: auto !important;
  bottom: auto !important;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 6px;
  min-width: 210px;
  animation: contextMenuPop 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  direction: rtl;
}

@keyframes contextMenuPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.1s;
}

.context-menu-item:hover {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

.context-menu-item.danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

.context-menu-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.context-menu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 5px 6px;
}

/* --------------------------------------------------------------------------
   FEATURE 6: DRAG & DROP UPLOAD OVERLAY (السحب والإفلات)
   -------------------------------------------------------------------------- */
.folder-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 132, 199, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px dashed #0284c7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
  animation: dropOverlayFade 0.2s ease-out;
}

@keyframes dropOverlayFade {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.drop-overlay-box {
  background: #ffffff;
  padding: 24px 36px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.drop-icon {
  font-size: 40px;
  margin-bottom: 8px;
  animation: bounceDrop 0.8s infinite alternate ease-in-out;
}

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

.drop-title {
  font-size: 16px;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 4px;
}

.drop-subtitle {
  font-size: 12px;
  color: #64748b;
}

/* ==========================================================================
   FEATURE: WINDOWS EXE RUNNER (مشغل برامج ويندوز التفاعلي)
   ========================================================================== */
.exe-runner-window {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  min-width: 680px;
  min-height: 480px;
}

.exe-runner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  direction: rtl;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 10;
}

.exe-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.exe-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-arabic);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.exe-tool-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #38bdf8;
  color: #ffffff;
}

.exe-tool-btn.primary {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.exe-tool-btn.primary:hover {
  background: #0369a1;
}

.exe-tool-btn.danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.exe-tool-btn.danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}

.exe-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.exe-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.exe-status-badge.online .exe-status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.exe-status-badge.online {
  color: #4ade80;
}

.exe-dropdown-wrap {
  position: relative;
}

.exe-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 260px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 2px;
}

.exe-dropdown-menu.show {
  display: flex;
}

.exe-dropdown-header {
  font-size: 10.5px;
  font-weight: 800;
  color: #94a3b8;
  padding: 6px 10px 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exe-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.exe-app-quick-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: right;
  padding: 7px 10px;
  background: transparent;
  border: none;
  border-radius: 5px;
  color: #e2e8f0;
  font-size: 12px;
  font-family: var(--font-arabic);
  cursor: pointer;
  transition: all 0.12s;
}

.exe-app-quick-item:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.exe-custom-apps-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 160px;
  overflow-y: auto;
}

.exe-empty-hint {
  font-size: 11px;
  color: #64748b;
  padding: 6px 10px;
  text-align: center;
}

/* Mobile Touch & Mouse Navigation Bar for Windows EXE Runner */
.exe-mobile-touch-bar {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 10px;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 5;
}

.exe-mobile-touch-bar::-webkit-scrollbar {
  display: none;
}

.touch-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.touch-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-arabic);
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  touch-action: manipulation;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.touch-bar-btn:active, .touch-bar-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: scale(0.96);
}

.touch-bar-btn.icon-only {
  padding: 6px 10px;
  font-size: 14px;
}

/* Virtual Trackpad Overlay */
.exe-virtual-trackpad {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 210px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

.trackpad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trackpad-close-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
}

.trackpad-surface {
  flex: 1;
  margin: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
}

.trackpad-hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  pointer-events: none;
}

.trackpad-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
}

.trackpad-click-btn {
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-arabic);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  touch-action: manipulation;
  transition: all 0.1s ease;
}

.trackpad-click-btn:active {
  background: #0284c7;
  border-color: #38bdf8;
  transform: scale(0.96);
}

.trackpad-click-btn.double {
  background: rgba(2, 132, 199, 0.35);
  border-color: rgba(2, 132, 199, 0.6);
}

.exe-runner-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  display: flex;
}

.exe-vnc-iframe {
  width: 100%;
  height: 100%;
  flex: 1;
  border: none;
  display: block;
  background: #000000;
}

.exe-runner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  text-align: center;
  color: #f8fafc;
}

.exe-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.exe-loader-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #38bdf8;
}

.exe-loader-content p {
  font-size: 12px;
  color: #94a3b8;
}

.exe-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spinExe 0.8s linear infinite;
}

@keyframes spinExe {
  to { transform: rotate(360deg); }
}

/* Smart Touch Screen Overlay & Visual Feedback for Wine Runner */
.exe-touch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.exe-tap-ripple {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  pointer-events: none;
  z-index: 30;
  animation: tapRippleAnim 0.4s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
}

.exe-tap-ripple.single {
  background: rgba(2, 132, 199, 0.35);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.exe-tap-ripple.double {
  background: rgba(16, 185, 129, 0.45);
  border: 2px solid #34d399;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
}

.exe-tap-ripple.right {
  background: rgba(245, 158, 11, 0.45);
  border: 2px solid #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.8);
}

@keyframes tapRippleAnim {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.exe-touch-mode-hint {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: var(--font-arabic);
  pointer-events: none;
  z-index: 35;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: opacity 0.2s;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .exe-runner-window {
    min-width: 0 !important;
    min-height: 0 !important;
  }
}

/* ==========================================================================
   FEATURE: NOD BROWSER (بروازر نود • متصفح الويب المخصص)
   ========================================================================== */
.nod-browser-window {
  display: flex;
  flex-direction: column;
  background: #0b0f19;
  color: #f8fafc;
  overflow: hidden;
}

.browser-tabs-bar {
  background: #080c14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 38px;
  display: flex;
  align-items: flex-end;
  padding: 0 10px;
  gap: 6px;
  user-select: none;
}

.browser-tabs-list {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.browser-tabs-list::-webkit-scrollbar {
  display: none;
}

.browser-tab {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  max-width: 220px;
  min-width: 130px;
  transition: all 0.15s ease;
  position: relative;
}

.browser-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.browser-tab.active {
  background: #111827;
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 -2px 10px rgba(56, 189, 248, 0.12);
}

.browser-tab-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.browser-tab-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: right;
  direction: rtl;
}

.browser-tab-close {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
  flex-shrink: 0;
}

.browser-tab-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.btn-browser-tab-add {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.btn-browser-tab-add:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #fff;
  transform: scale(1.05);
}

.browser-toolbar {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.browser-nav-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.browser-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.browser-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.browser-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.browser-btn.external-btn {
  width: auto;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.4);
}

.browser-btn.external-btn:hover {
  background: rgba(99, 102, 241, 0.32);
  color: #fff;
}

.browser-omnibox-form {
  flex: 1;
  margin: 0;
}

.browser-omnibox-wrap {
  display: flex;
  align-items: center;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 0 10px;
  height: 32px;
  transition: all 0.2s;
}

.browser-omnibox-wrap:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  background: #020617;
}

.browser-security-badge {
  font-size: 12px;
  margin-left: 8px;
  color: #10b981;
  user-select: none;
  cursor: default;
}

.browser-omnibox-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 12.5px;
  direction: ltr;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.browser-omnibox-input::placeholder {
  color: #64748b;
  direction: rtl;
  text-align: right;
}

.browser-clear-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
}

.browser-clear-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.browser-go-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.browser-go-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.browser-bookmarks-bar {
  height: 28px;
  background: #090e17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  user-select: none;
}
.browser-bookmarks-bar::-webkit-scrollbar {
  display: none;
}

.browser-bookmark-item {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.browser-bookmark-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  color: #38bdf8;
}

.browser-viewport {
  flex: 1;
  position: relative;
  background: #07090e;
  overflow: hidden;
  width: 100%;
  height: calc(100% - 98px);
}

.browser-loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #38bdf8);
  background-size: 200% 100%;
  animation: loadingGlow 1.2s infinite linear;
  z-index: 10;
}

@keyframes loadingGlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.browser-frames-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.browser-tab-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
  background: #ffffff;
}

.browser-tab-frame.active {
  display: block;
}

/* ==========================================================================
   ADVANCED BROWSER OVERLAYS & CONTROLS (كوكيز، سجل، مفضلة، وتنزيلات)
   ========================================================================== */
.browser-adblock-badge {
  font-size: 13px;
  margin-left: 6px;
  cursor: pointer;
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4));
  transition: transform 0.15s;
}
.browser-adblock-badge:hover {
  transform: scale(1.15);
}

.browser-star-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.browser-star-btn:hover {
  color: #fbbf24;
  transform: scale(1.2);
}
.browser-star-btn.active {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.browser-btn.action-pill {
  width: auto;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
.browser-btn.action-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.browser-zoom-controls {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 4px;
  gap: 2px;
}
.browser-zoom-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s;
}
.browser-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.browser-zoom-level {
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
  padding: 0 4px;
  user-select: none;
  min-width: 32px;
  text-align: center;
}

/* Browser Drawer / Modal Panel */
.browser-drawer {
  position: absolute;
  top: 72px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.1);
  overflow: hidden;
  animation: drawerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes drawerFadeIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.browser-drawer-header {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.browser-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}
.browser-drawer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.browser-drawer-search {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 12px;
  color: #fff;
  font-size: 12px;
  width: 220px;
  outline: none;
}
.browser-drawer-search:focus {
  border-color: #38bdf8;
}
.browser-drawer-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.12s;
}
.browser-drawer-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.browser-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}
.browser-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.browser-drawer-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.15s;
}
.browser-drawer-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateX(-3px);
}
.browser-drawer-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  flex: 1;
}
.browser-drawer-item-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.browser-drawer-item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.browser-drawer-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.browser-drawer-item-title:hover {
  color: #38bdf8;
  text-decoration: underline;
}
.browser-drawer-item-meta {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: right;
}
.browser-drawer-item-del {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  font-size: 12px;
  transition: all 0.12s;
  flex-shrink: 0;
}
.browser-drawer-item-del:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}
.browser-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 13px;
}

/* Prevent Dark Theme Inversion on Mobile Browsers (Firefox Android, Chrome Dark Mode) */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light only !important;
  }
  html, body, #desktop {
    background-color: var(--bg-desktop) !important;
    color: var(--text-main) !important;
  }
}






