:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.2);
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.2);
  --bg: #f0fdf4;
  --bg-gradient: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  --card: rgba(240, 253, 244, 0.8);
  --card2: rgba(240, 253, 244, 0.95);
  --card-hover: rgba(240, 253, 244, 1);
  --border: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(37, 99, 235, 0.5);
  --text: #0f172a;
  --muted: #64748b;
  --success: #10b981;
  --error: #ef4444;
  --radius: 20px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

/* Base Body Styles */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Glowing Orbs */
.bg-orbs { 
  position: fixed; 
  inset: 0; 
  pointer-events: none; 
  z-index: 0; 
}
.orb { 
  position: absolute; 
  border-radius: 50%; 
  filter: blur(110px); 
  opacity: 0.25; 
  animation: drift 15s ease-in-out infinite; 
}
.orb1 { 
  width: 550px; 
  height: 550px; 
  background: #2563eb; 
  top: -150px; 
  left: -100px; 
}
.orb2 { 
  width: 450px; 
  height: 450px; 
  background: #10b981; 
  bottom: -100px; 
  right: -100px; 
  animation-delay: -5s; 
}
.orb3 { 
  width: 350px; 
  height: 350px; 
  background: #38bdf8; 
  top: 35%; 
  left: 45%; 
  animation-delay: -10s; 
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -40px) scale(1.08); }
  66% { transform: translate(-30px, 30px) scale(0.92); }
}

/* Navigation Bar */
.navbar {
  position: sticky; 
  top: 0; 
  z-index: 100;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(240, 253, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.admin-sidebar {
  width: 260px;
  background: rgba(240, 253, 244, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-right: 1px solid var(--border);
  display: flex;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.nav-logo { 
  font-size: 1.5rem; 
  font-weight: 800; 
  color: var(--text); 
  letter-spacing: -0.5px; 
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}
.nav-logo img {
  mix-blend-mode: multiply;
  border-radius: 0 !important;
  background: transparent;
}
.nav-logo:hover {
  transform: scale(1.02);
}
.nav-logo span { 
  background: linear-gradient(135deg, #a78bfa, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { 
  display: flex; 
  align-items: center; 
  gap: 1.2rem; 
}

.nav-item {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}
.nav-item:hover, .nav-item.active {
  color: var(--text);
  background: rgba(240, 253, 244, 0.05);
}

.nav-college {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; 
  padding: 6px 16px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #22d3ee; 
  border-radius: 99px;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}
.nav-college:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.4);
}

.btn-admin-toggle {
  background: rgba(240, 253, 244, 0.05);
  border: 1px solid var(--border);
  color: #cbd5e1;
  padding: 0.55rem 1.2rem;
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-admin-toggle:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.35);
  color: white;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}

.btn-logout {
  padding: 0.55rem 1.2rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--error); 
  border-radius: 99px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem; 
  font-weight: 600;
  cursor: pointer; 
  transition: all 0.2s ease;
}
.btn-logout:hover { 
  background: rgba(239, 68, 68, 0.18); 
  border-color: rgba(239, 68, 68, 0.35);
}

/* Landing Container & Hero */
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 6rem 0 3rem;
  min-height: calc(100vh - 150px);
}
.hero-content {
  flex: 1.2;
  animation: fadeInRight 0.8s ease;
}
.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #c084fc;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}
.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  color: #ef4444;
}
.gradient-text {
  background: linear-gradient(135deg, #10b981 10%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 1.2rem;
}
.hero-actions .btn-primary {
  width: auto;
  padding: 0.95rem 2.2rem;
}
.hero-actions .btn-ghost {
  padding: 0.95rem 2.2rem;
}

.hero-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
  position: relative;
  animation: fadeInLeft 0.8s ease;
}

.hero-illustration-img {
  width: 100%;
  max-width: 460px;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(240, 253, 244, 0.08);
  animation: float 6s ease-in-out infinite;
  transition: all 0.3s ease;
}
.hero-illustration-img:hover {
  box-shadow: 0 30px 70px rgba(124, 58, 237, 0.35);
  transform: translateY(-5px) scale(1.01);
}

@keyframes float { 
  0%, 100% { transform: translateY(0); } 
  50% { transform: translateY(-12px); } 
}

/* Buttons */
.btn-primary {
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem; 
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
  color: white;
  border: none; 
  border-radius: 12px; 
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px var(--primary-glow);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(240, 253, 244, 0.15), transparent);
  transition: all 0.6s ease;
}
.btn-primary:hover::after {
  left: 100%;
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 28px var(--primary-glow); 
  filter: brightness(1.1);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-primary:disabled { 
  opacity: 0.5; 
  cursor: not-allowed; 
  transform: none; 
  box-shadow: none;
}
.btn-arrow { 
  font-size: 1.1rem; 
  transition: transform 0.2s ease;
}
.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost {
  padding: 0.85rem 1.6rem; 
  background: rgba(240, 253, 244, 0.03);
  border: 1px solid var(--border); 
  color: var(--text); 
  border-radius: 12px;
  font-family: 'Outfit', sans-serif; 
  font-size: 0.95rem; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.2s ease;
}
.btn-ghost:hover { 
  background: rgba(240, 253, 244, 0.07); 
  border-color: rgba(240, 253, 244, 0.15);
  transform: translateY(-1px);
}
.btn-ghost:active {
  transform: translateY(1px);
}

/* Sponsor Ads Area (Carousel & Two-Column Layout) */
.ad-carousel-container {
  margin: 3.5rem 0;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(240, 253, 244, 0.7);
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.ad-carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.ad-slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items:stretch;
  position: relative;
  min-height: 140px;
}

.ad-image-left {
  flex: 0 0 35%;
  position: relative;
  overflow: hidden;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-image-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.5rem;
}

/* Gradient separator between image and text */
.ad-image-left::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; width: 40px;
  background: linear-gradient(to right, transparent, rgba(240, 253, 244, 1));
}

.ad-info-right {
  flex: 1;
  padding: 1.5rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(240, 253, 244, 1);
}

.ad-banner-label {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(6, 182, 212, 0.15);
  border-bottom-left-radius: 10px;
  border-left: 1px solid rgba(6, 182, 212, 0.2);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  font-size: 0.65rem;
  color: #22d3ee;
  padding: 3px 12px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.ad-text-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-grow: 1;
}

.ad-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(6, 182, 212, 0.08);
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.ad-text {
  flex-grow: 1;
}
.ad-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}
.ad-text p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.btn-ad-cta {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: white;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-ad-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
  filter: brightness(1.1);
}

/* About Section */
.about-section {
  padding: 4rem 0 6rem;
}
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}
.section-title p {
  color: var(--muted);
  font-size: 1.05rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.1), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-5px);
  background: var(--card-hover);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.15);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.4rem;
  display: block;
}
.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.8rem;
  color: #0284c7; /* light blue-ish but readable */
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Auth Section */
.auth-section {
  position: relative; 
  z-index: 1;
  min-height: calc(100vh - 75px);
  display: grid; 
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
}

/* Animated Books Background */
.books-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.animated-book {
  position: absolute;
  opacity: 0.85; 
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
  animation: floatBook linear infinite;
}

@keyframes floatBook {
  0% { transform: translateY(110vh) rotate(0deg) scale(0.8); }
  100% { transform: translateY(-20vh) rotate(360deg) scale(1.2); }
}

.animated-book.b1 { left: 5%; animation-duration: 25s; animation-delay: 0s; font-size: 4rem; }
.animated-book.b2 { left: 25%; animation-duration: 35s; animation-delay: -5s; font-size: 3rem; }
.animated-book.b3 { left: 45%; animation-duration: 28s; animation-delay: -15s; font-size: 5rem; opacity: 0.7;}
.animated-book.b4 { left: 65%; animation-duration: 40s; animation-delay: -10s; font-size: 3.5rem; }
.animated-book.b5 { left: 85%; animation-duration: 32s; animation-delay: -2s; font-size: 4.5rem; }
.animated-book.b6 { left: 15%; animation-duration: 22s; animation-delay: -8s; font-size: 3rem; }
.animated-book.b7 { left: 55%; animation-duration: 38s; animation-delay: -20s; font-size: 2.5rem; }
.animated-book.b8 { left: 95%; animation-duration: 30s; animation-delay: -12s; font-size: 4rem; opacity: 0.65;}
.auth-left {
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 4rem; 
  border-right: 1px solid var(--border);
  background: rgba(240, 253, 244, 0.05);
}
.auth-brand { 
  max-width: 440px; 
}
.brand-icon { 
  font-size: 4.5rem; 
  display: block; 
  margin-bottom: 1.5rem; 
  animation: float 4s ease-in-out infinite; 
}
.auth-brand h1 {
  font-size: 3.2rem; 
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, #38bdf8 20%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem; 
  line-height: 1.1;
  letter-spacing: -1px;
}
.auth-brand p { 
  color: var(--muted); 
  font-size: 1.1rem; 
  line-height: 1.7; 
  margin-bottom: 2.2rem; 
}
.brand-features { 
  display: flex; 
  flex-direction: column; 
  gap: 0.8rem; 
}
.feature-pill {
  display: inline-flex; 
  align-items: center; 
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  background: rgba(240, 253, 244, 0.03);
  border: 1px solid var(--border);
  border-radius: 99px; 
  font-size: 0.9rem; 
  color: #cbd5e1; 
  width: fit-content;
  transition: all 0.2s ease;
}
.feature-pill:hover {
  background: rgba(240, 253, 244, 0.06);
  border-color: rgba(240, 253, 244, 0.12);
  transform: translateX(4px);
}

.auth-right { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 4rem; 
}
.auth-card {
  width: 100%; 
  max-width: 440px;
  background: var(--card); 
  border: 1px solid var(--border);
  border-radius: 24px; 
  padding: 2.8rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(124, 58, 237, 0.1);
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.tab-group {
  display: flex; 
  background: rgba(240, 253, 244, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px; 
  padding: 4px; 
  margin-bottom: 2.2rem; 
  gap: 4px;
}
.tab {
  flex: 1; 
  padding: 0.7rem; 
  border: none; 
  background: transparent;
  border-radius: 9px; 
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem; 
  font-weight: 600; 
  color: var(--muted); 
  cursor: pointer; 
  transition: all 0.2s ease;
}
.tab:hover {
  color: var(--text);
}
.tab.active { 
  background: var(--primary); 
  color: white; 
  box-shadow: 0 4px 16px var(--primary-glow); 
}

/* Forms styling */
.form-group { 
  margin-bottom: 1.3rem; 
}
.form-group label {
  display: block; 
  font-size: 0.8rem; 
  font-weight: 700;
  color: #94a3b8; 
  margin-bottom: 0.5rem;
  text-transform: uppercase; 
  letter-spacing: 0.8px;
}
.input-wrap { 
  position: relative; 
  display: flex; 
  align-items: center; 
}
.input-icon { 
  position: absolute; 
  left: 15px; 
  font-size: 1rem; 
  pointer-events: none; 
  z-index: 1; 
  color: var(--muted);
}
.input-wrap input {
  width: 100%; 
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  background: rgba(240, 253, 244, 0.03); 
  border: 1px solid var(--border);
  border-radius: 12px; 
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem; 
  color: var(--text); 
  outline: none; 
  transition: all 0.2s ease;
}
.input-wrap input::placeholder { 
  color: var(--muted); 
}
.input-wrap input:focus { 
  border-color: var(--primary); 
  background: rgba(124, 58, 237, 0.04); 
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2); 
}

textarea {
  width: 100%; 
  padding: 0.85rem 1.1rem;
  background: rgba(240, 253, 244, 0.03); 
  border: 1px solid var(--border);
  border-radius: 12px; 
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem; 
  color: var(--text); 
  outline: none; 
  resize: vertical; 
  transition: all 0.2s ease;
}
textarea::placeholder { 
  color: var(--muted); 
}
textarea:focus { 
  border-color: var(--primary); 
  background: rgba(124, 58, 237, 0.04); 
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2); 
}

.file-upload-wrap { 
  position: relative; 
}
.file-upload-wrap input[type="file"] { 
  display: none; 
}
.file-label {
  display: flex; 
  align-items: center; 
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  background: rgba(240, 253, 244, 0.02);
  border: 1.5px dashed rgba(124, 58, 237, 0.35);
  border-radius: 12px; 
  cursor: pointer; 
  transition: all 0.2s ease;
  font-size: 0.92rem; 
  color: var(--muted);
}
.file-label:hover { 
  border-color: var(--primary); 
  background: rgba(124, 58, 237, 0.05); 
  color: var(--text); 
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.checkbox-group input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}
.checkbox-group label {
  cursor: pointer;
  user-select: none;
}

.switch-text { 
  text-align: center; 
  margin-top: 1.4rem; 
  font-size: 0.88rem; 
  color: var(--muted); 
}
.switch-text a { 
  color: #c084fc; 
  cursor: pointer; 
  font-weight: 600; 
  transition: all 0.2s ease;
}
.switch-text a:hover { 
  color: #a78bfa;
  text-decoration: underline; 
}

.msg { 
  font-size: 0.88rem; 
  min-height: 24px; 
  margin-bottom: 0.8rem; 
  text-align: center; 
  padding: 0.4rem; 
  border-radius: 8px;
  font-weight: 500;
}
.msg.success { 
  color: #34d399; 
  background: rgba(52, 211, 153, 0.08); 
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.msg.error { 
  color: #f87171; 
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

/* Dashboard Panel */
.dashboard { 
  position: relative; 
  z-index: 1; 
  padding: 3rem 2rem; 
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
}
.dashboard-inner { 
  max-width: 1100px; 
  margin: 0 auto; 
}

.welcome-banner {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 24px; 
  padding: 2.2rem 2.5rem; 
  margin-bottom: 2rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.welcome-left { 
  display: flex; 
  align-items: center; 
  gap: 1.4rem; 
}
.welcome-avatar {
  width: 60px; 
  height: 60px; 
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 1.6rem; 
  font-weight: 800; 
  color: white; 
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}
.welcome-banner h2 { 
  font-size: 1.6rem; 
  font-weight: 800; 
  margin-bottom: 0.35rem; 
  letter-spacing: -0.5px;
}
.welcome-banner p { 
  color: #059669; 
  font-size: 0.85rem; 
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace; 
  background: rgba(240, 253, 244, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: inline-block;
}
.btn-add-note {
  display: flex; 
  align-items: center; 
  gap: 0.5rem;
  padding: 0.85rem 1.6rem; 
  background: linear-gradient(135deg, var(--accent), #0891b2); 
  color: white;
  border: none; 
  border-radius: 12px; 
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem; 
  font-weight: 700; 
  cursor: pointer; 
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35); 
  white-space: nowrap;
}
.btn-add-note:hover { 
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
  filter: brightness(1.1);
}
.btn-add-note:active {
  transform: translateY(0);
}

/* Add Note Form Container */
.add-note-card {
  background: var(--card); 
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 24px; 
  padding: 2.2rem; 
  margin-bottom: 2rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 58, 237, 0.08); 
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.add-note-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 1.6rem; 
}
.add-note-header h3 { 
  font-size: 1.3rem; 
  font-weight: 800; 
  letter-spacing: -0.5px;
}
.close-btn {
  width: 32px; 
  height: 32px; 
  background: rgba(240, 253, 244, 0.04);
  border: 1px solid var(--border); 
  border-radius: 8px; 
  color: var(--muted);
  font-size: 0.85rem; 
  cursor: pointer; 
  transition: all 0.2s ease;
  display: flex; 
  align-items: center; 
  justify-content: center;
}
.close-btn:hover { 
  background: rgba(239, 68, 68, 0.15); 
  color: var(--error); 
  border-color: rgba(239, 68, 68, 0.25);
  transform: rotate(90deg);
}

.form-row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 1.2rem; 
}
.form-actions { 
  display: flex; 
  gap: 0.8rem; 
  margin-top: 0.8rem; 
}
.form-actions .btn-primary { 
  width: auto; 
  padding: 0.85rem 1.8rem; 
}

/* AI Generator Panel in Add Note */
.ai-generator-panel {
  background: rgba(124, 58, 237, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 14px;
  padding: 1.4rem;
  margin-top: 1.3rem;
  box-shadow: inset 0 0 15px rgba(124, 58, 237, 0.05);
}
.ai-gen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ai-gen-header span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #c084fc;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-ai-generate {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: #d8b4fe;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.btn-ai-generate:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  transform: translateY(-1px);
}
.ai-gen-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.7rem;
}
.spinner-small {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(240, 253, 244, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Search Bar */
.search-wrap { 
  position: relative; 
  margin-bottom: 2rem; 
}
.search-icon { 
  position: absolute; 
  left: 16px; 
  top: 50%; 
  transform: translateY(-50%); 
  font-size: 1.1rem; 
  pointer-events: none; 
  z-index: 1; 
  color: var(--muted);
}
.search-wrap input {
  width: 100%; 
  padding: 0.95rem 1rem 0.95rem 3.2rem;
  background: var(--card2); 
  border: 1px solid var(--border);
  border-radius: 16px; 
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; 
  color: var(--text); 
  outline: none; 
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.search-wrap input:focus { 
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2); 
}
.search-wrap input::placeholder { 
  color: var(--muted); 
}

/* Grid & Section Header */
.section-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 1.5rem; 
}
.section-header h3 { 
  font-size: 1.3rem; 
  font-weight: 800; 
  letter-spacing: -0.5px;
}
.section-sub { 
  font-size: 0.82rem; 
  color: var(--muted); 
  margin-top: 0.3rem; 
  font-family: 'JetBrains Mono', monospace; 
}
.btn-refresh {
  padding: 0.5rem 1.1rem; 
  background: rgba(240, 253, 244, 0.03);
  border: 1px solid var(--border); 
  color: var(--muted); 
  border-radius: 8px;
  font-family: 'Outfit', sans-serif; 
  font-size: 0.85rem; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.2s ease;
}
.btn-refresh:hover { 
  color: var(--text); 
  background: rgba(240, 253, 244, 0.08); 
  border-color: rgba(240, 253, 244, 0.15);
  transform: translateY(-1px);
}

/* Notes Grid Cards */
.notes-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); 
  gap: 1.5rem; 
}

.note-card {
  background: var(--card2); 
  border: 1px solid var(--border);
  border-radius: var(--radius); 
  padding: 1.8rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; 
  position: relative; 
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.note-card::before {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.7; 
  transition: opacity 0.3s ease;
}
.note-card:hover { 
  transform: translateY(-6px); 
  border-color: rgba(124, 58, 237, 0.35); 
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(124, 58, 237, 0.15); 
  background: var(--card-hover);
}
.note-card:hover::before { 
  opacity: 1; 
}

.note-subject {
  display: inline-block; 
  padding: 4px 12px;
  background: rgba(124, 58, 237, 0.12); 
  border: 1px solid rgba(124, 58, 237, 0.25);
  color: #c084fc; 
  border-radius: 99px; 
  font-size: 0.7rem; 
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace; 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  margin-bottom: 1rem;
  width: fit-content;
}

.note-title { 
  font-size: 1.15rem; 
  font-weight: 800; 
  margin-bottom: 0.6rem; 
  color: var(--text); 
  line-height: 1.35; 
  letter-spacing: -0.3px;
}
.note-desc { 
  font-size: 0.88rem; 
  color: var(--muted); 
  line-height: 1.6; 
  margin-bottom: 1.2rem; 
}

/* Note Details block: Summary and Tags */
.note-summary-text {
  background: rgba(124, 58, 237, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  border-right: 1px solid rgba(124, 58, 237, 0.1);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}
.note-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.2rem;
}
.note-tag-bubble {
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(240, 253, 244, 0.04);
  border: 1px solid var(--border);
  color: #94a3b8;
  padding: 3px 9px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.note-card:hover .note-tag-bubble {
  border-color: rgba(240, 253, 244, 0.1);
  background: rgba(240, 253, 244, 0.06);
}

.pdf-link {
  display: inline-flex; 
  align-items: center; 
  gap: 0.45rem;
  margin-bottom: 1.2rem; 
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.1); 
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent); 
  border-radius: 99px; 
  font-size: 0.8rem; 
  font-weight: 700;
  text-decoration: none; 
  transition: all 0.2s ease;
  width: fit-content;
}
.pdf-link:hover { 
  background: rgba(6, 182, 212, 0.18); 
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

.note-footer {
  display: flex; 
  align-items: center; 
  gap: 0.5rem;
  font-size: 0.78rem; 
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  border-top: 1px solid var(--border); 
  padding-top: 1rem;
  margin-top: auto;
}

.btn-delete {
  margin-left: auto; 
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.08); 
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--error); 
  border-radius: 8px; 
  font-size: 0.75rem; 
  font-weight: 600;
  cursor: pointer; 
  transition: all 0.2s ease; 
  font-family: 'Outfit', sans-serif;
}
.btn-delete:hover { 
  background: rgba(239, 68, 68, 0.18); 
  border-color: rgba(239, 68, 68, 0.35);
}

/* Sponsored Note Feed Cards */
.premium-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(240, 253, 244, 0.95));
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(37, 99, 235, 0.3);
}
.note-card.sponsored-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(240, 253, 244, 0.95));
  border-color: rgba(6, 182, 212, 0.3);
}
.note-card.sponsored-card::before {
  background: linear-gradient(90deg, var(--accent), #10b981);
}
.sponsor-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.12);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'JetBrains Mono', monospace;
}

/* Empty & Loading Dashboard State */
.empty-state { 
  text-align: center; 
  padding: 6rem 2rem; 
  color: var(--muted); 
  background: rgba(240, 253, 244, 0.01);
  border: 1px dashed var(--border);
  border-radius: 24px;
  margin-top: 1rem;
}
.empty-icon { 
  font-size: 4rem; 
  margin-bottom: 1.2rem; 
  display: block; 
}
.empty-state h4 { 
  font-size: 1.2rem; 
  color: var(--text); 
  margin-bottom: 0.6rem; 
}
.empty-state p { 
  font-size: 0.95rem; 
  line-height: 1.7; 
}

.loading-state { 
  text-align: center; 
  padding: 5rem; 
  color: var(--muted); 
}
.spinner {
  width: 44px; 
  height: 44px;
  border: 3px solid rgba(124, 58, 237, 0.15); 
  border-top-color: var(--primary);
  border-radius: 50%; 
  animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite; 
  margin: 0 auto 1.2rem;
}

/* Floating AI Chatbot Container */
.chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}
.chatbot-toggle {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 30px;
  color: white;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chatbot-toggle:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.5);
}
.chat-text {
  font-family: 'Outfit', sans-serif;
}
.chat-icon {
  font-size: 1.2rem;
}

/* Chatbox Window */
.chatbox-window {
  width: 380px;
  height: 520px;
  background: rgba(10, 6, 28, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 24px;
  position: absolute;
  bottom: 70px;
  right: 0;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(124, 58, 237, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.chatbox-header {
  background: rgba(240, 253, 244, 0.02);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bot-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.25);
}
.bot-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f0fdf4;
}
.status-indicator {
  font-size: 0.72rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}
.status-indicator::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--success);
}
.chat-close {
  background: rgba(240, 253, 244, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.chat-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.25);
}

.chatbox-messages {
  flex-grow: 1;
  padding: 1.4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.2) transparent;
}
.chatbox-messages::-webkit-scrollbar {
  width: 5px;
}
.chatbox-messages::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.2);
  border-radius: 99px;
}

.chat-msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  animation: slideUp 0.3s ease;
}
.chat-msg.bot {
  background: rgba(240, 253, 244, 0.04);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  color: #e2e8f0;
}
.chat-msg.user {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Chat Prompt Chips */
.chat-prompts {
  display: flex;
  gap: 8px;
  padding: 0.2rem 1.4rem 0.8rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.chat-prompts::-webkit-scrollbar {
  display: none;
}
.prompt-chip {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #d8b4fe;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.prompt-chip:hover {
  background: rgba(124, 58, 237, 0.18);
  color: white;
  border-color: rgba(124, 58, 237, 0.4);
}

.chatbox-input {
  display: flex;
  padding: 1rem;
  background: rgba(240, 253, 244, 0.02);
  border-top: 1px solid var(--border);
  gap: 10px;
  align-items: center;
}
.chatbox-input input {
  flex-grow: 1;
  background: rgba(240, 253, 244, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: white;
  outline: none;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s ease;
}
.chatbox-input input:focus {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.03);
}
.chatbox-input button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  padding: 0 18px;
  height: 38px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.2s ease;
}
.chatbox-input button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================
   ADMIN PANEL STYLING & TABLE UPDATES
   ========================================== */
.admin-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}
.admin-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}
.admin-logo {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.admin-logo span {
  background: linear-gradient(135deg, #a78bfa, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.admin-user-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.admin-badge {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.access-denied-box {
  text-align: center;
  padding: 5rem 2.5rem;
  max-width: 500px;
  margin: 8% auto;
  background: var(--card);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 24px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(239, 68, 68, 0.1);
  animation: slideUp 0.5s ease;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 253, 244, 0.12);
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}
.stat-card:nth-child(2)::after { background: var(--accent); }
.stat-card:nth-child(3)::after { background: var(--success); }

.stat-title {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 1rem;
}
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -1px;
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
  gap: 0.8rem;
}
.admin-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 0.8rem 1.4rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-tab:hover {
  color: var(--text);
  background: rgba(240, 253, 244, 0.02);
}
.admin-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  background: rgba(240, 253, 244, 0.02);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 1.4rem;
  font-size: 0.8rem;
  font-weight: 750;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr {
  transition: background 0.2s ease;
}
tbody tr:hover {
  background: rgba(240, 253, 244, 0.015);
}

.badge-status {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}
.badge-status.active {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
}
.badge-status.blocked {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--error);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.1);
}

.btn-block-action {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--error);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-block-action:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-unblock-action {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-unblock-action:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
}

/* Animations and Responsive */
@keyframes slideUp { 
  from { opacity: 0; transform: translateY(24px); } 
  to { opacity: 1; transform: translateY(0); } 
}
@keyframes slideDown { 
  from { opacity: 0; transform: translateY(-12px); } 
  to { opacity: 1; transform: translateY(0); } 
}
@keyframes spin { 
  to { transform: rotate(360deg); } 
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Mobile Navigation Button and Drawer */
.btn-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.btn-nav-toggle:hover {
  background: rgba(240, 253, 244, 0.2);
}

.mobile-nav-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(240, 253, 244, 0.98);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 98;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  transform: translateY(-120%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-menu.active {
  display: flex;
  transform: translateY(0);
}
.mobile-nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  transition: color 0.2s ease;
}
.mobile-nav-menu a:hover {
  color: var(--text);
}
.mobile-nav-auth {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

/* Sidebar overlay for mobile admin panel */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 28, 0.4);
  z-index: 998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadeIn 0.25s ease;
}
.sidebar-overlay.active {
  display: block;
}

/* Mobile top header for admin panel */
.mobile-admin-header {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 992px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 4rem 0;
    gap: 3.5rem;
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hero-content p {
    margin: 0 auto 2.2rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .ad-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .auth-section { 
    grid-template-columns: 1fr; 
  }
  .auth-left { 
    display: none; 
  }
  
  /* Admin Sidebar mobile styling */
  .admin-layout {
    flex-direction: column;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px; /* Hidden offscreen by default */
    height: 100vh;
    width: 260px;
    z-index: 1000;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 5px 0 15px rgba(0,0,0,0.15);
  }
  .sidebar.active {
    left: 0; /* Slide in */
  }
  .main-content {
    padding: 1.5rem;
  }
  .mobile-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    background: rgba(240, 253, 244, 0.85);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 99;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .btn-sidebar-toggle {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text);
    cursor: pointer;
  }
  .mobile-logo {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .mobile-logo span {
    background: linear-gradient(135deg, #a78bfa, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  /* Admin panel grids */
  .metrics-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  .insights-row {
    grid-template-columns: 1fr !important;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  .nav-links {
    gap: 0.8rem;
  }
  .nav-item {
    display: none; /* Hide simple navigation links on mobile */
  }
  .btn-nav-toggle {
    display: block;
  }
  .welcome-banner { 
    flex-direction: column; 
    gap: 1.2rem; 
    text-align: center; 
    padding: 1.8rem;
  }
  .welcome-left { 
    flex-direction: column; 
    gap: 0.8rem;
  }
  .form-row { 
    grid-template-columns: 1fr; 
    gap: 0.8rem;
  }
  .form-actions { 
    flex-direction: column; 
  }
  .form-actions button {
    width: 100% !important;
  }
  .chatbot-container {
    bottom: 20px;
    right: 20px;
  }
  .chatbox-window {
    width: calc(100vw - 40px);
    right: 0;
  }
  .admin-nav {
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }
  .admin-user-info {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Text and format improvements */
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1.05rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions button {
    width: 100%;
  }
  .auth-card {
    padding: 1.8rem !important;
  }
  .auth-right {
    padding: 1.5rem !important;
  }
  .notes-grid {
    grid-template-columns: 1fr !important;
  }
  .add-note-card {
    padding: 1.5rem !important;
  }
  .ad-slide {
    flex-direction: column;
    min-height: auto;
  }
  .ad-image-left {
    flex: 0 0 auto;
    width: 100%;
    height: 120px;
  }
  .ad-image-left::after {
    display: none;
  }
  .ad-info-right {
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    align-items: stretch;
  }
  .ad-text-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .ad-logo {
    align-self: flex-start;
  }
  .btn-ad-cta {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .metrics-row {
    grid-template-columns: 1fr !important;
  }
  .footer-top {
    grid-template-columns: 1fr !important;
  }
  /* Table scroll wrapping */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 600px;
  }
}

/* Note Action Buttons */
.note-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.btn-view, .btn-download {
  flex: 1;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.btn-view:hover {
  background: rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.btn-download {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-download:hover {
  background: rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
}

/* Save / Pin Button */
.btn-pin {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pin:hover {
  background: rgba(240, 253, 244, 0.05);
  border-color: rgba(124, 58, 237, 0.3);
  color: #7c3aed;
}

.btn-pin.pinned {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  color: #7c3aed;
}

/* ========================================
   PAGE LOADER — StudyBin Books Logo Animation
   Files fly from top-right INTO the open book
   ======================================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(240, 253, 244, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.page-loader.active {
  opacity: 1;
  pointer-events: auto;
}

/* Wrapper holds the logo + flying files together */
.loader-logo-wrap {
  position: relative;
  width: 200px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
}

/* The main books logo — gentle breathing pulse */
.loader-logo-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  mix-blend-mode: multiply;
  background: transparent;
  animation: bookPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(16, 185, 129, 0.25));
  position: relative;
  z-index: 1;
}

/* Each file icon flies from top-right INTO the book opening */
.loader-file-icon {
  position: absolute;
  font-size: 1.8rem;
  opacity: 0;
  z-index: 2;
  /* start position: top-right (where the arrow is in the logo) */
  top: 10px;
  right: 10px;
}
/* Stagger each file icon */
.loader-file-icon:nth-child(2) { animation: fileDropIn 2.4s ease-in-out 0s   infinite; }
.loader-file-icon:nth-child(3) { animation: fileDropIn 2.4s ease-in-out 0.8s infinite; font-size: 1.4rem; }
.loader-file-icon:nth-child(4) { animation: fileDropIn 2.4s ease-in-out 1.6s infinite; font-size: 1.1rem; }

/* Loader text */
.loader-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: #059669;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.loader-dots span {
  display: inline-block;
  animation: dotPulse 1.4s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Book gently scales — breathes */
@keyframes bookPulse {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.04); }
}

/* File starts top-right (near the arrow in logo), arcs DOWN into the open book top */
@keyframes fileDropIn {
  0%   { transform: translate(0px,  0px)  scale(1)   rotate(0deg);   opacity: 0;   }
  10%  { transform: translate(-5px, 5px)  scale(1)   rotate(-5deg);  opacity: 1;   }
  60%  { transform: translate(-55px, 60px) scale(0.8) rotate(-15deg); opacity: 0.9; }
  85%  { transform: translate(-75px, 90px) scale(0.5) rotate(-20deg); opacity: 0.5; }
  100% { transform: translate(-80px, 105px) scale(0.1) rotate(-25deg); opacity: 0; }
}

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1);   }
}

/* ============================================================
   HIRINGBIN PORTAL STYLES
   ============================================================ */
.hiringbin-layout {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}
.hiring-sidebar-ad {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hiringbin-feed {
  flex-grow: 1;
  min-width: 0;
}
.hiring-sidebar-ad .sidebar-ad-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  position: sticky;
  top: 90px;
}
.hiring-sidebar-ad .sidebar-ad-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  border: 1px solid var(--border);
}
.hiring-sidebar-ad .sidebar-ad-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--accent);
}
.hiring-sidebar-ad .sidebar-ad-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}
.hiring-sidebar-ad .sidebar-ad-sponsor {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* Hiring Cards Customizations */
.hiring-card-header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
}
.hiring-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.hiring-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hiring-company-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hiring-company-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hiring-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}
.hiring-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hiring-stipend {
  font-size: 0.95rem;
  font-weight: 700;
  color: #34d399; /* Green stipend text */
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hiring-jd-scroll {
  max-height: 80px;
  overflow-y: auto;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.05) transparent;
}
.hiring-jd-scroll::-webkit-scrollbar {
  width: 3px;
}
.hiring-jd-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
}
.hiring-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  margin-top: auto;
}
.btn-apply-hiring {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white !important;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.2);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-apply-hiring:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 6px 15px rgba(124, 58, 237, 0.3);
}
.btn-save-hiring {
  background: rgba(240, 253, 244, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.btn-save-hiring:hover {
  background: rgba(240, 253, 244, 0.08);
  color: var(--text);
  border-color: rgba(240, 253, 244, 0.15);
}
.btn-save-hiring.saved {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
  color: #c084fc;
}
.btn-share-hiring {
  background: rgba(240, 253, 244, 0.03);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.btn-share-hiring:hover {
  background: rgba(240, 253, 244, 0.08);
  color: var(--text);
  border-color: rgba(240, 253, 244, 0.15);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hiringbin-layout {
    flex-direction: column;
  }
  .hiring-sidebar-ad {
    width: 100% !important;
    flex-direction: row;
  }
  .hiring-sidebar-ad .sidebar-ad-card {
    position: static;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }
  .hiring-sidebar-ad .sidebar-ad-card img {
    width: 80px !important;
    margin-bottom: 0;
  }
}