/* EduSmart AI - Custom Styles & Animations */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Caveat:wght@600;700&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --secondary: #06b6d4;
  --accent: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #0f172a;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
}

.font-handwriting {
  font-family: 'Caveat', cursive, sans-serif;
}

.font-mono-code {
  font-family: 'Fira Code', monospace;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.5);
}

/* Scanner Animation */
.scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(6,182,212,0) 0%, #06b6d4 50%, rgba(6,182,212,0) 100%);
  box-shadow: 0 0 15px 4px rgba(6, 182, 212, 0.8);
  animation: scanLaser 2.2s ease-in-out infinite alternate;
}

.scanner-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(6, 182, 212, 0.15) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(6, 182, 212, 0.15) 1px, transparent 1px);
  background-size: 25px 25px;
  animation: pulseGrid 2s infinite ease-in-out;
}

@keyframes scanLaser {
  0% { top: 2%; opacity: 0.8; }
  100% { top: 96%; opacity: 1; }
}

@keyframes pulseGrid {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

/* Mobile Phone Mockup */
.phone-mockup-frame {
  width: 390px;
  max-width: 100%;
  height: 780px;
  border-radius: 46px;
  border: 12px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 4px #475569;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 130px;
  height: 26px;
  background: #1e293b;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.phone-speaker {
  width: 40px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
}

.phone-camera {
  width: 9px;
  height: 9px;
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: 50%;
}

.phone-content {
  flex: 1;
  overflow-y: auto;
  padding-top: 36px;
  padding-bottom: 24px;
  scrollbar-width: thin;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Shimmer AI Generation Effect */
.shimmer-ai {
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 50%, #4f46e5 100%);
  background-size: 200% 100%;
  animation: shimmerAnim 2.5s infinite linear;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes shimmerAnim {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Pulse Glow */
.pulse-glow {
  box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
  animation: pulseCustom 2s infinite;
}

@keyframes pulseCustom {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 14px rgba(79, 70, 229, 0); }
  100% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* Tab Active Styles */
.nav-tab-active {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: white !important;
  box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.4);
}

.subtab-active {
  border-bottom: 2px solid #4f46e5;
  color: #4f46e5;
  font-weight: 700;
}
