/* ===============================
   OS Dashboard HUD Unified Theme
   Phase 006.9 – Glass Reactive Layer
=================================== */

/* 🪟 الأساس */
.windowContainer {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: auto;

  scrollbar-width: thin;
  scrollbar-color: rgba(100, 149, 237, 0.6) rgba(30, 41, 59, 0.6);

  /* ✨ خلفية HUD زجاجية ناعمة */
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.96) 100%);
  backdrop-filter: blur(18px) saturate(120%);
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.45), inset 0 0 50px rgba(255, 255, 255, 0.03),
    0 0 60px rgba(59, 130, 246, 0.08);
  transition: all 0.4s ease;
}

.windowContainer:hover {
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.15), inset 0 0 60px rgba(255, 255, 255, 0.05);
}

/* 🧭 الهيدر */
.windowHeader {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  padding: 1rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.windowHeader h1 {
  font-size: 1.45rem;
  color: hsl(var(--primary));
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* 💡 الجسم */
.windowBody {
  flex: 1;
  overflow: auto;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  min-width: 1100px;
}

/* 🧩 الأقسام */
.section {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.04), 0 0 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.section:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 15px rgba(59, 130, 246, 0.1), 0 0 25px rgba(59, 130, 246, 0.1);
}

.section h2 {
  color: #93c5fd;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  letter-spacing: 0.03em;
  text-shadow: 0 0 8px rgba(147, 197, 253, 0.2);
}

/* 🪶 الفوتر */
.windowFooter {
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  padding: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(147, 197, 253, 0.7);
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
}

/* 🔘 Scrollbars */
.windowContainer::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.windowContainer::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.3));
  border-radius: 10px;
}
.windowContainer::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.8);
}
.windowContainer::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.5);
  border-radius: 10px;
}

/* ===========================
   🔮 HUD Layer Manager Context
   =========================== */

/* لم نعد نستخدم overlayRoot أو overlayLayer هنا
   لأن كل الطبقات أصبحت تُدار عبر HUDLayerManager + Portal
   الذي يركّب نفسه في #global-overlay-root.
*/

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ⚡ تحسينات HUD مستقبلية (تمهيد للDialog Mode) */
.hudOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  animation: fadeIn 0.35s ease forwards;
  z-index: 2100;
}

/* 🌌 Layers Debugger Hint (optional) */
.debugHint {
  position: fixed;
  top: 6px;
  right: 10px;
  font-size: 10px;
  color: #67e8f9;
  font-family: monospace;
  opacity: 0.8;
  z-index: 9999;
}
