/* ══════════════════════════════════════════════════
   تحسينات التصميم الشاملة — منصة خطوة
   ══════════════════════════════════════════════════ */

/* ══ تحسين الـ Sidebar (القائمة الجانبية) ══ */
.sidebar {
  background: linear-gradient(180deg, #0A4535 0%, #0D5C45 40%, #1A7A5E 100%);
  box-shadow: 4px 0 24px rgba(0,60,30,0.15), 2px 0 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

/* تحسين البراند في الـ Sidebar */
.sb-top {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px 16px;
  margin: 16px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.sb-top:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
}

.sb-logo-circle {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #00B87A, #1A7A5E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,184,122,0.3), 0 2px 8px rgba(0,0,0,0.15);
  border: 3px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.sb-logo-circle:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 8px 28px rgba(0,184,122,0.4);
}

.sb-logo-ltr {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sb-name {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-bottom: 2px;
}

.sb-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* تحسين أقسام الـ Sidebar */
.sb-section {
  margin: 8px 0;
  padding: 0 14px;
}

.sb-lbl {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 12px 8px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* تحسين روابط الـ Sidebar */
.sb-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}

.sb-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #00B87A;
  transform: scaleY(0);
  transition: transform 0.25s ease;
  border-radius: 0 4px 4px 0;
}

.sb-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sb-nav a:hover::before {
  transform: scaleY(1);
}

.sb-nav a.active {
  background: linear-gradient(135deg, rgba(0,184,122,0.25), rgba(26,122,94,0.25));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,184,122,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(0,184,122,0.3);
}

.sb-nav a.active::before {
  transform: scaleY(1);
}

.sb-nav a .ni {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* تحسين الفاصل */
.sb-div {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 12px 20px;
}

/* تحسين Footer الـ Sidebar */
.sb-foot {
  margin-top: auto;
  padding: 16px 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sb-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.sb-user-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sb-av {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #F5C518, #c47f17);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #0D5C45;
  box-shadow: 0 4px 12px rgba(245,197,24,0.3);
  border: 2px solid rgba(255,255,255,0.2);
}

.sb-uname {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.sb-urole {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}

.sb-logout,
.sb-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.sb-logout:hover,
.sb-login-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ══ تحسين صفحة جدول الأسبوع (Schedule) ══ */

/* تحسين الساعة في الـ Sidebar */
.sidebar-clock-card {
  margin: 12px 14px;
  background: linear-gradient(135deg, rgba(0,184,122,0.15), rgba(26,122,94,0.15));
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(0,184,122,0.25);
  box-shadow: 0 6px 20px rgba(0,184,122,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.sidebar-clock-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.sidebar-clock-day {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-align: center;
  margin-bottom: 4px;
}

.sidebar-clock-date {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-bottom: 12px;
}

.sidebar-clock-time {
  font-size: 32px;
  font-weight: 900;
  color: #F5C518;
  text-align: center;
  letter-spacing: 2px;
  text-shadow: 0 2px 8px rgba(245,197,24,0.3);
  font-variant-numeric: tabular-nums;
}

.sidebar-clock-ampm {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  margin-top: 4px;
  font-weight: 700;
}

/* تحسين بطاقة الفقرة الحالية */
.sidebar-now-card {
  margin: 12px 14px;
  background: linear-gradient(135deg, #00B87A, #1A7A5E);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 20px rgba(0,184,122,0.3), 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.sidebar-now-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.sidebar-now-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-now-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.sidebar-now-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.4;
  text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.sidebar-now-time {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}

/* تحسين بطاقة الفقرة التالية */
.sidebar-next-card {
  margin: 10px 14px 0;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(26,92,56,0.12);
  box-shadow: 0 6px 20px rgba(0,60,30,0.12), 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.sidebar-next-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,60,30,0.15);
}

.sidebar-next-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #7FA89A;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.sidebar-next-name {
  font-size: 15px;
  font-weight: 800;
  color: #0D5C45;
  margin-bottom: 4px;
  line-height: 1.4;
}

.sidebar-next-time {
  font-size: 13px;
  font-weight: 700;
  color: #F5C518;
}

/* تحسين الفلاتر في الـ Sidebar */
.sidebar-filters {
  margin: 8px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.sidebar-filters-title {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-filter-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  white-space: nowrap;
  min-width: 38px;
}

.sidebar-sel-wrap select,
.sidebar-search-wrap input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #ffffff;
  padding: 6px 24px 6px 10px;
  font-size: 11px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.25s ease;
}

.sidebar-sel-wrap select:focus,
.sidebar-search-wrap input:focus {
  outline: none;
  background: rgba(255,255,255,0.18);
  border-color: rgba(0,184,122,0.4);
  box-shadow: 0 0 0 3px rgba(0,184,122,0.1);
}

.sidebar-search-wrap input::placeholder {
  color: rgba(255,255,255,0.5);
}

/* تحسين زر العودة */
.sidebar-back {
  margin: 12px 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  transition: all 0.3s ease;
  justify-content: center;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.15);
}

.sidebar-back:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.12));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* تحسين بطاقات الأنشطة في الجدول */
.activity-pill {
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.08) !important;
  transition: all 0.25s ease !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}

.activity-pill:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;
}

/* ══ تحسين صفحة الجوائز (Rewards) ══ */

/* تحسين البطاقات الملونة */
.reward-section-header {
  background: linear-gradient(135deg, #0D5C45, #1A7A5E) !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 6px 24px rgba(13,92,69,0.25) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}

.reward-section-header.weekly {
  background: linear-gradient(135deg, #0D5C45, #1A7A5E) !important;
}

.reward-section-header.monthly {
  background: linear-gradient(135deg, #b45309, #d97706) !important;
}

.reward-section-header.special {
  background: linear-gradient(135deg, #F5C518, #c47f17) !important;
}

.reward-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 6px 20px rgba(0,60,30,0.1), 0 2px 6px rgba(0,0,0,0.05) !important;
  border: 1px solid rgba(26,92,56,0.1) !important;
  transition: all 0.3s ease !important;
}

.reward-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0,60,30,0.15) !important;
}

/* ══ تحسين صفحة التلفزيون (Kiosk) ══ */

.kiosk-container {
  background: linear-gradient(135deg, #00B87A, #1A7A5E, #0D5C45) !important;
  position: relative;
  overflow: hidden;
}

.kiosk-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* ══ تحسين صفحة الترتيب (Leaderboard) ══ */

.podium-card {
  background: linear-gradient(135deg, #F5F1EB, #ffffff) !important;
  border-radius: 20px !important;
  padding: 24px !important;
  box-shadow: 0 8px 28px rgba(0,60,30,0.12) !important;
  border: 2px solid rgba(26,92,56,0.08) !important;
  transition: all 0.3s ease !important;
}

.podium-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 36px rgba(0,60,30,0.18) !important;
}

.podium-avatar {
  width: 72px !important;
  height: 72px !important;
  background: linear-gradient(135deg, #00B87A, #1A7A5E) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0,184,122,0.3) !important;
  border: 4px solid rgba(255,255,255,0.3) !important;
}

.podium-medal {
  font-size: 28px !important;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.15));
}

/* ══ تحسين لوحة اليوم (Dashboard Cards) ══ */

.dashboard-card-horizontal {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  box-shadow: 0 6px 20px rgba(0,60,30,0.1), 0 2px 6px rgba(0,0,0,0.05) !important;
  border: 1px solid rgba(26,92,56,0.08) !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

.dashboard-card-horizontal:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 32px rgba(0,60,30,0.15) !important;
}

.dashboard-card-icon {
  width: 56px !important;
  height: 56px !important;
  background: linear-gradient(135deg, #00B87A, #1A7A5E) !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 28px !important;
  box-shadow: 0 4px 14px rgba(0,184,122,0.25) !important;
}

/* ══ تحسينات عامة ══ */

/* تحسين الأزرار */
.btn-primary {
  background: linear-gradient(135deg, #00B87A, #1A7A5E) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-shadow: 0 4px 14px rgba(0,184,122,0.25) !important;
  transition: all 0.3s ease !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1A7A5E, #0D5C45) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0,184,122,0.35) !important;
}

/* تحسين البطاقات العامة */
.card {
  border-radius: 16px !important;
  border: 1px solid rgba(26,92,56,0.08) !important;
  box-shadow: 0 6px 20px rgba(0,60,30,0.08) !important;
  transition: all 0.3s ease !important;
}

.card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(0,60,30,0.12) !important;
}

/* تحسين الـ Mobile Nav */
.mobile-nav {
  background: linear-gradient(180deg, #0D5C45, #0A4535) !important;
  box-shadow: 0 -4px 20px rgba(0,60,30,0.2) !important;
  border-top: 2px solid rgba(0,184,122,0.3) !important;
}

.mobile-nav a {
  color: rgba(255,255,255,0.7) !important;
  transition: all 0.25s ease !important;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #ffffff !important;
  background: rgba(0,184,122,0.15) !important;
}

.mobile-nav a.active {
  border-top: 3px solid #00B87A !important;
}
