/*Global Variables (eClass‑style)*/
:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-soft: #e2e8f0;
    --bg-light: #f8fafc;
    --bg-soft: #f1f5f9;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-soft: 0 6px 14px rgba(15, 23, 42, 0.08);
    --shadow-card: 0 8px 18px rgba(15, 23, 42, 0.12);
}

/*Base Layout*/
body.site-body {
    font-family: "Inter", system-ui, sans-serif;
    background: #ffffff;
    color: var(--text-main);
}

/* Section spacing */
.section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/*NAVBAR*/
.main-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.navbar-brand {
    font-size: 1.25rem;
    color: var(--primary);
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/*HERO SECTION*/
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.hero-title {
  position: relative;
}

.hero-title::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 4px;
  bottom: -8px;
  left: 0;
  background: linear-gradient(90deg, #00d4ff, #007bff);
  border-radius: 6px;
  box-shadow: 0 0 8px #00d4ff;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
}


.particles-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.campus-map-container iframe {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
}

/*AUTH PAGES (Login / Register)*/
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: none;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/*DASHBOARD PAGES (Teacher / Student)*/
.dashboard-body {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.dashboard-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: none;
}

.dashboard-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

/*CONTACT PAGE*/
.contact-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: none;
}

.chat-box {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1rem;
    height: 350px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 0.75rem;
}

.chat-message-user {
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-message-text {
    font-size: 0.85rem;
}

/*FOOTER + MOVE TO TOP*/
.site-footer {
    background: #ffffff;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--border-soft);
    margin-top: 3rem;
}

.footer-text {
    color: var(--text-muted);
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* "Move to Top" button */
.back-to-top-btn {
    border-radius: 999px;
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
    background: var(--primary);
    color: white;
    border: none;
    transition: background 0.2s ease;
}

.back-to-top-btn:hover {
    background: var(--primary-dark);
}

/*FORMS*/
.form-control,
.form-select {
    border-radius: var(--radius-md);
}

.btn {
    border-radius: var(--radius-md);
}

/*BACKGROUND*/
body {
  background: linear-gradient(-45deg, #0d1b2a, #1b263b, #415a77, #0d1b2a);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.neon-card {
  border-radius: 12px;
  border: 1px solid rgba(0, 140, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(0, 140, 255, 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.neon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 140, 255, 0.45);
}

/*RESPONSIVE*/
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}