/* ════════════════════════════════════════
   FORMULAS REDESIGN
   ════════════════════════════════════════ */
.space-y-10 ul > li,
.space-y-8 ul > li {
  background: #ffffff !important;
  border: 1px solid rgba(107, 0, 199, 0.08) !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 2px 8px rgba(107, 0, 199, 0.06), 0 12px 40px rgba(107, 0, 199, 0.08) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
  padding: 2rem !important; /* Fix padding */
}

.space-y-10 ul > li:hover,
.space-y-8 ul > li:hover {
  box-shadow: 0 8px 32px rgba(107, 0, 199, 0.14), 0 24px 64px rgba(107, 0, 199, 0.10) !important;
  border-color: rgba(107, 0, 199, 0.18) !important;
  transform: translateY(-6px) !important;
}

code.font-mono {
  background: linear-gradient(135deg, #faf5ff 0%, #f0e6ff 50%, #e8f4ff 100%) !important;
  border: 1px solid rgba(107, 0, 199, 0.12) !important;
  border-radius: 1rem !important;
  font-size: 0.9375rem !important;
  letter-spacing: 0.025em;
  padding: 0.875rem 1.25rem !important;
  font-weight: 700 !important;
  color: #250044 !important;
  box-shadow: inset 0 1px 2px rgba(107, 0, 199, 0.04);
}

input[placeholder*="formula"],
input[placeholder*="formule"] {
  border-radius: 1.25rem !important;
  border: 1.5px solid rgba(107, 0, 199, 0.1) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 0.9375rem !important;
}

input[placeholder*="formula"]:focus,
input[placeholder*="formule"]:focus {
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1) !important;
  transform: translateY(-2px) !important;
}

dl.grid > div {
  border-radius: 1.125rem !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(107, 0, 199, 0.06) !important;
  position: relative;
  overflow: hidden;
  padding: 1.5rem !important; /* Restore padding */
  background: white !important;
}

dl.grid > div:hover {
  box-shadow: 0 2px 8px rgba(107, 0, 199, 0.06), 0 12px 40px rgba(107, 0, 199, 0.08) !important;
  border-color: rgba(107, 0, 199, 0.12) !important;
  transform: translateY(-3px) !important;
}

dl.grid > div dt {
  background: linear-gradient(135deg, #faf5ff, #f0e6ff) !important;
  border: 1px solid rgba(107, 0, 199, 0.1) !important;
  border-radius: 0.75rem !important;
  font-weight: 700 !important;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem !important;
  margin-bottom: 0.5rem !important;
  display: inline-block !important;
}

dl.grid > div:hover dt {
  background: linear-gradient(135deg, #a855f7, #6b00c7) !important;
  color: white !important;
  border-color: transparent !important;
}

button[title="Copy"],
button[title="Copier"] {
  border-radius: 50% !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(8px);
}

@media (max-width: 640px) {
  .space-y-10 ul > li,
  .space-y-8 ul > li {
    border-radius: 1.125rem !important;
    padding: 1.25rem !important;
  }
}

/* ════════════════════════════════════════
   EXAM CUES ENHANCEMENTS (Glassmorphism dark)
   ════════════════════════════════════════ */
div.rounded-2xl.border-white\/10.bg-white\/10 {
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 100%) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
  z-index: 10;
}

div.rounded-2xl.border-white\/10.bg-white\/10:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.08) 100%) !important;
  border-color: rgba(255,255,255,0.4) !important;
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.3) !important;
}

/* Icon glowing effect */
div.rounded-2xl.border-white\/10.bg-white\/10 svg.text-emerald-300 {
  color: #6ee7b7 !important;
  filter: drop-shadow(0 0 10px rgba(110, 231, 183, 0.6));
  transform: scale(1.15);
  margin-bottom: 1rem !important;
}

div.rounded-2xl.border-white\/10.bg-white\/10 svg.text-amber-300 {
  color: #fcd34d !important;
  filter: drop-shadow(0 0 10px rgba(252, 211, 77, 0.6));
  transform: scale(1.15);
  margin-bottom: 1rem !important;
}

/* Text enhancement */
div.rounded-2xl.border-white\/10.bg-white\/10 p.text-slate-100 {
  color: #ffffff !important;
  font-weight: 500 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
  line-height: 1.6 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em;
}
