/* ============================================
   SHARED VARIABLES (Compatible with Landing Page)
   ============================================ */
   :root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #10b981 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-warning: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-info: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --card-gradient: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --gold: #fbbf24;
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --topbar-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  [data-bs-theme="light"] {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #10b981 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: var(--transition);
  }

  h1, h2, h3, h4, h5, h6, .arabic-font{
    font-family: 'El Messiri', sans-serif;
    font-weight: 700;
    color: var(--text-color);
  }

  /* Base Utilities for Arabic Typography */
.arabic-font {
  font-size: 1.25rem; /* Arabic text naturally looks smaller than Latin text; slight boost helps */
  text-align: right; 
  direction: rtl;
  color: var(--text-color);
  line-height: 1.8;   /* Arabic scripts with vocalization marks require extra vertical breathing room */
}

/* Calligraphic & Literary (Classical Book Style) */
.amiri {
  font-family: 'Amiri', 'Traditional Arabic', 'Times New Roman', serif;
}

/* Calligraphic & Literary (Classical Book Style) */
.amiri-quran {
  font-family: 'Amiri Quran', 'Amiri', 'Traditional Arabic', 'Times New Roman', serif;
}

/* Elegant & Fluid (Modern Literary / Display Style) */
.el-messiri {
  font-family: 'El Messiri', 'Microsoft YaHei', cursive, sans-serif;
}

/* Cross-Platform Universal Traditional Style */
.traditional {
  font-family: 'Noto Naskh Arabic', 'Traditional Arabic', 'Simplified Arabic', serif;
}

/* Clean & Geometric (Perfect for UI, Navigation, and Apps) */
.cairo {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


[data-bs-theme="light"] body {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0f9ff 100%);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 4px;
}

.text-primary2 {
  color: var(--text-primary);
}

.text-secondary2 {
  color: var(--text-secondary);
}

/* Gradient backgrounds */
.bg-gradient-primary {
  background: var(--gradient-primary) !important;
}
.bg-gradient-secondary {
  background: var(--gradient-secondary)  !important;
}
.bg-gradient-success {
  background: var(--gradient-success)  !important;
}
.bg-gradient-warning {
  background: var(--gradient-warning) !important;
}
.bg-gradient-info {
  background: var(--gradient-info) !important;
}
.bg-gradient-danger {
  background: var(--gradient-danger) !important;
}
.bg-gradient-dark {
  background: var(--gradient-dark) !important;
}

/* Navbar */
.navbar {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: 'El Messiri', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary) !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 80%;
}

/* ===========================
   Base Gradient Buttons
=========================== */
.btn-gradient-primary,
.btn-gradient-secondary,
.btn-gradient-success,
.btn-gradient-warning,
.btn-gradient-info,
.btn-gradient-danger,
.btn-gradient-dark {
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-gradient-primary:hover,
.btn-gradient-secondary:hover,
.btn-gradient-success:hover,
.btn-gradient-warning:hover,
.btn-gradient-info:hover,
.btn-gradient-danger:hover,
.btn-gradient-dark:hover {
  transform: translateY(-2px);
  color: #fff;
}

/* ===========================
   Gradient Buttons
=========================== */

.btn-gradient-primary {
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px rgba(102, 126, 234, .35);
}
.btn-gradient-primary:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, .45);
}

.btn-gradient-secondary {
  background: var(--gradient-secondary);
  box-shadow: 0 4px 15px rgba(245, 158, 11, .35);
}
.btn-gradient-secondary:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, .45);
}

.btn-gradient-success {
  background: var(--gradient-success);
  box-shadow: 0 4px 15px rgba(17, 153, 142, .35);
}
.btn-gradient-success:hover {
  box-shadow: 0 8px 25px rgba(17, 153, 142, .45);
}

.btn-gradient-warning {
  background: var(--gradient-warning);
  box-shadow: 0 4px 15px rgba(245, 87, 108, .35);
}
.btn-gradient-warning:hover {
  box-shadow: 0 8px 25px rgba(245, 87, 108, .45);
}

.btn-gradient-info {
  background: var(--gradient-info);
  box-shadow: 0 4px 15px rgba(6, 182, 212, .35);
}
.btn-gradient-info:hover {
  box-shadow: 0 8px 25px rgba(6, 182, 212, .45);
}

.btn-gradient-danger {
  background: var(--gradient-danger);
  box-shadow: 0 4px 15px rgba(239, 68, 68, .35);
}
.btn-gradient-danger:hover {
  box-shadow: 0 8px 25px rgba(239, 68, 68, .45);
}

.btn-gradient-dark {
  background: var(--gradient-dark);
  box-shadow: 0 4px 15px rgba(15, 23, 42, .35);
}
.btn-gradient-dark:hover {
  box-shadow: 0 8px 25px rgba(15, 23, 42, .45);
}


/* ===========================
   Base Outline Buttons
=========================== */

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-danger,
.btn-outline-dark {
  background: transparent;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all .3s ease;
  border-width: 2px;
  border-style: solid;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-danger:hover,
.btn-outline-dark:hover {
  transform: translateY(-2px);
  color: #fff;
}


/* ===========================
   Outline Variants
=========================== */

.btn-outline-primary {
  border-color: rgba(102,126,234,.5);
  color: #667eea;
}
.btn-outline-primary:hover {
  border-color: transparent;
  background: var(--gradient-primary);
}

.btn-outline-secondary {
  border-color: rgba(245,158,11,.5);
  color: #d97706;
}
.btn-outline-secondary:hover {
  border-color: transparent;
  background: var(--gradient-secondary);
}

.btn-outline-success {
  border-color: rgba(17,153,142,.5);
  color: #11998e;
}
.btn-outline-success:hover {
  border-color: transparent;
  background: var(--gradient-success);
}

.btn-outline-warning {
  border-color: rgba(245,87,108,.5);
  color: #f5576c;
}
.btn-outline-warning:hover {
  border-color: transparent;
  background: var(--gradient-warning);
}

.btn-outline-info {
  border-color: rgba(6,182,212,.5);
  color: #0891b2;
}
.btn-outline-info:hover {
  border-color: transparent;
  background: var(--gradient-info);
}

.btn-outline-danger {
  border-color: rgba(239,68,68,.5);
  color: #dc2626;
}
.btn-outline-danger:hover {
  border-color: transparent;
  background: var(--gradient-danger);
}

.btn-outline-dark {
  border-color: rgba(15,23,42,.5);
  color: #0f172a;
}
.btn-outline-dark:hover {
  border-color: transparent;
  background: var(--gradient-dark);
}

.btn-outline-glow {
  background: transparent;
  border: 2px solid rgba(13, 148, 136, 0.5);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-glow:hover {
  border-color: #667eea;
  background: rgba(13, 148, 136, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gradient-text {
  /*background: linear-gradient(135deg, #2dd4bf 0%, #34d399 50%, #fbbf24 100%);*/
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Floating Cards Animation */
.floating-cards {
  position: relative;
  height: 500px;
}

.float-card {
  position: absolute;
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: floatCard 6s ease-in-out infinite;
}

.float-card:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  width: 280px;
}

.float-card:nth-child(2) {
  top: 40%;
  right: 5%;
  animation-delay: 2s;
  width: 260px;
}

.float-card:nth-child(3) {
  bottom: 10%;
  left: 20%;
  animation-delay: 4s;
  width: 300px;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.score-excellent {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: 50px;
  color: #667eea;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Cards */
.feature-card {
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(13, 148, 136, 0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

/* How It Works */
.process-step {
  position: relative;
  padding: 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.4);
  position: relative;
  z-index: 2;
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.process-connector {
  position: absolute;
  top: 60px;
  left: 50%;
  width: calc(100% - 60px);
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: translateX(-50%);
  z-index: 1;
}

/* Stats Section */
.stats-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.stat-box {
  text-align: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.stat-box i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.stat-box h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.stat-box p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Testimonials */
.testimonial-card {
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.3);
}

.testimonial-quote {
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.author-info h5 {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.author-info p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Pricing */
.pricing-card {
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
  var(--gradient-primary) border-box;
  transform: scale(1.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.pricing-features li i {
  color: #10b981;
  font-size: 1.2rem;
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background: var(--gradient-secondary);
  color: white;
  padding: 0.5rem 3rem;
  font-size: 0.8rem;
  font-weight: 700;
  transform: rotate(45deg);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* FAQ */
.accordion-item {
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  border-radius: 16px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: transparent !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  padding: 1.5rem;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: #667eea !important;
}

.accordion-button::after {
  filter: invert(1);
}

[data-bs-theme="light"] .accordion-button::after {
  filter: invert(0);
}

.accordion-body {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-primary);
  border-radius: 40px;
  padding: 5rem;
  position: relative;
  overflow: hidden;
  margin: 0 1rem;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.cta-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
}

.btn-cta {
  background: white;
  color: #667eea;
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: 50px;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

[data-bs-theme="light"] .footer {
  background: rgba(241, 245, 249, 0.8);
}

.footer-brand {
  font-family: 'El Messiri', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  border-color: transparent;
}

.footer-links h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: #667eea;
  padding-left: 5px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-secondary);
}

/* Theme Toggle */
.theme-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.theme-toggle:hover {
  transform: rotate(180deg);
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .floating-cards {
    display: none;
  }
  .cta-section {
    padding: 3rem 1.5rem;
  }
  .cta-content h2 {
    font-size: 2rem;
  }
  .pricing-card.featured {
    transform: scale(1);
  }
  .process-connector {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .stat-item h3 {
    font-size: 1.8rem;
  }
}

/* Arabic Text Styling */
.arabic-text {
  font-family: 'Amiri', serif;
  direction: rtl;
}

/* ============================================================
   AVATARS
   ============================================================ */
   .avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }

  .avatar-xl {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
  }

  .avatar-square-sm {
    width: 40px;
    height: 40px;
    border-radius: 8px; 
    border: 1px solid var(--border-color);
  }

  .avatar-square-lg {
    width: 60px;
    height: 60px;
    border-radius: 8px; 
    border: 1px solid var(--border-color);
  }

  .avatar-square-xl {
    width: 100px;
    height: 100px;
    border-radius: 8px; 
    border: 1px solid var(--border-color);
  }

  .contact-section {
    background: transparent;
    position: relative;
  }

  .contact-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  .contact-section .container {
    position: relative;
    z-index: 1;
  }

/* Contact Info Cards */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-card {
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: transform 0.4s ease;
  transform-origin: top;
}

.contact-info-card:hover {
  transform: translateX(8px);
  border-color: rgba(13, 148, 136, 0.25);
}

.contact-info-card:hover::before {
  transform: scaleY(1);
}

.contact-info-card .contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.25);
  flex-shrink: 0;
}

.contact-info-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.contact-info-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.contact-info-card p a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-card p a:hover {
  color: #2dd4bf;
}

/* Social links in contact */
.contact-social {
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
}

.contact-social p {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-social .social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.contact-social .social-links a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-social .social-links a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.3);
}

/* Contact Form Card */
.contact-form-card {
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-form-card:hover {
  border-color: rgba(13, 148, 136, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.contact-form-card .form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.contact-form-card .form-label .text-danger {
  color: #ef4444;
}

.input-group-contact {
  display: flex;
  align-items: stretch;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.input-group-contact:focus-within {
  border-color: rgba(13, 148, 136, 0.5);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.input-group-contact .input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  color: var(--text-muted);
  font-size: 1rem;
  background: transparent;
  flex-shrink: 0;
  border-right: 1px solid var(--glass-border);
}

.input-group-contact .form-control {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.7rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  box-shadow: none !important;
  height: auto;
}

.input-group-contact .form-control:focus {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.input-group-contact .form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.input-group-contact textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Form foot note */
.form-footnote {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0;
}

.form-footnote i {
  color: #34d399;
}

/* Responsive */
@media (max-width: 991.98px) {
  .contact-form-card {
    padding: 1.5rem;
  }
  .contact-info-wrapper {
    margin-top: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .contact-info-card {
    padding: 1.25rem;
  }
  .contact-form-card {
    padding: 1.25rem;
  }
  .input-group-contact .input-icon {
    padding: 0 0.6rem;
    font-size: 0.9rem;
  }
  .input-group-contact .form-control {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Dark/Light transitions */
.contact-info-card,
.contact-social,
.contact-form-card {
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
}

.input-group-contact {
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.3s ease;
}

/* Re-use landing page animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll animation trigger — same as landing page */
.contact-section .fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.contact-section .fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DASHBOARD LAYOUT (Scoped to avoid conflicts)
   ============================================ */
   .app-dashboard {
    display: flex;
    min-height: 100vh;
  }

/* Sidebar */
.dash-sidebar {
  width: var(--sidebar-width);
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1040;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  font-family: 'El Messiri', sans-serif;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 800;
  font-size: 1.4rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-primary);
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  flex: 1;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 4px;
}

.sidebar-label {
  padding: 0.75rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  white-space: nowrap;
}

.sidebar-item i {
  font-size: 1.2rem;
  min-width: 28px;
  margin-right: 0.75rem;
  transition: var(--transition);
}

.sidebar-item:hover {
  background: var(--gradient-primary);
  color: white;
}

.sidebar-item.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
}

.sidebar-item.active i {
  color: white;
}

.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.sidebar-footer a {
  text-decoration: none;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(13, 148, 136, 0.05);
  border: 1px solid var(--glass-border);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.user-info {
  overflow: hidden;
}

.user-info h6 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.user-info small {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Main Content */
.dash-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: var(--transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.dash-topbar {
  height: var(--topbar-height);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.3rem;
}

.sidebar-toggle:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.breadcrumb-nav .active {
  color: var(--text-primary);
  font-weight: 600;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.org-title h1 {
  font-size: 1.6rem;
  margin-bottom: 0;
  color: var(--text-color);
}

.search-box {
  position: relative;
}

.search-box input {
  background: var(--glass-bg) !important;
  border: 1px solid var(--gradient-primary);
  border-radius: 12px;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  color: var(--text-primary);
  width: 280px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
  width: 320px;
}

.search-box i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.topbar-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  font-size: 1.1rem;
}

.topbar-btn:hover {
  background: rgba(13, 148, 136, 0.1);
  color: #2dd4bf;
  border-color: rgba(13, 148, 136, 0.3);
}

.topbar-btn .badge {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 0.65rem;
  padding: 0.25rem 0.4rem;
  border-radius: 50%;
  background: var(--gradient-danger);
  border: 2px solid var(--glass-bg);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  transform: rotate(180deg);
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  border-radius: 50px;
  background: var(--hover-bg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-profile:hover {
  border-color: rgba(13, 148, 136, 0.4);
}

.user-profile img,
.user-profile .profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-profile span {
  font-weight: 600;
  font-size: 0.9rem;
}

.user-profile i {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.user-name {
  font-size: 1rem;
}

.user-role {
  font-size: 0.8rem;
}

/* Content Area */
.dash-content {
  flex: 1;
  padding: 1.5rem;
}

/* Prevent page from scrolling horizontally */
.wrapper, .dash-content, .card-body, .app-dashboard, .dash-main {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============================================
   DASHBOARD CARDS & COMPONENTS
   ============================================ */
   .dash-card {
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
  }

  .dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(13, 148, 136, 0.2);
  }

  .stat-card {
    position: relative;
    overflow: hidden;
  }

  .stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
  }

  .stat-card.primary::before { background: #667eea; }
  .stat-card.secondary::before { background: #f59e0b; }
  .stat-card.info::before { background: #06b6d4; }
  .stat-card.danger::before { background: #ef4444; }

  .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  .stat-icon.primary {
    background: rgba(13, 148, 136, 0.15);
    color: #2dd4bf;
    border: 1px solid rgba(13, 148, 136, 0.3);
  }

  .stat-icon.secondary {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
  }

  .stat-icon.info {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
  }

  .stat-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
  }

  .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
  }

  .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
  }

  .stat-trend {
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
  }

  .trend-up {
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
  }

  .trend-down {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
  }

/* Buttons */
.btn-gradient-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-gradient-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
  color: white;
}

.btn-gradient-secondary {
  background: var(--gradient-secondary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gradient-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  color: white;
}

.btn-outline-dash {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-outline-dash:hover {
  border-color: #667eea;
  color: #2dd4bf;
  background: rgba(13, 148, 136, 0.05);
}

.btn-sm-dash {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
   .form-control, .form-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
  }

  .form-control:focus, .form-select:focus {
    background: var(--glass-bg);
    border-color: #667eea;
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
  }

  .form-control::placeholder {
    color: var(--text-muted);
  }

  .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
  }

  .input-group-text {
    background: var(--card-gradient);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 10px;
  }

/* ============================================
   BADGES & STATUS
   ============================================ */
   .badge-dash {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .badge-active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
  }

  .badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
  }

  .badge-completed {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
  }

  .badge-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
  }

/* Avatar groups */
.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--glass-bg);
  margin-left: -8px;
  transition: var(--transition);
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

.avatar-group .avatar:hover {
  transform: translateY(-3px);
  z-index: 2;
}

.avatar-more {
  background: var(--gradient-secondary) !important;
}

/* ============================================
   SCORING INTERFACE
   ============================================ */
   .scoring-card {
    background: var(--card-gradient);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
  }

  .scoring-card:hover {
    border-color: rgba(13, 148, 136, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  }

  .scoring-card.active {
    border-color: #667eea;
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.1), rgba(15, 23, 42, 0.95));
  }

  .score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.3);
  }

  .score-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--glass-border);
    outline: none;
    margin: 1rem 0;
  }

  .score-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.4);
    border: 2px solid white;
  }

/* ============================================
   CHART CONTAINER
   ============================================ */
   .chart-container {
    position: relative;
    height: 300px;
    width: 100%;
  }

/* ============================================
   MODAL OVERRIDES
   ============================================ */
   .modal-content {
    background: var(--card-gradient);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-primary);
  }

  .modal-header {
    border-bottom: 1px solid var(--glass-border);
  }

  .modal-footer {
    border-top: 1px solid var(--glass-border);
  }

  .btn-close {
    filter: invert(1);
    opacity: 0.5;
  }

  [data-bs-theme="light"] .btn-close {
    filter: invert(0);
  }

/* ============================================
   MOBILE SIDEBAR OVERLAY
   ============================================ */
   .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
   @media (max-width: 1199.98px) {
    .dash-sidebar {
      transform: translateX(-100%);
      box-shadow: 10px 0 40px rgba(0,0,0,0.3);
    }

    .dash-sidebar.open {
      transform: translateX(0);
    }

    .dash-main {
      margin-left: 0;
    }

    .dash-content {
      padding: 1rem;
    }

    .search-box input,
    .search-box input:focus {
      width: 180px;
    }
  }

  @media (max-width: 767.98px) {
    .dash-topbar {
      padding: 0 1rem;
    }

    .org-title h1 {
      font-size: 1.2rem;
    }

    .search-box {
      display: none;
    }

    .breadcrumb-nav {
      display: none;
    }

    .stat-value {
      font-size: 1.5rem;
    }

    .section-header h2 {
      font-size: 1.3rem;
    }

    .user-profile span,
    .user-profile i {
      display: none;
    }
  }

  @media (max-width: 575.98px) {
    .dash-content {
      padding: 0.75rem;
    }

    .dash-card {
      padding: 1rem;
      border-radius: 16px;
    }

    .topbar-btn span.badge {
      font-size: 0.6rem;
      padding: 0.15rem 0.3rem;
    }
  }

/* ============================================
   ACTIVITY TIMELINE
   ============================================ */
   .timeline {
    position: relative;
    padding-left: 1.5rem;
  }

  .timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
  }

  .timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
  }

  .timeline-dot {
    position: absolute;
    left: -1.5rem;
    top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--glass-bg);
    background: var(--gradient-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
  }

  .timeline-content {
    background: rgba(13, 148, 136, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
  }

  .timeline-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
  }

  .timeline-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
  }

  .timeline-content small {
    font-size: 0.75rem;
    color: var(--text-muted);
  }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

/* Progress bars */
.progress-dash {
  height: 6px;
  background: var(--glass-border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-dash {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-primary);
  transition: width 0.6s ease;
}

/* Quick action grid */
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  height: 100%;
}

.quick-action:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 148, 136, 0.3);
  color: #2dd4bf;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.quick-action i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.quick-action span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Notofication */
.notification-container {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 9999;
  pointer-events: none; /* Allows clicks through empty space */
}

.message {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  animation: slideDown 0.3s ease-out;
  pointer-events: auto; /* Re-enable clicks for the message */
  max-width: 90%;
  margin: 0 auto;
}

.message.hidden {
  animation: fadeOutUp 0.3s ease-in forwards;
}

.f-7 {
  font-size: 10px;
}


/* Screen Styles */
.report-page {
  padding: 1rem;
}

.report-page .table {
  font-size: 0.75rem;
}

.report-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
  font-size: 0.8rem;
  color: #6c757d;
}

/* ========================================================= */
/* GLOBAL PRINT SETTINGS (Merged from your global CSS) */
/* ========================================================= */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    font-size: 10px !important;
  }

  .A4-portrait {
    page: portrait !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .A4-landscape {
    page: landscape !important;
    width: 100% !important;
    min-height: 21cm !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .no-print {
    display: none !important;
  }

  .print-area {
    display: block !important;
    width: 100% !important;
  }

  .table-responsive {
    overflow: visible !important;
    width: 100% !important;
  }

  table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  th, td {
    border: 1px solid #000 !important;
    padding: 3px 4px !important;
    font-size: 9px !important;
    color: #000 !important;
  }

  .avoid-break {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .page-break {
    break-before: page !important;
    page-break-before: always !important;
  }
}

/* ========================================================= */
/* PAGE SETUP (Keep this OUTSIDE @media print for the browser) */
/* ========================================================= */
@page portrait {
  size: A4 portrait;
  margin: 0.7cm;

  @bottom-center {
    content: "Page " counter(page) " of " counter(pages);
  }
}

@page landscape {
  size: A4 landscape;
  margin: 0.7cm;

  @bottom-center {
    content: "Page " counter(page) " of " counter(pages);
  }
}

/* ========================================================= */
/* CUSTOM PRINT FILTER STYLES (Screen Only) */
/* ========================================================= */
.print-filter-container {
  background: #f8f9fa;
  border: 1px dashed #adb5bd;
  border-radius: 10px;
}

/* ========================================================= */
/* PAGE-SPECIFIC FIXES (To prevent blank pages) */
/* ========================================================= */
@media print {
  /* Remove the spacer div */
  .container-fluid > div[style*="height: 80px"] {
    display: none !important;
  }

  /* Reset container padding and margins */
  .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Ensure the print area starts at the very top */
  .print-area.A4-portrait {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Hide the filter completely on paper */
  .print-filter-container {
    display: none !important;
  }

  /* Reduce bottom margin on the footer */
  .mt-4.py-3.border-top {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Prevent weird page breaks inside table rows */
  tr, td, th {
    page-break-inside: avoid !important;
  }

  /* Force the header to not break across pages */
  .text-center.mb-4.border-bottom.pb-3 {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }
}