/* =========================================================
   STUDENT DASHBOARD STYLESHEET
========================================================= */

/* -------------------- THEME -------------------- */
:root {
  --violet: #2563eb;
  --indigo: #4f46e5;
  --bg: #f5f7ff;
  --card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border: #e5e7eb;
}

/* -------------------- RESET -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Arial;
  background: linear-gradient(180deg, #f7f9ff, #eef2ff);
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   HEADER / NAVBAR (IDENTICAL TO ADMIN)
========================================================= */
.oa-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.oa-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.brand {
  display: flex;
  align-items: center;
}

.brand .logo {
  height: 60px;
}

/* HAMBURGER */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

/* MOBILE NAV */
.nav-links {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff, #c7d2fe);
}

.nav-links a {
  padding: 16px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-links.show {
  display: flex;
}

/* DESKTOP NAV */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    background: none;
  }

  .nav-links a {
    padding: 0;
    border: none;
    font-weight: 500;
    position: relative;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--violet), var(--indigo));
    transition: width 0.25s ease;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .btn.btn-primary {
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--violet), var(--indigo));
    color: #fff;
    box-shadow: 0 6px 18px rgba(79,70,229,0.35);
  }
}

/* =========================================================
   PAGE OFFSET
========================================================= */
main.container {
  padding-top: 96px;
  padding-bottom: 80px;
}

/* =========================================================
   DASHBOARD CARDS
========================================================= */
.page-title {
  margin-bottom: 28px;
  font-size: 1.8rem;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.card h3 {
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

footer .container {
  padding: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}


.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding: 14px 50px 14px 14px;
  border-radius: 10px;
  border: none;
  background: #e6ebf2;
  font-size: 15px;
}

.password-wrapper span {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 14px;
  color: #4a5bdc;
  font-weight: 600;
  transition: 0.3s;
}

.password-wrapper span:hover {
  color: #2c39b3;
}