/* =========================================================
   Batches Page (Premium, Modular, Glass + Gradient) - UPGRADED
   Page slug: batches
   Scope: fe-batches-*
========================================================= */

.fe-batches-page { position: relative; }

/* Light/Dark tuning */
html[data-theme="light"] .fe-batches-page {
  --fe-batches-glass: rgba(255,255,255,0.72);
  --fe-batches-border: rgba(15,23,42,0.12);
  --fe-batches-text-muted: rgba(15,23,42,0.70);
}

html[data-theme="dark"] .fe-batches-page {
  --fe-batches-glass: rgba(255,255,255,0.06);
  --fe-batches-border: rgba(255,255,255,0.12);
  --fe-batches-text-muted: rgba(255,255,255,0.70);
}

/* --- Hero --- */
.fe-batches-hero .fe-container { position: relative; }

.fe-batches-hero-inner {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: var(--fe-radius-xl, 20px);
  background: var(--fe-batches-glass, rgba(255,255,255,0.06));
  border: 1px solid var(--fe-batches-border, rgba(255,255,255,0.12));
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: var(--fe-shadow-lg, 0 16px 48px rgba(0,0,0,0.35));
  overflow: hidden;
  position: relative;
}

.fe-batches-hero-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: fe-batches-gradient-rotate 20s linear infinite;
}

@keyframes fe-batches-gradient-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (min-width: 1024px) {
  .fe-batches-hero-inner {
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
    padding: 32px;
  }
}

.fe-batches-title {
  margin: 14px 0 10px;
  font-size: clamp(32px, 4.8vw, 60px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.fe-batches-title-gradient {
  background: linear-gradient(135deg, var(--fe-primary, #3b82f6) 0%, var(--fe-primary-2, #2563eb) 50%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fe-batches-gradient-shift 8s ease infinite;
  background-size: 200% 200%;
}

@keyframes fe-batches-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.fe-batches-subtitle {
  color: var(--fe-batches-text-muted, rgba(255,255,255,0.70));
  font-size: 16px;
  line-height: 1.6;
}

.fe-batches-chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fe-batches-hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Pulse animation for live badge */
.fe-batches-pulse {
  animation: fe-batches-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fe-batches-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

/* Shimmer pill */
.fe-batches-shimmer {
  position: relative;
  overflow: hidden;
}
.fe-batches-shimmer::after {
  content: "";
  position: absolute;
  inset: -60% -40%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 45%, transparent 60%);
  transform: rotate(20deg);
  animation: fe-batches-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fe-batches-shimmer {
  0% { transform: translateX(-40%) rotate(20deg); opacity: 0.0; }
  30% { opacity: 0.3; }
  100% { transform: translateX(40%) rotate(20deg); opacity: 0.0; }
}

/* Glass badge effect */
.fe-badge-glass {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

html[data-theme="light"] .fe-badge-glass {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(15,23,42,0.15);
}

/* WhatsApp Button Styling */
.fe-btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: #25D366;
  color: #fff;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.fe-btn-whatsapp::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.fe-btn-whatsapp:hover::before {
  width: 300px;
  height: 300px;
}

.fe-btn-whatsapp:hover {
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.3);
}

.fe-btn-whatsapp i {
  font-size: 1.2em;
}

/* Glow button effect */
.fe-btn-glow {
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
  animation: fe-batches-glow-pulse 2s ease-in-out infinite;
}

@keyframes fe-batches-glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59,130,246,0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(59,130,246,0.5);
  }
}

/* Side metrics */
.fe-batches-hero-side { position: relative; z-index: 1; }
.fe-batches-metric-grid {
  display: grid;
  gap: 14px;
}
.fe-batches-metric {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: var(--fe-radius-lg, 16px);
  border: 1px solid var(--fe-batches-border, rgba(255,255,255,0.12));
  background: rgba(0,0,0,0.12);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
html[data-theme="light"] .fe-batches-metric { background: rgba(255,255,255,0.55); }

.fe-batches-metric-hover:hover {
  transform: translateX(-4px);
  box-shadow: 0 12px 32px rgba(59,130,246,0.2);
}

.fe-batches-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.22), rgba(37,99,235,0.14));
  border: 1px solid var(--fe-batches-border, rgba(255,255,255,0.12));
  transition: transform 200ms ease;
  font-size: 20px;
}
.fe-batches-metric:hover .fe-batches-metric-icon { 
  transform: translateY(-3px) scale(1.05);
}

/* Gradient icon variations */
.fe-batches-metric-icon-gradient-1 {
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(147,51,234,0.15));
}
.fe-batches-metric-icon-gradient-2 {
  background: linear-gradient(135deg, rgba(34,197,94,0.25), rgba(59,130,246,0.15));
}
.fe-batches-metric-icon-gradient-3 {
  background: linear-gradient(135deg, rgba(251,146,60,0.25), rgba(239,68,68,0.15));
}

.fe-batches-metric-val { 
  font-weight: 900; 
  letter-spacing: -0.02em;
  font-size: 18px;
}
.fe-batches-metric-label { 
  font-size: 13px; 
  color: var(--fe-batches-text-muted, rgba(255,255,255,0.70)); 
}

/* --- Section headings --- */
.fe-batches-head { margin-bottom: 22px; }

/* --- Filters --- */
.fe-batches-filter-card {
  padding: 22px;
  border-radius: var(--fe-radius-xl, 20px);
}

.fe-batches-filter-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .fe-batches-filter-grid {
    grid-template-columns: 1fr 1fr 1.2fr auto;
    align-items: end;
    gap: 16px;
  }
}

.fe-batches-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 900px) {
  .fe-batches-filter-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
}

/* Class tabs */
.fe-batches-class-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fe-batches-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--fe-batches-border, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.06);
  color: var(--fe-text, rgba(255,255,255,0.92));
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

html[data-theme="light"] .fe-batches-tab {
  background: rgba(255,255,255,0.65);
}

.fe-batches-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 10px 28px rgba(59,130,246,0.15);
}

.fe-batches-tab:focus-visible {
  outline: none;
  box-shadow: var(--fe-ring, 0 0 0 3px rgba(59,130,246,0.30));
}

.fe-batches-tab.is-active {
  background: rgba(59,130,246,0.18);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 8px 24px rgba(59,130,246,0.12);
}

/* --- List / Groups --- */
.fe-batches-group {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--fe-radius-xl, 20px);
  border: 1px solid var(--fe-batches-border, rgba(255,255,255,0.12));
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

html[data-theme="light"] .fe-batches-group {
  background: rgba(255,255,255,0.70);
}

.fe-batches-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.fe-batches-group-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.fe-batches-group-title {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.fe-batches-group-h {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fe-batches-group-icon {
  opacity: 0.7;
  font-size: 0.9em;
}

/* Cards */
.fe-batches-card { 
  border-radius: var(--fe-radius-lg, 16px);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.fe-batches-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(59,130,246,0.15);
}

.fe-batches-card-body { padding: 18px; }

.fe-batches-card-top {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
}

.fe-batches-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fe-batches-border, rgba(255,255,255,0.12));
  background: linear-gradient(135deg, rgba(34,197,94,0.16), rgba(59,130,246,0.14));
  transition: transform 180ms ease;
  font-size: 20px;
}

.fe-batches-card-icon-animated {
  animation: fe-batches-icon-float 3s ease-in-out infinite;
}

@keyframes fe-batches-icon-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.fe-batches-card:hover .fe-batches-card-icon { 
  transform: translateY(-3px) rotate(5deg);
}

.fe-batches-card-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.fe-batches-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fe-badge-pulse {
  animation: fe-badge-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fe-badge-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34,197,94,0);
  }
}

.fe-batches-card-row {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--fe-text, rgba(255,255,255,0.92));
}

.fe-batches-card-row-muted {
  color: var(--fe-batches-text-muted, rgba(255,255,255,0.70));
}

.fe-batches-card-row-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fe-batches-border, rgba(255,255,255,0.12));
  background: rgba(0,0,0,0.18);
  flex-shrink: 0;
}

html[data-theme="light"] .fe-batches-card-row-ico { background: rgba(255,255,255,0.55); }

.fe-batches-card-divider {
  height: 1px;
  background: var(--fe-batches-border, rgba(255,255,255,0.12));
  margin: 16px 0;
}

.fe-batches-card-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fe-btn-flex-1 {
  flex: 1;
  min-width: 180px;
}

.fe-batches-card-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--fe-batches-border, rgba(255,255,255,0.12));
}

.fe-batches-card-footer-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fe-batches-text-muted, rgba(255,255,255,0.70));
  font-weight: 600;
}

.fe-batches-card-footer-text i {
  color: #f59e0b;
}

/* Empty state */
.fe-batches-empty {
  padding: 32px;
  text-align: center;
  border-radius: var(--fe-radius-xl, 20px);
}

.fe-batches-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fe-batches-border, rgba(255,255,255,0.12));
  background: rgba(59,130,246,0.14);
  font-size: 28px;
  animation: fe-batches-icon-float 3s ease-in-out infinite;
}

.fe-batches-empty-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 900;
}

.fe-batches-empty-text {
  margin: 0 auto 18px;
  max-width: 60ch;
  color: var(--fe-batches-text-muted, rgba(255,255,255,0.70));
  line-height: 1.6;
}

.fe-batches-empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button size variants */
.fe-btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* No underline globally enforced (belt + suspenders) */
.fe-batches-page a { text-decoration: none; }

/* Responsive improvements */
@media (max-width: 600px) {
  .fe-batches-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .fe-batches-hero-actions .fe-btn {
    width: 100%;
    justify-content: center;
  }
  
  .fe-batches-card-actions {
    flex-direction: column;
  }
  
  .fe-batches-card-actions .fe-btn {
    width: 100%;
  }
  
  .fe-btn-flex-1 {
    min-width: 100%;
  }
}

/* Enhanced focus states for accessibility */
.fe-btn-whatsapp:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .fe-batches-shimmer::after,
  .fe-batches-hero-inner::before {
    display: none;
  }
  
  .fe-batches-card {
    break-inside: avoid;
  }
}





/* =========================================================
   FIX: Text visibility in Class Quick Tabs (Pills)
   Section: .fe-batches-class-tabs / .fe-batches-tab
   Put this at the END of the page CSS file
========================================================= */

/* Base (Inactive) pill — force readable text always */
.fe-batches-class-tabs .fe-batches-tab{
  color: #111827 !important;              /* FIX: visible on white background */
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  text-decoration: none !important;
  opacity: 1 !important;                  /* FIX: no faded text */
}

/* Icon inherits text color */
.fe-batches-class-tabs .fe-batches-tab i{
  color: currentColor !important;
  opacity: 0.75;
}

/* Hover (Inactive) — gradient + white text */
.fe-batches-class-tabs .fe-batches-tab:hover:not(.is-active){
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;              /* FIX: visible on gradient */
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

.fe-batches-class-tabs .fe-batches-tab:hover:not(.is-active) i{
  color: #ffffff !important;
  opacity: 1;
}

/* Active — force gradient + white text always */
.fe-batches-class-tabs .fe-batches-tab.is-active{
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;              /* FIX: visible active text */
  box-shadow: 0 2px 8px rgba(99,102,241,0.25);
}

.fe-batches-class-tabs .fe-batches-tab.is-active i{
  color: #ffffff !important;
  opacity: 1;
}

/* Dark theme — inactive pills */
html[data-theme="dark"] .fe-batches-class-tabs .fe-batches-tab{
  color: rgba(255,255,255,0.92) !important;
  background: rgba(51,65,85,0.55) !important;
  border-color: rgba(255,255,255,0.14) !important;
}

/* Dark theme — hover inactive */
html[data-theme="dark"] .fe-batches-class-tabs .fe-batches-tab:hover:not(.is-active){
  color: #ffffff !important;
}

/* Accessibility focus */
.fe-batches-class-tabs .fe-batches-tab:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.25);
}


/* =========================================================
   FIX: Placeholder color (not faded / not weird)
   Put at END of page CSS
========================================================= */

/* Inputs + Textareas placeholder */
.fe-batches-filters .fe-input::placeholder,
.fe-batches-filters textarea.fe-input::placeholder {
  color: #6b7280 !important;  /* readable neutral */
  opacity: 1 !important;      /* CRITICAL: stop browser default fading */
}

/* Dark mode placeholder */
html[data-theme="dark"] .fe-batches-filters .fe-input::placeholder,
html[data-theme="dark"] .fe-batches-filters textarea.fe-input::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
  opacity: 1 !important;
}

/* Cross-browser placeholder selectors (safety) */
.fe-batches-filters .fe-input::-webkit-input-placeholder { color: #6b7280 !important; opacity: 1 !important; }
.fe-batches-filters .fe-input::-moz-placeholder          { color: #6b7280 !important; opacity: 1 !important; }
.fe-batches-filters .fe-input:-ms-input-placeholder      { color: #6b7280 !important; opacity: 1 !important; }
.fe-batches-filters .fe-input::-ms-input-placeholder     { color: #6b7280 !important; opacity: 1 !important; }

html[data-theme="dark"] .fe-batches-filters .fe-input::-webkit-input-placeholder { color: rgba(255,255,255,0.55) !important; opacity: 1 !important; }
html[data-theme="dark"] .fe-batches-filters .fe-input::-moz-placeholder          { color: rgba(255,255,255,0.55) !important; opacity: 1 !important; }
html[data-theme="dark"] .fe-batches-filters .fe-input:-ms-input-placeholder      { color: rgba(255,255,255,0.55) !important; opacity: 1 !important; }
html[data-theme="dark"] .fe-batches-filters .fe-input::-ms-input-placeholder     { color: rgba(255,255,255,0.55) !important; opacity: 1 !important; }

/* Optional: if your SELECT "All Sessions / All Classes" looks odd */
.fe-batches-filters .fe-select option[value="0"],
.fe-batches-filters .fe-select option[value=""]{
  color: #6b7280 !important;
  font-weight: 600 !important;
}
html[data-theme="dark"] .fe-batches-filters .fe-select option[value="0"],
html[data-theme="dark"] .fe-batches-filters .fe-select option[value=""]{
  color: rgba(255,255,255,0.55) !important;
}


/* =========================================================
   FINAL FIX: Proper field surface + placeholder (Batches Filters)
   Put at the VERY END of batches.css
========================================================= */

/* Force consistent field surfaces inside this section only */
.fe-batches-filters .fe-input,
.fe-batches-filters .fe-select{
  background: #ffffff !important;        /* FIX: remove grey/glass */
  border: 1.5px solid #e5e7eb !important;
  color: #111827 !important;
}

/* Dark mode fields */
html[data-theme="dark"] .fe-batches-filters .fe-input,
html[data-theme="dark"] .fe-batches-filters .fe-select{
  background: rgba(51,65,85,0.60) !important;
  border-color: rgba(255,255,255,0.14) !important;
  color: rgba(255,255,255,0.92) !important;
}

/* Placeholder: remove browser default fading (this is the “weird” part) */
.fe-batches-filters .fe-input::placeholder{
  color: rgba(107,114,128,0.95) !important;  /* #6b7280 but smoother */
  opacity: 1 !important;
}

html[data-theme="dark"] .fe-batches-filters .fe-input::placeholder{
  color: rgba(255,255,255,0.55) !important;
  opacity: 1 !important;
}

/* Optional: if select "All Sessions / All Classes" looks like placeholder */
.fe-batches-filters .fe-select option[value="0"],
.fe-batches-filters .fe-select option[value=""]{
  color: rgba(107,114,128,0.95) !important;
  font-weight: 600 !important;
}

html[data-theme="dark"] .fe-batches-filters .fe-select option[value="0"],
html[data-theme="dark"] .fe-batches-filters .fe-select option[value=""]{
  color: rgba(255,255,255,0.55) !important;
}
