/* ===================================================
   ERP PAGES — erp.css
   Shared styles for school-erp.html & college-erp.html
   =================================================== */

/* HERO */
.erp-hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
}
.erp-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(108,99,255,0.18) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 50%, rgba(72,202,228,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.erp-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}
.erp-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.erp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.erp-badge {
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: #a89cff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
}

/* MODULES SECTION */
.erp-modules-section {
  padding: 3rem 0 5rem;
}

/* FILTER BAR */
.erp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.erp-filter-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.erp-filter-btn:hover {
  border-color: rgba(108,99,255,0.5);
  color: #a89cff;
  background: rgba(108,99,255,0.1);
}
.erp-filter-btn.active {
  background: linear-gradient(135deg, #6c63ff, #48cae4);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,99,255,0.35);
}

/* MODULE GRID */
.erp-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* MODULE CARD */
.erp-module-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.erp-module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--icon-color, #6c63ff), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.erp-module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.3);
  border-color: rgba(108,99,255,0.25);
}
.erp-module-card:hover::before { opacity: 1; }

.erp-module-card.hidden {
  display: none;
}

/* ICON */
.erp-module-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--icon-color, #6c63ff) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--icon-color, #6c63ff) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--icon-color, #6c63ff);
  flex-shrink: 0;
}

/* CATEGORY TAG */
.erp-module-cat-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}
.student-tag      { background: rgba(108,99,255,0.15); color: #a89cff; border: 1px solid rgba(108,99,255,0.25); }
.academic-tag     { background: rgba(72,202,228,0.12); color: #72d4ea; border: 1px solid rgba(72,202,228,0.22); }
.finance-tag      { background: rgba(6,214,160,0.12); color: #06d6a0; border: 1px solid rgba(6,214,160,0.22); }
.communication-tag{ background: rgba(247,37,133,0.12); color: #f877b0; border: 1px solid rgba(247,37,133,0.22); }
.hr-tag           { background: rgba(247,127,0,0.12); color: #f7a940; border: 1px solid rgba(247,127,0,0.22); }
.infrastructure-tag{ background: rgba(76,201,240,0.12); color: #4cc9f0; border: 1px solid rgba(76,201,240,0.22); }
.admin-tag        { background: rgba(114,9,183,0.15); color: #c264ff; border: 1px solid rgba(114,9,183,0.25); }

/* COLLEGE-SPECIFIC BADGE */
.college-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  background: rgba(255,193,7,0.12);
  color: #ffc107;
  border: 1px solid rgba(255,193,7,0.25);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* MODULE NAME & DESC */
.erp-module-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}
.erp-module-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
  line-height: 1.6;
}

/* FEATURE LIST */
.erp-module-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.erp-module-features li {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.erp-module-features li i {
  color: #06d6a0;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 767px) {
  .erp-hero { padding: 8rem 0 3rem; }
  .erp-filter-bar { gap: 0.4rem; padding: 0.5rem; }
  .erp-filter-btn { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
  .erp-module-grid { grid-template-columns: 1fr; }
}
