/* ==========================================================================
   shikshasetuAMS.css - Styles for WakinSoftwares Academic Management System Page
   ========================================================================== */

:root {
  --badge-bg: #eff6ff;
  --feature-card-shadow: 0 10px 30px rgba(0, 51, 153, 0.05);
}

/* ---- Custom Grid (5 Columns on Desktop) ---- */
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* ---- Breadcrumbs ---- */
.breadcrumb-container {
  padding-top: 100px; /* Offset for fixed navbar */
  padding-bottom: 10px;
  background-color: #f8fafc;
}

.breadcrumb {
  margin-bottom: 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* ---- Hero Section ---- */
.ams-hero-section {
  padding: 10px 0 50px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.badge-solution {
  background-color: var(--badge-bg);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.ams-hero-section .hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.ams-hero-section .hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.ams-hero-section .hero-desc {
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-demo {
  padding: 0.8rem 2.2rem;
  font-weight: 600;
  border-radius: 50px;
}

.btn-pricing {
  padding: 0.8rem 2.2rem;
  font-weight: 600;
  border-radius: 50px;
}

/* Hero Features Grid */
.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 2.5rem;
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background-color: var(--badge-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.hero-feature-item .feature-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-feature-item .feature-text strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}

.hero-feature-item .feature-text span {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

/* ---- Mockups Grid Layout ---- */
.hero-illustration-wrapper {
  position: relative;
  width: 100%;
  margin-left: 0;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.ams-dashboard-mockup {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 51, 153, 0.08), 0 5px 15px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 520px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ams-dashboard-mockup:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px rgba(0, 51, 153, 0.12), 0 8px 20px rgba(0, 0, 0, 0.03);
}

.mockup-header {
  background-color: #f8fafc;
  padding: 8px 16px;
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #e2e8f0;
}

.mockup-header .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 26px);
}

.mockup-sidebar {
  width: 155px;
  min-width: 155px;
  background-color: #ffffff;
  border-right: 1px solid #f1f5f9;
  padding: 15px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.72rem;
}

.sidebar-logo i {
  font-size: 1rem;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-menu li {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s, color 0.2s;
}

.sidebar-menu li.active {
  background-color: #eff6ff;
  color: var(--primary);
}

.sidebar-menu li:hover:not(.active) {
  background-color: #f8fafc;
  color: #0f172a;
}

.mockup-content {
  flex: 1;
  background-color: #f8fafc;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mockup-content::-webkit-scrollbar {
  display: none;
}

.content-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-text h5 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.welcome-text span {
  font-size: 0.65rem;
  color: #64748b;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 0.85rem;
}

.topbar-actions i {
  cursor: pointer;
}

.admin-avatar {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  padding: 2px 8px 2px 2px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
}

.avatar-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.admin-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: #0f172a;
}

.mockup-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid #f1f5f9;
}

.stat-label {
  font-size: 0.6rem;
  color: #64748b;
  display: block;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.trend-up {
  font-size: 0.55rem;
  color: #22c55e;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.mockup-split-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.split-col-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split-col-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.split-col-card h6 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-link {
  font-size: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.performance-svg-chart {
  width: 100%;
  height: auto;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 0.55rem;
  color: #94a3b8;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
}

.activity-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.65rem;
}

.activity-icon.blue { background-color: #eff6ff; color: #3b82f6; }
.activity-icon.purple { background-color: #faf5ff; color: #a855f7; }
.activity-icon.green { background-color: #ecfdf5; color: #10b981; }

.activity-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.activity-info strong {
  color: #334155;
  font-weight: 600;
  font-size: 0.65rem;
}

.activity-info span {
  color: #64748b;
  font-size: 0.58rem;
}

.activity-time {
  color: #94a3b8;
  font-size: 0.55rem;
}

/* Donut Chart */
.enrolment-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.donut-chart-container {
  width: 80px;
  height: 80px;
}

.donut-chart-svg {
  width: 100%;
  height: 100%;
}

.donut-center-num {
  font-size: 14px;
  font-weight: 700;
  text-anchor: middle;
  fill: #0f172a;
}

.donut-center-lbl {
  font-size: 5px;
  font-weight: 600;
  text-anchor: middle;
  fill: #64748b;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.legend-item {
  font-size: 0.6rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-item span.bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.bullet.blue { background-color: #003399; }
.bullet.lightblue { background-color: #3b82f6; }
.bullet.purple { background-color: #a855f7; }

/* Bar Chart */
.bar-chart-container {
  display: flex;
  gap: 8px;
  height: 90px;
}

.bar-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.55rem;
  color: #94a3b8;
  padding-bottom: 12px;
}

.bar-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex: 1;
  height: 100%;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 12%;
}

.bar-wrapper {
  height: 70px;
  background-color: #f1f5f9;
  border-radius: 3px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bar-fill {
  background-color: var(--primary);
  width: 100%;
  border-radius: 3px;
}

.bar-label {
  font-size: 0.52rem;
  color: #94a3b8;
}

/* ---- Overlapping Phone Mockup ---- */
.overlapping-phone {
  position: absolute;
  bottom: -25px;
  right: -5px;
  z-index: 10;
  width: 200px;
}

.phone-frame {
  background-color: #ffffff;
  border: 7px solid #1e293b;
  border-radius: 26px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
  height: 395px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-topbar {
  background-color: #ffffff;
  padding: 4px 12px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.58rem;
  font-weight: 600;
  color: #0f172a;
}

.phone-icons {
  display: flex;
  gap: 4px;
}

.phone-appheader {
  background-color: #ffffff;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.72rem;
}

.phone-content-body {
  flex: 1;
  background-color: #f8fafc;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.phone-content-body::-webkit-scrollbar {
  display: none;
}

.phone-stat-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.phone-stat-card .lbl {
  font-size: 0.58rem;
  color: #64748b;
}

.phone-stat-card .val {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}

.phone-stat-card .trend-green {
  font-size: 0.52rem;
  color: #22c55e;
  font-weight: 600;
}

.phone-info-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-info-card .icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.classes-card .icon-circle { background-color: #eff6ff; color: #3b82f6; }
.fees-card .icon-circle { background-color: #fee2e2; color: #ef4444; }

.phone-info-card .txt {
  display: flex;
  flex-direction: column;
}

.phone-info-card .txt span {
  font-size: 0.55rem;
  color: #64748b;
}

.phone-info-card .txt strong {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
}

.phone-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.phone-quick-actions .title {
  font-size: 0.65rem;
  font-weight: 700;
  color: #0f172a;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.action-item .act-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.action-item span {
  font-size: 0.48rem;
  font-weight: 600;
  color: #64748b;
}

/* ---- Features Section ---- */
.ams-features-section {
  background-color: #ffffff;
  padding: 50px 0;
}

.ams-section-header {
  margin-bottom: 3.5rem;
}

.ams-section-tag {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.ams-features-section .section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.ams-features-section .section-subtitle {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 2.25rem 1.25rem;
  height: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--feature-card-shadow);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 51, 153, 0.15);
  box-shadow: 0 15px 35px rgba(0, 51, 153, 0.08);
}

.feature-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background-color: #f0f5ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
}

.feature-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.feature-card-desc {
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---- Why Choose & Perfect For Section ---- */
.ams-why-section {
  padding: 50px 0;
  background-color: #f8fafc;
}

.why-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
}

.why-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  padding: 0.5rem 0;
}

.why-checklist li i {
  color: var(--primary);
  font-size: 1.2rem;
}

.why-buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-brochure {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0;
}

.btn-brochure:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.why-illustration-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.ams-girl-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.05));
  animation: floatAmsWhy 3.5s ease-in-out infinite alternate;
}

@keyframes floatAmsWhy {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.perfect-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.perfect-card {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.perfect-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 51, 153, 0.08);
  transform: translateY(-2px);
}

.perfect-card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 10px;
  background-color: #f0f5ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.perfect-card-text {
  display: flex;
  flex-direction: column;
}

.perfect-card-text h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.perfect-card-text p {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---- Responsive CSS ---- */
@media (max-width: 991.98px) {
  .breadcrumb-container {
    padding-top: 85px;
  }
  
  .ams-hero-section {
    text-align: center;
    padding-bottom: 40px;
  }
  
  .ams-hero-section .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 550px;
    margin: 2rem auto 0;
  }
  
  .hero-illustration-wrapper {
    margin-top: 2.5rem;
    max-width: 640px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .mockup-content {
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .mockup-content::-webkit-scrollbar {
    display: none;
  }
  
  .ams-why-section {
    text-align: center;
  }
  
  .why-checklist {
    max-width: 320px;
    margin: 0 auto 2rem;
    text-align: left;
  }
  
  .why-buttons {
    justify-content: center;
    margin-bottom: 3rem;
  }
  
  .why-illustration-wrapper {
    max-width: 320px;
    margin: 0 auto 3rem;
  }
  
  .perfect-cards-stack {
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .mockup-body {
    position: relative;
  }

  .mockup-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 175px;
    min-width: 175px;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.08);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 18px 12px;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .mockup-sidebar::-webkit-scrollbar {
    display: none;
  }
  
  .mockup-sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-logo .logo-text,
  .sidebar-menu .menu-text {
    display: inline !important;
  }
  
  .sidebar-logo {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .sidebar-logo i {
    font-size: 1.1rem;
  }

  .sidebar-menu {
    width: 100%;
    align-items: flex-start;
    gap: 4px;
  }

  .sidebar-menu li {
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: 8px 12px;
    border-radius: 8px;
  }
  
  .sidebar-menu li i {
    font-size: 0.8rem;
    margin-right: 8px;
  }
}

@media (max-width: 575.98px) {
  .hero-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  
  .hero-illustration-wrapper {
    width: 100%;
    margin-left: 0;
    max-width: none;
  }

  .ams-dashboard-mockup {
    width: 100%;
    height: 420px;
  }

  .mockup-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .stat-card {
    padding: 6px 8px;
  }

  .stat-value {
    font-size: 0.78rem;
    font-weight: 700;
  }

  .trend-up {
    font-size: 0.5rem;
  }

  .mockup-split-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .split-col-card {
    padding: 10px;
  }

  .performance-svg-chart {
    height: 60px;
  }
}

/* ---- Medium Screens (Laptops) ---- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .mockup-sidebar {
    width: 130px;
    min-width: 130px;
  }
  .sidebar-logo span {
    font-size: 0.62rem;
  }
  .mockup-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .mockup-split-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ams-dashboard-mockup {
    height: 480px;
  }
}

@media (max-width: 479.98px) {
  .hero-features-grid {
    grid-template-columns: 1fr;
  }
}
