/* ==============================================================================
   نظام شأن لإدارة الموارد البشرية - SHA'N HR Design System & Theme
   Vanilla CSS - Modern, Bespoke, High-End Corporate Aesthetics
   ============================================================================== */

@import url('cairo-font.css'); /* self-hosted Cairo font, no Google Fonts CDN */

:root {
  /* Brand Navy & Blues */
  --shan-navy-950: #061120;
  --shan-navy-900: #0a192f;
  --shan-navy-850: #0d213a;
  --shan-navy-800: #102a4a;
  --shan-navy-700: #183861;
  --shan-blue-500: #0077e6;
  --shan-blue-600: #0063c4;
  --shan-blue-700: #004f9e;
  --shan-blue-100: #e5f2ff;
  --shan-blue-50:  #f0f7ff;
  --shan-cyan-500: #0284c7;
  --shan-cyan-400: #38bdf8;

  /* Neutrals & Surfaces */
  --shan-bg-page:   #f4f6fa;
  --shan-bg-card:   #ffffff;
  --shan-border:    #e5e9f0;
  --shan-border-subtle: #f0f3f8;
  --shan-text-title: #0d1e38;
  --shan-text-body:  #334155;
  --shan-text-muted: #64748b;
  --shan-text-light: #94a3b8;

  /* Status Colors */
  --shan-success-bg: #ecfdf5;
  --shan-success-text: #059669;
  --shan-success-border: #a7f3d0;

  --shan-warning-bg: #fffbeb;
  --shan-warning-text: #d97706;
  --shan-warning-border: #fde68a;

  --shan-danger-bg: #fef2f2;
  --shan-danger-text: #dc2626;
  --shan-danger-border: #fecaca;

  --shan-info-bg: #eff6ff;
  --shan-info-text: #2563eb;
  --shan-info-border: #bfdbfe;

  /* Shadows */
  --shan-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shan-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shan-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shan-shadow-hover: 0 12px 24px -4px rgba(0, 119, 230, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.04);

  /* Dimensions & Spacing */
  --shan-sidebar-width: 260px;
  --shan-header-height: 72px;
  --shan-radius-sm: 6px;
  --shan-radius-md: 10px;
  --shan-radius-lg: 14px;
  --shan-radius-xl: 18px;
}

/* ================= Global Reset & Typography ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Cairo', 'Segoe UI', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--shan-bg-page);
  color: var(--shan-text-body);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--shan-blue-500);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--shan-blue-600);
}

/* ================= App Shell Layout (Image 3) ================= */
.shan-app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar Styles (Right-Side in RTL) */
.shan-sidebar {
  width: var(--shan-sidebar-width);
  background-color: var(--shan-navy-900);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  transition: all 0.3s ease;
}

.shan-sidebar-brand {
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shan-sidebar-brand img,
.shan-sidebar-brand svg {
  max-width: 170px;
  height: auto;
}

.shan-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.shan-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--shan-radius-md);
  color: #94a3b8;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.shan-nav-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
}

.shan-nav-item.active {
  background-color: var(--shan-blue-500);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 119, 230, 0.35);
}

.shan-nav-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shan-nav-item i {
  font-size: 17px;
  width: 20px;
  text-align: center;
}

.shan-nav-arrow {
  font-size: 11px;
  opacity: 0.7;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.shan-nav-arrow-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--shan-radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  margin-right: auto;
}

.shan-nav-arrow-toggle:hover {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.shan-nav-item:hover .shan-nav-arrow {
  opacity: 1;
}

/* Submenu Dropdown & Accordion Styles */
.shan-nav-group {
  display: flex;
  flex-direction: column;
}

.shan-nav-group.open .shan-nav-arrow {
  transform: rotate(-90deg);
  opacity: 1;
}

.shan-nav-group.open > .shan-nav-item:not(.active) {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.04);
}


.shan-nav-submenu {
  display: none;
  flex-direction: column;
  gap: 3px;
  padding: 6px 0 6px 0;
  margin-right: 28px;
  border-right: 2px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

.shan-nav-group.open .shan-nav-submenu {
  display: flex;
}

.shan-submenu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--shan-radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.shan-submenu-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateX(-3px);
}

.shan-submenu-item.active {
  color: #38bdf8;
  font-weight: 700;
  background-color: rgba(56, 189, 248, 0.1);
}

.shan-submenu-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #64748b;
  transition: background 0.2s ease;
}

.shan-submenu-item:hover .shan-submenu-dot,
.shan-submenu-item.active .shan-submenu-dot {
  background-color: #38bdf8;
}

/* ================= Main Container & Header ================= */
.shan-main-container {
  flex: 1;
  margin-right: var(--shan-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Styles */
.shan-header {
  height: var(--shan-header-height);
  background-color: #ffffff;
  border-bottom: 1px solid var(--shan-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.shan-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  max-width: 650px;
}

.shan-company-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background-color: #f8fafc;
  border: 1px solid var(--shan-border);
  border-radius: var(--shan-radius-md);
  font-weight: 600;
  color: var(--shan-text-title);
  cursor: pointer;
  white-space: nowrap;
}

.shan-search-box {
  position: relative;
  width: 100%;
}

.shan-search-box i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--shan-text-muted);
  font-size: 16px;
}

.shan-search-input {
  width: 100%;
  padding: 9px 38px 9px 16px;
  background-color: #f8fafc;
  border: 1px solid var(--shan-border);
  border-radius: var(--shan-radius-md);
  color: var(--shan-text-body);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}

.shan-search-input:focus {
  background-color: #ffffff;
  border-color: var(--shan-blue-500);
  box-shadow: 0 0 0 3px rgba(0, 119, 230, 0.12);
}

.shan-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shan-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--shan-text-muted);
  background: #f8fafc;
  border: 1px solid var(--shan-border);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.shan-icon-btn:hover {
  background-color: #ffffff;
  color: var(--shan-blue-500);
  border-color: var(--shan-blue-500);
}

.shan-icon-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  background-color: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.shan-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--shan-radius-md);
  transition: background 0.2s ease;
}

.shan-user-profile:hover {
  background-color: #f8fafc;
}

.shan-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--shan-blue-100);
}

.shan-user-info {
  display: flex;
  flex-direction: column;
}

.shan-user-name {
  font-weight: 700;
  color: var(--shan-text-title);
  font-size: 13.5px;
  line-height: 1.2;
}

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

/* ================= Content Area & Welcome Banner ================= */
.shan-content {
  padding: 24px 28px 40px 28px;
  flex: 1;
}

.shan-welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.shan-welcome-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--shan-text-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shan-welcome-subtitle {
  color: var(--shan-text-muted);
  font-size: 13.5px;
  margin-top: 4px;
}

.shan-date-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid var(--shan-border);
  padding: 9px 16px;
  border-radius: var(--shan-radius-md);
  color: var(--shan-text-body);
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: var(--shan-shadow-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shan-date-filter-btn:hover {
  border-color: var(--shan-blue-500);
  color: var(--shan-blue-500);
}

/* ================= Stat Cards Grid (Image 3) ================= */
.shan-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.shan-stat-card {
  background-color: var(--shan-bg-card);
  border: 1px solid var(--shan-border);
  border-radius: var(--shan-radius-lg);
  padding: 20px;
  box-shadow: var(--shan-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.shan-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.shan-stat-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--shan-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.shan-stat-icon-primary {
  background-color: var(--shan-blue-50);
  color: var(--shan-blue-500);
}

.shan-stat-icon-cyan {
  background-color: #f0fdfa;
  color: #0d9488;
}

.shan-stat-icon-warning {
  background-color: #fffbeb;
  color: #d97706;
}

.shan-stat-icon-indigo {
  background-color: #f5f3ff;
  color: #7c3aed;
}

.shan-stat-info {
  text-align: left;
}

.shan-stat-label {
  font-size: 13.5px;
  color: var(--shan-text-muted);
  font-weight: 500;
  text-align: left;
}

.shan-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--shan-text-title);
  line-height: 1.2;
  margin-top: 4px;
  text-align: left;
}

.shan-stat-bottom {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--shan-border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.shan-trend-up {
  color: #059669;
  font-weight: 700;
}

.shan-trend-down {
  color: #dc2626;
  font-weight: 700;
}

.shan-trend-blue {
  color: var(--shan-blue-500);
  font-weight: 700;
}

.shan-trend-text {
  color: var(--shan-text-muted);
}

/* ================= Middle Charts Grid ================= */
.shan-charts-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.shan-card {
  background-color: var(--shan-bg-card);
  border: 1px solid var(--shan-border);
  border-radius: var(--shan-radius-lg);
  padding: 22px;
  box-shadow: var(--shan-shadow-sm);
}

.shan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.shan-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--shan-text-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.shan-select-sm {
  padding: 5px 12px;
  border-radius: var(--shan-radius-md);
  border: 1px solid var(--shan-border);
  background-color: #f8fafc;
  color: var(--shan-text-body);
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.shan-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.shan-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shan-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.shan-dot-cyan { background-color: var(--shan-cyan-400); }
.shan-dot-blue { background-color: var(--shan-blue-500); }
.shan-dot-red  { background-color: #ef4444; }

/* Donut Chart and List Styles */
.shan-donut-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.shan-donut-chart-container {
  position: relative;
  width: 170px;
  height: 170px;
}

.shan-donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.shan-donut-count {
  font-size: 24px;
  font-weight: 800;
  color: var(--shan-text-title);
  line-height: 1.1;
}

.shan-donut-label {
  font-size: 12px;
  color: var(--shan-text-muted);
}

.shan-dept-breakdown-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shan-dept-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px dashed var(--shan-border-subtle);
}

.shan-dept-row:last-child {
  border-bottom: none;
}

.shan-dept-name-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shan-dept-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.shan-dept-count-badge {
  font-weight: 700;
  color: var(--shan-text-title);
}

.shan-dept-pct {
  color: var(--shan-text-muted);
  font-size: 12px;
  margin-right: 4px;
}

/* ================= Bottom Widgets Grid ================= */
.shan-bottom-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

/* Recent Leaves Table */
.shan-table-responsive {
  overflow-x: auto;
}

.shan-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: right;
}

.shan-table th {
  padding: 12px 14px;
  background-color: #f8fafc;
  color: var(--shan-text-muted);
  font-size: 12.5px;
  font-weight: 700;
  border-bottom: 1px solid var(--shan-border);
}

.shan-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--shan-border-subtle);
  font-size: 13.5px;
  vertical-align: middle;
}

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

.shan-emp-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shan-emp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.shan-emp-name {
  font-weight: 700;
  color: var(--shan-text-title);
  line-height: 1.2;
}

.shan-emp-dept {
  font-size: 11.5px;
  color: var(--shan-text-muted);
}

/* Badges */
.shan-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.badge-warning {
  background-color: var(--shan-warning-bg);
  color: var(--shan-warning-text);
  border: 1px solid var(--shan-warning-border);
}

.badge-success {
  background-color: var(--shan-success-bg);
  color: var(--shan-success-text);
  border: 1px solid var(--shan-success-border);
}

.badge-danger {
  background-color: var(--shan-danger-bg);
  color: var(--shan-danger-text);
  border: 1px solid var(--shan-danger-border);
}

.badge-info {
  background-color: var(--shan-info-bg);
  color: var(--shan-info-text);
  border: 1px solid var(--shan-info-border);
}

/* Table action buttons */
.shan-action-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shan-btn-icon-xs {
  width: 28px;
  height: 28px;
  border-radius: var(--shan-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--shan-border);
  background: white;
  color: var(--shan-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.shan-btn-icon-xs:hover {
  background-color: var(--shan-blue-50);
  color: var(--shan-blue-500);
  border-color: var(--shan-blue-500);
}

/* Activities Timeline */
.shan-activities-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.shan-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.shan-activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.activity-primary { background: #e0f2fe; color: #0284c7; }
.activity-info    { background: #eff6ff; color: #3b82f6; }
.activity-success { background: #ecfdf5; color: #10b981; }
.activity-warning { background: #fffbeb; color: #f59e0b; }

.shan-activity-content {
  flex: 1;
}

.shan-activity-title {
  font-weight: 700;
  color: var(--shan-text-title);
  font-size: 13.5px;
  line-height: 1.2;
}

.shan-activity-desc {
  font-size: 12.5px;
  color: var(--shan-text-muted);
  margin-top: 2px;
}

.shan-activity-time {
  font-size: 11.5px;
  color: var(--shan-text-light);
  white-space: nowrap;
}

/* ================= Login Page Styles (Image 2) ================= */
.shan-login-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Left Hero Brand Panel */
.shan-login-brand-panel {
  flex: 1.1;
  background: linear-gradient(135deg, #07192f 0%, #0d2847 40%, #0369a1 100%);
  color: #ffffff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.shan-login-brand-panel::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.shan-brand-panel-header {
  position: relative;
  z-index: 2;
}

.shan-brand-panel-header svg {
  max-width: 180px;
}

.shan-brand-panel-body {
  position: relative;
  z-index: 2;
  margin: 40px 0;
}

.shan-brand-panel-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}

.shan-brand-panel-subtitle {
  font-size: 16px;
  color: #bae6fd;
  font-weight: 400;
  margin-bottom: 32px;
}

.shan-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shan-feature-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--shan-radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.shan-feature-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.shan-feature-card i {
  font-size: 24px;
  color: #38bdf8;
  margin-bottom: 8px;
  display: block;
}

.shan-feature-card span {
  font-size: 12.5px;
  font-weight: 600;
  color: #f0f9ff;
}

/* Right Login Form Panel */
.shan-login-form-panel {
  flex: 0.9;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 60px;
}

.shan-login-top-bar {
  display: flex;
  justify-content: flex-end;
}

.shan-lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--shan-text-body);
  background: #f8fafc;
  border: 1px solid var(--shan-border);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
}

.shan-login-box {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.shan-login-logo {
  text-align: center;
  margin-bottom: 24px;
}

.shan-login-logo svg {
  max-width: 160px;
}

.shan-login-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--shan-text-title);
  text-align: center;
  margin-bottom: 6px;
}

.shan-login-subtitle {
  font-size: 14px;
  color: var(--shan-text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.shan-form-group {
  margin-bottom: 18px;
}

.shan-form-label {
  display: block;
  font-weight: 600;
  color: var(--shan-text-title);
  font-size: 13.5px;
  margin-bottom: 6px;
}

.shan-input-wrapper {
  position: relative;
}

.shan-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--shan-text-muted);
  font-size: 16px;
}

.shan-input-toggle {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--shan-text-muted);
  cursor: pointer;
}

.shan-input-control {
  width: 100%;
  padding: 12px 42px 12px 16px;
  border: 1px solid var(--shan-border);
  border-radius: var(--shan-radius-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--shan-text-body);
  outline: none;
  background-color: #fcfdfe;
  transition: all 0.2s ease;
}

.shan-input-control:focus {
  background-color: #ffffff;
  border-color: var(--shan-blue-500);
  box-shadow: 0 0 0 3px rgba(0, 119, 230, 0.12);
}

.shan-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}

.shan-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--shan-text-body);
  cursor: pointer;
}

.shan-btn-primary {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--shan-blue-500) 0%, var(--shan-blue-600) 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--shan-radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 119, 230, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.shan-btn-primary:hover {
  background: linear-gradient(135deg, var(--shan-blue-600) 0%, var(--shan-blue-700) 100%);
  box-shadow: 0 6px 18px rgba(0, 119, 230, 0.45);
  transform: translateY(-1px);
}

.shan-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0;
  color: var(--shan-text-light);
  font-size: 12px;
}

.shan-divider::before,
.shan-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--shan-border);
}

.shan-divider span {
  padding: 0 12px;
}

.shan-btn-microsoft {
  width: 100%;
  padding: 11px 20px;
  background-color: #ffffff;
  border: 1px solid var(--shan-border);
  color: var(--shan-text-title);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--shan-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.shan-btn-microsoft:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.shan-ms-logo {
  width: 18px;
  height: 18px;
}

/* ================= Alert Box ================= */
.shan-alert {
  padding: 12px 16px;
  border-radius: var(--shan-radius-md);
  margin-bottom: 18px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shan-alert-danger {
  background-color: var(--shan-danger-bg);
  color: var(--shan-danger-text);
  border: 1px solid var(--shan-danger-border);
}

.shan-alert-success {
  background-color: var(--shan-success-bg);
  color: var(--shan-success-text);
  border: 1px solid var(--shan-success-border);
}

/* ================= Responsive Breakpoints ================= */
@media (max-width: 1200px) {
  .shan-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .shan-charts-grid,
  .shan-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .shan-login-container {
    flex-direction: column;
  }
  .shan-login-brand-panel {
    display: none;
  }
  .shan-login-form-panel {
    padding: 30px 20px;
  }
  .shan-sidebar {
    transform: translateX(100%);
  }
  .shan-sidebar.open {
    transform: translateX(0);
  }
  .shan-main-container {
    margin-right: 0;
  }
  .shan-stats-grid {
    grid-template-columns: 1fr;
  }
}
