:root {
  --primary-navy: #090e17;
  --primary-dark: #0f172a;
  --primary-blue: #1e3a8a;
  --accent-cyan: #0284c7;
  --accent-cyan-light: #e0f2fe;
  --accent-amber: #d97706;
  --accent-emerald: #059669;
  --accent-rose: #e11d48;
  --bg-slate: #f8fafc;
  --surface-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-subtle: #e2e8f0;
  --sidebar-width: 260px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-slate);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Navbar & Brand */
.navbar-samyak {
  background: linear-gradient(135deg, #090e17 0%, #0f172a 60%, #1e3a8a 100%);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-badge {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #fff;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.12) 0%, transparent 55%),
              linear-gradient(135deg, #070b12 0%, #0c1322 40%, #172554 100%);
  color: white;
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-glow-orb {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -50px;
  filter: blur(50px);
  pointer-events: none;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-animation 1.8s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.glassmorphism-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

/* Sidebar Dashboard Layout */
.dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - 65px);
}

.dashboard-sidebar {
  width: var(--sidebar-width);
  background: #090e17;
  color: #f1f5f9;
  flex-shrink: 0;
  transition: all 0.3s ease;
  padding-bottom: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-sidebar .sidebar-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94a3b8;
  padding: 1.2rem 1.2rem 0.4rem;
  font-weight: 700;
}

.dashboard-sidebar .nav-link {
  color: #cbd5e1;
  padding: 0.75rem 1.25rem;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  margin: 2px 10px;
  transition: all 0.2s;
}

.dashboard-sidebar .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  font-weight: 600;
}

.dashboard-content {
  flex-grow: 1;
  background-color: var(--bg-slate);
  padding: 2rem;
  overflow-y: auto;
}

/* Premium KPI Stat Cards */
.stat-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-icon.blue { background: #dbeafe; color: #1d4ed8; }
.stat-icon.green { background: #d1fae5; color: #047857; }
.stat-icon.amber { background: #fef3c7; color: #b45309; }
.stat-icon.rose { background: #ffe4e6; color: #be123c; }
.stat-icon.cyan { background: #cffafe; color: #0e7490; }

.stat-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Cards */
.card-samyak {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 1.5rem;
}

.card-samyak .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Tables */
.table-samyak {
  margin-bottom: 0;
}

.table-samyak th {
  background-color: #f8fafc;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  font-weight: 700;
  border-top: none;
  padding: 0.9rem 1rem;
}

.table-samyak td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  font-size: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Status Badges */
.badge-status {
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.3px;
}

.badge-active { background-color: #d1fae5; color: #065f46; }
.badge-cancelled { background-color: #fee2e2; color: #991b1b; }
.badge-long-absent { background-color: #fef3c7; color: #92400e; }
.badge-stopped { background-color: #f1f5f9; color: #475569; }
.badge-completed { background-color: #e0f2fe; color: #075985; }
.badge-on-hold { background-color: #ffedd5; color: #9a3412; }

/* Attendance Status Tags */
.att-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
}

.att-present { background-color: #10b981; color: white; }
.att-absent { background-color: #ef4444; color: white; }
.att-leave { background-color: #f59e0b; color: white; }
.att-holiday { background-color: #6b7280; color: white; }
.att-none { background-color: #e2e8f0; color: #64748b; }

/* Progress Bars */
.progress-fee {
  height: 8px;
  border-radius: 4px;
  background-color: #e2e8f0;
  overflow: hidden;
}

/* Feature & Branch Box */
.feature-box {
  background: white;
  padding: 2.2rem;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.feature-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  border-color: #38bdf8;
}

.branch-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: white;
  height: 100%;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
  border-color: #0284c7;
}

.tech-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* FullCalendar styling overrides */
.fc .fc-toolbar-title {
  font-size: 1.2rem !important;
  font-weight: 700;
  color: var(--primary-dark);
}

.fc .fc-button-primary {
  background-color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
}

.fc .fc-button-primary:hover {
  background-color: var(--primary-navy) !important;
}

/* Hero Code Window & Tech Mockup */
.hero-code-window {
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.window-header {
  background: #111827;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.window-title {
  color: #94a3b8;
  font-size: 0.75rem;
  font-family: monospace;
}

.code-content {
  padding: 18px;
  font-family: 'Consolas', 'Fira Code', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e2e8f0;
  text-align: left;
}

.code-keyword { color: #f43f5e; font-weight: 600; }
.code-fn { color: #38bdf8; }
.code-str { color: #34d399; }
.code-comment { color: #64748b; font-style: italic; }
.code-num { color: #fbbf24; }

/* Floating Tech Pills */
.tech-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
}

.tech-pill-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Interactive Calculator Box */
.estimator-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.estimator-result-box {
  background: linear-gradient(135deg, #090e17 0%, #0f172a 60%, #1e3a8a 100%);
  border-radius: 14px;
  color: white;
  padding: 24px;
}

/* Partner Showcase Strip */
.partner-logo-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.partner-logo-card:hover {
  border-color: #0284c7;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.1);
}

/* Testimonial Cards */
.testimonial-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 24px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  border-color: #38bdf8;
}

.avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #1e3a8a 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* ======================================================== */
/* Continuous Running Left-Right Reviews Marquee & Slider   */
/* ======================================================== */
.review-slider-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
}

.reviews-marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 24px;
  padding: 15px 0 25px;
  position: relative;
}

.reviews-marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 24px;
  animation: scrollReviews 40s linear infinite;
  align-items: stretch;
}

.reviews-marquee-track.reverse {
  animation: scrollReviewsReverse 45s linear infinite;
}

.reviews-marquee-container:hover .reviews-marquee-track {
  animation-play-state: paused;
}

@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 24px)); }
}

@keyframes scrollReviewsReverse {
  0% { transform: translateX(calc(-100% - 24px)); }
  100% { transform: translateX(0); }
}

.review-sliding-card {
  width: 380px;
  min-width: 340px;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.review-sliding-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  border-color: #38bdf8;
}

.star-rating-box {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #f59e0b;
}

.star-rating-box .fa-star {
  filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.3));
}

.rating-badge-pill {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.slider-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.slider-nav-btn:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: scale(1.08);
}

/* ======================================================== */
/* Responsive Horizontal Scrollbars Across All Tables       */
/* ======================================================== */
.table-responsive {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #0284c7 #f1f5f9;
}

/* WebKit Custom Scrollbar (Chrome, Edge, Safari) */
.table-responsive::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 8px;
  border: 2px solid #f1f5f9;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Ensure Large Table Headers and Values Scroll Smoothly */
.table-responsive table {
  min-width: 820px;
  margin-bottom: 0;
}

.table-responsive table.table-wide,
.table-wide table {
  min-width: 1100px !important;
}

.table-responsive th {
  white-space: nowrap !important;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.table-responsive td {
  vertical-align: middle;
}

.table-scroll-hint {
  font-size: 0.75rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ======================================================== */
/* Clickable Dashboard Cards, Rows & Interactive Detail Cues */
/* ======================================================== */
.stat-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  border-radius: 12px;
  height: 100%;
}

.stat-card-link .stat-card {
  cursor: pointer;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card-link:hover .stat-card,
.stat-card-link:focus-visible .stat-card {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  border-color: #38bdf8;
}

.stat-card-link .stat-card-cta {
  font-size: 0.74rem;
  color: #0284c7;
  font-weight: 600;
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clickable-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.clickable-row:hover {
  background-color: #f0f9ff !important;
}

.list-item-clickable {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.list-item-clickable:hover {
  background-color: #f8fafc;
}
