@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #f4f6f8;
  --bg-secondary: #ffffff;
  --text-primary: #09090b;
  --text-secondary: #71717a;
  --border-color: #09090b;
  --accent-color: #0d9488;
  --accent-hover: #14b8a6;
  --accent-light: #ccfbf1;
  --accent-light-text: #115e59;
  --card-shadow: 6px 6px 0px 0px #09090b;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition-speed: 0.2s;
}

[data-theme="dark"] {
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --border-color: #ffffff;
  --accent-color: #14b8a6;
  --accent-hover: #0d9488;
  --accent-light: #115e59;
  --accent-light-text: #ccfbf1;
  --card-shadow: 6px 6px 0px 0px #ffffff;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.header-container {
  pointer-events: auto;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--card-shadow);
  max-width: 650px;
  width: 100%;
  justify-content: space-between;
  transition: all var(--transition-speed) ease;
}

.header-title-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo {
  width: 2rem;
  height: 2rem;
  background-color: var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-secondary);
}

.header-logo svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.logo-bracket-left {
  animation: bracket-pulse-left 2s ease-in-out infinite;
  transition: transform var(--transition-speed) ease;
}

.logo-bracket-right {
  animation: bracket-pulse-right 2s ease-in-out infinite;
  transition: transform var(--transition-speed) ease;
}

.header-container:hover .logo-bracket-left {
  animation: none;
  transform: translateX(-3px);
}

.header-container:hover .logo-bracket-right {
  animation: none;
  transform: translateX(3px);
}

@keyframes bracket-pulse-left {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-1px); }
}

@keyframes bracket-pulse-right {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1px); }
}

.header-title-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  transition: color var(--transition-speed) ease;
  position: relative;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:not(.active)::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--text-primary);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:not(.active):hover::after {
  width: 80%;
}

.nav-link.active {
  color: var(--text-primary);
  background-color: #f59e0b;
  border: 2px solid var(--border-color);
}

.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-primary);
  transform: scale(1.1);
}

.theme-toggle-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.theme-toggle-btn:hover {
  background-color: var(--border-color);
}

.theme-toggle-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 6.5rem auto 0;
  padding: 2rem;
}

.intro-hero {
  text-align: center;
  padding: 3rem 1rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.intro-hero h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  animation: gentle-float-heading 6s ease-in-out infinite;
}

.intro-hero h2::after {
  content: "";
  display: block;
  width: 160px;
  height: 6px;
  background-color: #f59e0b;
  margin: 1.25rem auto 0;
  border-radius: 9999px;
  border: 2px solid var(--border-color);
  animation: expand-hero-line 4s ease-in-out infinite;
}

@keyframes gentle-float-heading {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes expand-hero-line {
  0% {
    width: 120px;
  }
  50% {
    width: 220px;
  }
  100% {
    width: 120px;
  }
}

.intro-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 500;
  animation: fade-up-intro 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fade-up-intro {
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.75rem;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  box-shadow: 4px 4px 0px 0px var(--border-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.gallery-item:nth-child(3n) {
  animation: float-gallery-item-alt 5s ease-in-out infinite;
}

.gallery-item:nth-child(3n+1) {
  animation: float-gallery-item 6s ease-in-out infinite;
  animation-delay: 0.5s;
}

.gallery-item:nth-child(3n+2) {
  animation: float-gallery-item-alt 7s ease-in-out infinite;
  animation-delay: 1s;
}

.gallery-item:hover {
  animation: none;
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0px 0px var(--accent-color);
  border-color: var(--accent-color);
  z-index: 5;
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img, .gallery-item:hover video {
  transform: scale(1.08);
}

/* Featured Memories Collage */
.memories-section {
  position: relative;
  margin-top: 2rem;
  padding: 2rem 0 6rem;
}

.memories-header-center {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.memories-header-center h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 10;
}

.yellow-underline {
  width: 0;
  height: 6px;
  background-color: #f59e0b;
  border-radius: 9999px;
  border: 2px solid var(--border-color);
  animation: expand-yellow-underline 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes expand-yellow-underline {
  to { width: 140px; }
}

.memories-scroll-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8rem;
  margin-top: 4rem;
  width: 100%;
}

.scroll-card {
  width: 100%;
  max-width: 800px;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow var(--transition-speed) ease,
              border-color var(--transition-speed) ease;
  aspect-ratio: auto !important;
}

.scroll-card.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: float-scroll-card 6s ease-in-out infinite;
  animation-delay: 0.8s;
}

@keyframes float-scroll-card {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.01); }
}

.scroll-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 12px 12px 0px 0px var(--accent-color);
  border-color: var(--accent-color);
  animation: none;
  z-index: 5;
}

.scroll-card img, .scroll-card video {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes float-gallery-item {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes float-gallery-item-alt {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
  100% {
    transform: translateY(0);
  }
}

.popup-image-container {
  max-width: 1000px !important;
  width: 95% !important;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-image-content {
  width: 100%;
}

.popup-image-content img, .popup-image-content video {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  border: 2px solid var(--border-color);
}

@media (max-width: 580px) {
  header {
    top: 0.75rem;
  }
  .header-container {
    padding: 0.35rem 0.75rem;
    gap: 0.5rem;
  }
  .header-title-text {
    display: none;
  }
  .nav-menu {
    gap: 0.5rem;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
  }
  .header-logo {
    width: 1.75rem;
    height: 1.75rem;
  }
  .header-logo svg {
    width: 1.1rem;
    height: 1.1rem;
  }
  .theme-toggle-btn {
    padding: 0.4rem;
  }
  .theme-toggle-btn svg {
    width: 1rem;
    height: 1rem;
  }
}

.search-filter-section {
  display: flex;
  margin-bottom: 3rem;
  justify-content: center;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  box-shadow: 4px 4px 0px 0px var(--border-color);
  transition: all var(--transition-speed) ease;
}

.search-input:focus {
  background-color: var(--bg-secondary);
  box-shadow: 4px 4px 0px 0px var(--accent-color);
  border-color: var(--accent-color);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.search-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.student-card {
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.student-card.has-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(9, 9, 11, 0.85), rgba(9, 9, 11, 0.95));
  border-radius: inherit;
  z-index: -1;
  transition: background var(--transition-speed) ease;
}

[data-theme="light"] .student-card.has-bg::before {
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.96));
}

.student-card.has-bg:hover::before {
  background: linear-gradient(rgba(9, 9, 11, 0.6), rgba(9, 9, 11, 0.8));
}

[data-theme="light"] .student-card.has-bg:hover::before {
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.75));
}

.student-card:nth-child(3n) {
  animation: float-student-card 6s ease-in-out infinite;
}

.student-card:nth-child(3n+1) {
  animation: float-student-card-alt 7s ease-in-out infinite;
  animation-delay: 0.7s;
}

.student-card:nth-child(3n+2) {
  animation: float-student-card 8s ease-in-out infinite;
  animation-delay: 1.4s;
}

.student-card:hover {
  animation: none;
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0px 0px var(--accent-color);
  border-color: var(--accent-color);
}

@keyframes float-student-card {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes float-student-card-alt {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.card-avatar-container {
  position: relative;
  margin-bottom: 1.25rem;
  width: 90px;
  height: 90px;
}

.card-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent-color);
}

.avatar-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.card-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: auto;
}

.tag {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(9, 9, 11, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  width: 90%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 8px 8px 0px 0px var(--border-color);
  transform: scale(0.95);
  transition: transform var(--transition-speed) ease;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.modal-container.has-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(9, 9, 11, 0.75), rgba(9, 9, 11, 0.92));
  border-radius: inherit;
  z-index: -1;
  transition: all var(--transition-speed) ease;
}

[data-theme="light"] .modal-container.has-bg::before {
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.55));
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px 0px var(--border-color);
  transition: all var(--transition-speed) ease;
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--bg-primary);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px 0px var(--accent-color);
  border-color: var(--accent-color);
}

.modal-close:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px 0px var(--border-color);
}

.modal-close svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.modal-body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-avatar-container {
  width: 110px;
  height: 110px;
  margin-bottom: 1.5rem;
}

.modal-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--accent-color);
}

.modal-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.modal-bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  width: 100%;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.modal-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  border-top: 2px solid var(--border-color);
  padding-top: 1.5rem;
}

.social-icon {
  color: var(--text-secondary);
  transition: color var(--transition-speed) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: var(--accent-color);
}

.social-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

footer {
  border-top: 2px solid var(--border-color);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.admin-lock-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
}

.lock-container {
  width: 100%;
  max-width: 380px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
}

.lock-icon-wrapper {
  color: var(--accent-color);
  margin-bottom: 1.25rem;
}

.lock-icon-wrapper svg {
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.lock-container h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lock-container p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.lock-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lock-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  text-align: center;
  transition: all var(--transition-speed) ease;
}

.lock-input:focus {
  border-color: var(--accent-color);
}

.lock-btn {
  background-color: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
}

.lock-btn:hover {
  background-color: var(--accent-hover);
}

.lock-error {
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 500;
  min-height: 1.2rem;
}

.admin-header-nav {
  background-color: var(--bg-secondary);
  border-bottom: 2px solid var(--border-color);
  width: 100%;
  padding: 1.25rem 0;
}

.admin-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header-container .header-title h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.admin-header-container .header-title p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.admin-header-container .header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 4px 4px 0px 0px var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.admin-actions {
  display: flex;
  gap: 0.75rem;
}

.admin-btn {
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 3px 3px 0px 0px var(--border-color);
  transition: all var(--transition-speed) ease;
}

.admin-btn:hover {
  background-color: var(--bg-secondary);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px 0px var(--accent-color);
  border-color: var(--accent-color);
}

.admin-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px 0px var(--border-color);
}

.admin-btn.primary {
  background-color: #f59e0b;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.admin-btn.primary:hover {
  background-color: #d97706;
}

.admin-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.admin-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition-speed) ease;
}

.admin-tab-btn:hover, .admin-tab-btn.active {
  color: var(--text-primary);
}

.admin-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.admin-table-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background-color: var(--bg-primary);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tr {
  transition: background-color var(--transition-speed) ease;
}

.admin-table tr:hover {
  background-color: var(--bg-primary);
}

.table-student-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent-color);
}

.table-memory-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-memory-thumb {
  width: 60px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
}

.admin-drawer-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease;
}

.admin-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.admin-drawer {
  width: 100%;
  max-width: 500px;
  height: 100%;
  background-color: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-speed) ease;
}

.admin-drawer-overlay.active .admin-drawer {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.drawer-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.drawer-close {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-close svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-speed) ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-color);
  background-color: var(--bg-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.drawer-avatar-preview {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.drawer-avatar-preview img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.avatar-upload-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.drawer-memory-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.drawer-memory-preview img {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.memory-upload-placeholder {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.upload-file-input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

.drawer-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.drawer-actions button {
  flex: 1;
}

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.success {
  border-color: #10b981;
}

.toast.error {
  border-color: #ef4444;
}
