/* ============================================================
   الهوية البصرية الجديدة (طراز SignGaze)
   أزرار أساسية سوداء، بطاقات مدوّرة بظلال ناعمة، حقول مدوّرة،
   تبويب/عنصر نشِط بلمسة محايدة أنيقة. يُحمّل أخيراً ليطغى على القديم.
   ============================================================ */

/* ---- Buttons ---- */
.btn { border-radius: 12px; font-weight: 600; }
.btn-lg { border-radius: 14px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -10px rgba(16,24,40,.55); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border: 1.5px solid var(--border-strong); color: var(--ink-soft); background:var(--surface); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background:var(--surface); }
/* الوضع الداكن: الزر الأساسي بلون التمييز (الأسود يختفي على خلفية داكنة)، وإصلاح hover للمحدّد */
:root.dark .btn-primary { background: var(--brand-blue); box-shadow: none; }
:root.dark .btn-primary:hover { background: var(--brand-blue-dark); }
:root.dark .btn-outline:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* ---- Cards ---- */
.card { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--border); }

/* ---- Inputs ---- */
.form-group input, .form-group select, .form-group textarea,
input[type], select, textarea { border-radius: 12px; border: 1.5px solid var(--border); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
input:focus, select:focus, textarea:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px var(--brand-blue-light); outline: none; }
.login-card input { border-radius: 12px; }

/* ---- Sidebar: neutral active pill (SignGaze) ---- */
.sidebar-nav-item { border-radius: 12px; }
.sidebar-nav-item.active { background: var(--surface-sunken); color: var(--ink); font-weight: 700; }
.sidebar-nav-item.active .nav-icon { color: var(--brand-blue); }

/* ---- Stat cards ---- */
.stat-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.stat-card .stat-value { letter-spacing: -.01em; }

/* بطاقة مؤشر بأيقونة دائرية باستيل (طراز SignGaze) */
.stat-card--icon { display: flex; align-items: center; gap: 14px; }
.stat-card--icon .stat-ic {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-card--icon .stat-ic svg { width: 24px; height: 24px; }
.stat-card--icon .stat-meta { min-width: 0; }
.stat-card--icon .stat-value { font-size: 26px; line-height: 1.1; }
.stat-card--icon .stat-label { margin-top: 2px; }

/* ---- Headings a touch tighter ---- */
.top-header-title { letter-spacing: -.01em; }

/* ---- Tables: softer look ---- */
.table-responsive table thead th { color: var(--text-secondary); font-weight: 700; }

/* ---- Sidebar logo: صورة الشعار بدل الرمز والنص ---- */
.sidebar-logo { display: block; }
.sidebar-logo-img { width: 100%; max-width: 190px; height: auto; display: block; }

/* ---- Launcher (Hub) logo: أكبر (الضعف) وفي المنتصف ---- */
.launcher-topbar { position: relative; }
.launcher-brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.launcher-logo-img { height: 68px; width: auto; display: block; }

/* ---- Employee avatars: modern gradient (SignGaze-style) ---- */
.sidebar-user-avatar {
  background: linear-gradient(135deg, #4C6FFF 0%, #7C5CFF 100%);
  color: #fff; font-weight: 800;
  box-shadow: 0 4px 12px -4px rgba(76,111,255,.55);
}

/* ---- Logo blocks: crisp corners for the new dark-square mark ---- */
.login-logo svg, .sidebar-logo svg, .launcher-brand svg, .login-brand-content .brand-mark svg { border-radius: 12px; }

/* ---- Login page: صفحة بيضاء بالكامل، بلا إطار، الشعار بالوسط فوق ---- */
.login-page { grid-template-columns: 1fr; background:var(--surface); }
.login-brand-panel { display: none; }
.login-form-panel { min-height: 100vh; background:var(--surface); }
.login-card { max-width: 420px; background: transparent; border: none; box-shadow: none; padding: 0; }
.login-logo { text-align: center; margin-bottom: 8px; }
.login-logo-img { width: clamp(300px, 82%, 440px); height: auto; display: inline-block; }
.login-card h1, .login-card > p { display: none; }   /* الشعار نفسه يحمل الاسم */

/* أزرار اللغة: دوائر بأعلام في أعلى يمين الصفحة */
.login-lang-row { position: fixed; top: 18px; right: 18px; left: auto; margin: 0; gap: 10px; z-index: 200; }
.login-lang-btn {
  width: 22px; height: 22px; padding: 0; border-radius: 50%; overflow: hidden;
  border: 1.5px solid var(--border); background:var(--surface); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px -1px rgba(16,24,40,.12); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.login-lang-btn .flag { width: 100%; height: 100%; display: block; }
.login-lang-btn:hover { transform: translateY(-1px); }
.login-lang-btn.active { border-color: var(--brand-blue); box-shadow: 0 0 0 2px var(--brand-blue-light); background:var(--surface); color: inherit; }
.login-card input { background: var(--surface-sunken); }
#loginBtn { height: 52px; font-size: 15px; border-radius: 14px; }
.login-lang-btn { border-radius: 999px; }

