/* ✨ Ultra-Modern Global Styles for Student Portal ✨ */

:root {
  /* 🎨 Enhanced Color Palette with Neon Accents */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --info-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --dark-gradient: linear-gradient(135deg, #2d3561 0%, #1e2749 100%);
  --light-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* 🌈 Neon Gradients */
  --neon-purple: linear-gradient(135deg, #667eea 0%, #a855f7 50%, #764ba2 100%);
  --neon-cyan: linear-gradient(135deg, #06b6d4 0%, #00f2fe 50%, #4facfe 100%);
  --neon-pink: linear-gradient(135deg, #ec4899 0%, #f093fb 50%, #f5576c 100%);

  /* 🎯 Color Variables */
  --primary-color: #667eea;
  --secondary-color: #644ba2;
  --accent-color: #32c5d2;
  --success-color: #4facfe;
  --text-dark: #2d3561;
  --text-light: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* 💎 Enhanced Shadows with Depth */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.20);
  --shadow-3d: 0 20px 60px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.15);
  --glow: 0 0 20px rgba(102, 126, 234, 0.4);
  --glow-strong: 0 0 30px rgba(102, 126, 234, 0.6), 0 0 60px rgba(102, 126, 234, 0.3);
  --neon-glow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;

  /* 📐 Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 50%;

  /* ⚡ Smooth Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 💎 Enhanced Glassmorphism 2.0 */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-3d);
}

/* 🌟 Modern Background with Particles */
body {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
  animation: particleFloat 20s ease-in-out infinite;
}

@keyframes particleFloat {

  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0px);
  }

  50% {
    opacity: 0.6;
    transform: translateY(-20px);
  }
}

/* 🎨 Enhanced Animated Background */
.animated-bg {
  /* background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe); */
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
}

.animated-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  animation: particleMove 25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes particleMove {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* 🔘 Ultra-Modern Button Styles with 3D Effects */
.btn-modern {
  position: relative;
  padding: 12px 32px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  transition: var(--transition-normal);
  overflow: hidden;
  z-index: 1;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); */
  transition: var(--transition-slow);
  z-index: -1;
}

.btn-modern::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: var(--transition-normal);
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern:hover::after {
  opacity: 1;
}

.btn-modern:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--glow);
}

.btn-modern:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-primary-modern {
  background: var(--neon-purple);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary-modern:hover {
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), var(--glow-strong);
}

.btn-success-modern {
  background: var(--neon-cyan);
  color: white;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.btn-success-modern:hover {
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4), 0 0 30px rgba(79, 172, 254, 0.5);
}

/* Modern Form Controls */
.form-control-modern {
  border-radius: var(--radius-md);
  border: 2px solid rgba(102, 126, 234, 0.2);
  padding: 12px 16px;
  transition: var(--transition-normal);
  background: rgba(255, 255, 255, 0.95);
}

.form-control-modern:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  outline: none;
  transform: translateY(-2px);
}

/* Modern Card */
.modern-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: none;
}

.modern-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Floating Animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Slide In Animation */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Modern Loading Spinner */
.modern-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: var(--glow);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Modern Badge */
.modern-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 600;
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Gradient Text */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Modern Alert */
.modern-alert {
  border-radius: var(--radius-lg);
  border: none;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

/* Hover Lift Effect */
.hover-lift {
  transition: var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  /* background: var(--primary-gradient); */
  background: #2d3561;
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  /* background: var(--secondary-color); */
  background: #5067bb;
}

/* Stagger Animation for Lists */
.stagger-item {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

.stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
  animation-delay: 0.6s;
}

/* Modern Container */
.modern-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Glass Navigation */
.glass-nav {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md);
}

/* Modern Input Group */
.modern-input-group {
  position: relative;
  margin-bottom: 24px;
}

.modern-input-group label {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 14px;
  color: #666;
  transition: var(--transition-fast);
  pointer-events: none;
  background: white;
  padding: 0 4px;
}

.modern-input-group input:focus+label,
.modern-input-group input:not(:placeholder-shown)+label {
  top: -8px;
  font-size: 12px;
  color: var(--primary-color);
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.3) 50%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Step Container Wrapper Styles */
.modern-step-wrapper {
  padding: 30px 20px;
  min-height: calc(100vh - 200px);
}

.step-content-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin-bottom: 30px;
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  color: #2d3561;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.step-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #667eea;
  margin-bottom: 16px;
}

/* Alert Styles */
.alert-modern {
  border-radius: 12px;
  border: none;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 500;
  line-height: 1.6;
}

.alert-modern-primary {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  color: #2d3561;
  border-right: 4px solid #667eea;
}

.alert-modern-danger {
  background: linear-gradient(135deg, rgba(245, 87, 108, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
  color: #f5576c;
  border-right: 4px solid #f5576c;
}

.alert-modern-success {
  background: linear-gradient(135deg, rgba(67, 233, 123, 0.1) 0%, rgba(56, 249, 215, 0.1) 100%);
  color: #2d3561;
  border-right: 4px solid #43e97b;
}

/* Section Divider */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
  margin: 32px 0;
}

/* Info Box */
.info-box {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  border-right: 4px solid #4facfe;
}

.info-box h4 {
  color: #4facfe;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Data Display Grid */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.data-item {
  background: rgba(102, 126, 234, 0.05);
  padding: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.data-item:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-3px);
}

.data-label {
  font-size: 13px;
  color: #666;
  font-weight: 600;
  margin-bottom: 6px;
}

.data-value {
  font-size: 16px;
  color: #2d3561;
  font-weight: 700;
}

/* Fixed Scroll Container */
.fixed-scroll-modern {
  max-height: 600px;
  overflow-y: auto;
  padding: 20px;
  background: rgba(102, 126, 234, 0.03);
  border-radius: 12px;
  border: 2px solid rgba(102, 126, 234, 0.1);
}

.fixed-scroll-modern::-webkit-scrollbar {
  width: 8px;
}

.fixed-scroll-modern::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.fixed-scroll-modern::-webkit-scrollbar-thumb {
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background: #2d3561;
  border-radius: 4px;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .modern-card {
    padding: 16px;
  }

  .btn-modern {
    padding: 10px 24px;
  }

  .modern-step-wrapper {
    padding: 20px 10px;
  }

  .step-content-card {
    padding: 24px 20px;
  }

  .data-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* 🎭 Advanced Animations */

/* Scale In Animation */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Bounce Animation */
@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.bounce {
  animation: bounce 1s ease-in-out infinite;
}

/* Glow Pulse */
@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
  }

  50% {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.8), 0 0 60px rgba(102, 126, 234, 0.4);
  }
}

.glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Rotate In */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }

  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

.rotate-in {
  animation: rotateIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Slide Up */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

/* 🌈 Neon Text Effect */
.neon-text {
  color: #fff;
  text-shadow:
    0 0 10px rgba(102, 126, 234, 0.8),
    0 0 20px rgba(102, 126, 234, 0.6),
    0 0 30px rgba(102, 126, 234, 0.4),
    0 0 40px rgba(102, 126, 234, 0.2);
  animation: neonFlicker 3s ease-in-out infinite;
}

@keyframes neonFlicker {

  0%,
  100% {
    text-shadow:
      0 0 10px rgba(102, 126, 234, 0.8),
      0 0 20px rgba(102, 126, 234, 0.6),
      0 0 30px rgba(102, 126, 234, 0.4);
  }

  50% {
    text-shadow:
      0 0 15px rgba(102, 126, 234, 1),
      0 0 30px rgba(102, 126, 234, 0.8),
      0 0 45px rgba(102, 126, 234, 0.6),
      0 0 60px rgba(102, 126, 234, 0.4);
  }
}

/* 💫 3D Card Flip Effect */
.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

/* ✨ Sparkle Effect */
@keyframes sparkle {

  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.sparkle::before {
  content: '✨';
  position: absolute;
  animation: sparkle 2s ease-in-out infinite;
}

/* 🎯 Magnetic Button Effect */
.btn-magnetic {
  transition: var(--transition-fast);
}

.btn-magnetic:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-3d);
}

/* 🌊 Wave Animation */
@keyframes wave {

  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  25% {
    transform: translateX(5px) translateY(-5px);
  }

  75% {
    transform: translateX(-5px) translateY(5px);
  }
}

.wave {
  animation: wave 3s ease-in-out infinite;
}

/* 🎪 Tilt Effect on Hover */
.tilt-hover {
  transition: var(--transition-normal);
}

.tilt-hover:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(2deg);
}