/* ═══════════════════════════════════════
   ARYAN IIT INSTITUTE — GLASSMORPHISM PREMIUM STYLE
═══════════════════════════════════════ */

:root {
  /* Vibrant Brand Colors from Logo */
  --primary: #0284c7;        /* Sky Blue */
  --primary-hover: #0369a1;  /* Deep Sky Blue */
  --primary-light: rgba(224, 242, 254, 0.5); /* Glass Sky Blue */
  
  --accent: #0ea5e9;         /* Vibrant Cyan/Sky Blue */
  --accent-light: #e0f2fe;   /* Light Sky Blue */
  --gold: #38bdf8;           /* Softer Sky Blue */
  
  /* Defined Glassmorphism Color Tokens (Solid borders & backdrops) */
  --glass-bg: rgba(240, 249, 255, 0.85);       /* High opacity sky blue backdrop */
  --glass-bg-hover: rgba(240, 249, 255, 0.95);
  --glass-border: #bae6fd;                     /* Soft sky border slate outline */
  --glass-border-hover: var(--primary);        /* Blue boundary highlight on hover */
  
  --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 60%, #bae6fd 100%);
  
  --text-main: #0369a1;      /* Deep Sky text */
  --text-muted: #075985;
  --text-light: #0284c7;
  
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Poppins', sans-serif;
  
  /* Shadows & Blurs */
  --glass-blur: blur(10px);
  --glass-blur-heavy: blur(18px);
  --glass-shadow: 0 4px 16px rgba(2, 132, 199, 0.08); /* Sharp lifting shadow */
  --glass-shadow-hover: 0 12px 28px rgba(2, 132, 199, 0.16);
  
  --dur: 0.35s;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset & Background Setup --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.2); }
::-webkit-scrollbar-thumb { background: rgba(2, 132, 199, 0.3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- Loading Screen --- */
.loading-screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background: #ffffff;
  z-index: 9999;
  animation: fadeOut 0.5s ease 1s forwards;
}
.loading-logo { animation: pulse 1s infinite ease-in-out; }
.loading-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.loading-bar { width: 140px; height: 3px; background: rgba(2, 132, 199, 0.1); border-radius: 999px; overflow: hidden; }
.loading-progress { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0; animation: loadBar 1s var(--ease) forwards; }

@keyframes loadBar { to { width: 100%; } }
@keyframes fadeOut { to { opacity: 0; pointer-events: none; visibility: hidden; } }
@keyframes pulse { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(2,132,199,0.3)); } 50% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(2,132,199,0.5)); } }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.55s var(--ease) both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

/* --- Layout --- */
#app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* --- Glassmorphic Sidebar --- */
.sidebar {
  width: 240px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border-right: 1px solid var(--glass-border);
  display: flex; flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
  z-index: 20;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 20px;
}
.sidebar-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--primary);
  letter-spacing: .02em;
}
.sidebar-brand-sub {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sidebar-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--dur) var(--ease);
  text-align: left;
  border: 1px solid transparent;
}
.sidebar-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(2, 132, 199, 0.15);
}
.sidebar-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.2);
}
.sidebar-btn.active-admin {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
}

.sidebar-user {
  border-top: 1px solid var(--glass-border);
  padding-top: 16px;
}
.sidebar-user-card {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 12px;
  border-radius: 12px;
}
.sidebar-user-name { font-weight: 800; color: var(--text-main); }
.sidebar-user-role { font-size: 0.68rem; color: var(--primary); text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.sidebar-signout {
  width: 100%; margin-top: 10px;
  padding: 8px; border-radius: 8px;
  border: 1px solid rgba(220, 38, 38, 0.2); background: rgba(254, 242, 242, 0.5);
  color: #dc2626; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.2s;
}
.sidebar-signout:hover { background: #fee2e2; }

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* --- Glassmorphic Header --- */
.header {
  height: 72px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  z-index: 15;
}
.header-left { display: flex; align-items: center; gap: 20px; }
.pub-nav { display: flex; align-items: center; gap: 22px; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); }
.pub-nav button { transition: all 0.2s; position: relative; padding: 6px 0; }
.pub-nav button:hover { color: var(--primary); }
.pub-nav button.active { color: var(--primary); }
.pub-nav button.active::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2.5px;
  background: var(--primary); border-radius: 99px;
}



.btn-login {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--primary); color: #ffffff;
  border-radius: 10px; font-size: 0.75rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}
.btn-login:hover { opacity: 0.95; }

.btn-hamburger {
  display: none; padding: 8px; border: 1px solid var(--glass-border); border-radius: 8px; color: var(--text-muted);
}

.content-area {
  flex: 1;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

/* --- Typography & Sections --- */
.page-pad { padding: 40px; max-width: 1440px; margin: 0 auto; width: 100%; }
.page-header { margin-bottom: 32px; border-bottom: 1px solid var(--glass-border); padding-bottom: 16px; }
.page-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; color: var(--text-main); }
.page-sub { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

.section { padding: 56px 32px; max-width: 1200px; margin: 0 auto; }
.section-header { margin-bottom: 32px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 900; color: var(--text-main); }
.section-title span { color: var(--primary); }
.section-sub { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.section-link { font-size: 0.78rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.section-link:hover { text-decoration: underline; }

/* --- Grid Options --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

/* --- Glassmorphic Cards --- */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--glass-shadow);
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-5px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  font-size: 0.78rem; font-weight: 700;
  transition: all var(--dur) var(--ease);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}
.btn-accent {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}
.btn-accent:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}
.btn-ghost:hover {
  background: var(--glass-bg-hover);
  border-color: var(--primary);
}
.btn-danger {
  background: rgba(254, 242, 242, 0.6);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #dc2626;
}

/* --- Forms --- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.7rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--glass-border); border-radius: 10px;
  font-size: 0.82rem; color: var(--text-main);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: var(--glass-blur);
  transition: all 0.2s;
}
.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}
.form-textarea { resize: vertical; min-height: 100px; }

/* --- Custom Items --- */
.course-card-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }
.tag-online { background: rgba(224, 242, 254, 0.8); color: #0369a1; border: 1px solid rgba(2, 132, 199, 0.2); }
.tag-offline { background: rgba(254, 243, 199, 0.8); color: #b45309; border: 1px solid rgba(217, 119, 6, 0.2); }
.course-card-name { font-size: 0.95rem; font-weight: 800; color: var(--text-main); line-height: 1.4; margin-bottom: 6px; }
.course-card-instructor { font-size: 0.75rem; color: var(--text-light); margin-bottom: 12px; }
.price-main { font-weight: 900; color: var(--accent); font-size: 1.1rem; }

.faculty-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); margin-bottom: 10px; }
.faculty-name { font-size: 0.95rem; font-weight: 800; }
.faculty-subject { font-size: 0.7rem; color: var(--primary); font-weight: 700; text-transform: uppercase; }

.result-card {
  display: flex; gap: 16px; align-items: center; padding: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: all var(--dur) var(--ease);
}
.result-card:hover {
  border-color: var(--primary);
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
}
.result-avatar { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.result-rank { font-weight: 900; color: var(--accent); font-size: 1.15rem; }

/* --- Table --- */
.table-wrap {
  overflow-x: auto;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
thead th { background: rgba(255, 255, 255, 0.4); padding: 12px 16px; text-align: left; font-size: 0.68rem; color: var(--text-light); border-bottom: 1px solid var(--glass-border); }
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--glass-border); }
tbody tr:last-child td { border-bottom: none; }

/* --- Glassmorphic Modal --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-box {
  background: #ffffff;
  border: 2px solid var(--glass-border);
  border-radius: 24px;
  width: 100%; max-width: 440px; padding: 28px;
  box-shadow: 0 24px 60px rgba(2, 132, 199, 0.15);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 900; }

.tab-pills {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #f0f9ff;
  border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 3px; margin-bottom: 20px;
}
.tab-pill { padding: 8px; text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); border-radius: 9px; }
.tab-pill.active { background: #ffffff; color: var(--primary); box-shadow: var(--shadow-sm); border: 1px solid var(--glass-border); }

/* --- Toast --- */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: var(--glass-blur);
  color: #ffffff; border-radius: 14px;
  font-size: 0.78rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--glass-shadow-hover);
}

/* --- Mobile Menu --- */
.mobile-drawer-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(4px); display: none;
}
.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 230px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  z-index: 41; transform: translateX(-100%);
  transition: transform 0.3s var(--ease); padding: 24px 16px;
  box-shadow: var(--glass-shadow-hover);
  border-right: 1px solid var(--glass-border);
}
.mobile-drawer.open { transform: translateX(0); }

/* --- Responsive Helpers --- */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .btn-hamburger { display: flex; }
  .pub-nav { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .header { padding: 0 20px; }
  .page-pad { padding: 24px; }
}

/* --- Floating Background System --- */
.floating-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* Render behind siblings inside .content-area */
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  color: var(--primary);
  opacity: 0.08; /* Soft but visible visibility */
  fill: none;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.floating-icon.icon-1 { top: 5%; left: 6%; width: 44px; height: 44px; animation: float-random-1 26s ease-in-out infinite; }
.floating-icon.icon-2 { top: 15%; left: 4%; width: 38px; height: 38px; animation: float-random-2 22s ease-in-out infinite; }
.floating-icon.icon-3 { top: 25%; left: 10%; width: 42px; height: 42px; animation: float-random-3 28s ease-in-out infinite; }
.floating-icon.icon-4 { top: 8%; right: 6%; width: 48px; height: 48px; animation: float-random-4 24s ease-in-out infinite; }
.floating-icon.icon-5 { top: 18%; right: 8%; width: 36px; height: 36px; animation: float-random-1 19s ease-in-out infinite; }
.floating-icon.icon-6 { top: 28%; right: 5%; width: 44px; height: 44px; animation: float-random-2 29s ease-in-out infinite; }
.floating-icon.icon-7 { top: 38%; left: 45%; width: 40px; height: 40px; animation: float-random-3 25s ease-in-out infinite; }
.floating-icon.icon-8 { top: 48%; left: 35%; width: 36px; height: 36px; animation: float-random-4 21s ease-in-out infinite; }
.floating-icon.icon-9 { top: 58%; left: 8%; width: 38px; height: 38px; animation: float-random-1 25s ease-in-out infinite; }
.floating-icon.icon-10 { top: 68%; left: 5%; width: 42px; height: 42px; animation: float-random-2 23s ease-in-out infinite; }
.floating-icon.icon-11 { top: 78%; left: 12%; width: 40px; height: 40px; animation: float-random-3 27s ease-in-out infinite; }
.floating-icon.icon-12 { top: 88%; left: 7%; width: 44px; height: 44px; animation: float-random-4 22s ease-in-out infinite; }
.floating-icon.icon-13 { top: 58%; right: 8%; width: 40px; height: 40px; animation: float-random-1 20s ease-in-out infinite; }
.floating-icon.icon-14 { top: 68%; right: 6%; width: 38px; height: 38px; animation: float-random-2 28s ease-in-out infinite; }
.floating-icon.icon-15 { top: 78%; right: 10%; width: 44px; height: 44px; animation: float-random-3 24s ease-in-out infinite; }
.floating-icon.icon-16 { top: 88%; right: 5%; width: 36px; height: 36px; animation: float-random-4 18s ease-in-out infinite; }

@keyframes float-random-1 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(12px, -20px) rotate(4deg) scale(1.02); }
  50% { transform: translate(-10px, -36px) rotate(-6deg) scale(0.98); }
  75% { transform: translate(18px, -15px) rotate(3deg) scale(1.01); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

@keyframes float-random-2 {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.95); }
  33% { transform: translate(-18px, -24px) rotate(-10deg) scale(1.04); }
  66% { transform: translate(14px, -42px) rotate(8deg) scale(0.96); }
  100% { transform: translate(0, 0) rotate(0deg) scale(0.95); }
}

@keyframes float-random-3 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(28px, -30px) rotate(14deg) scale(1.05); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

@keyframes float-random-4 {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(-14px, -10px) rotate(-5deg) scale(0.97); }
  50% { transform: translate(18px, -32px) rotate(12deg) scale(1.03); }
  75% { transform: translate(-6px, -20px) rotate(-3deg) scale(0.99); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* ─── Hero Banner Slider ─── */
.hero-slider-container {
  position: relative;
  width: calc(100% - 24px);
  height: calc(100% - 48px);
  margin: 24px 24px 24px 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.06);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #f0f9ff 0%, rgba(240,249,255,0.4) 25%, transparent 100%);
  z-index: 3;
}

.hero-slider-nav {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.4);
}

.hero-slider-dot:hover {
  background: rgba(15, 23, 42, 0.4);
}

.hero-slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

