@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Be+Vietnam+Pro:wght@300;400;500;600;700;800&family=Great+Vibes&family=Sacramento&display=swap');

:root {
  /* Hex Tones from user */
  --color-spring-sun: #F7FDD9;
  --color-sky-blue: #81A9C2;
  --color-wedgwood: #809EC2;
  --color-atlantic: #164C66;
  --color-carousel-pink: #F6E2EB;

  /* UI/UX Color System (Light theme minimalist) */
  --bg-app: #f5f8fa;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-solid: #ffffff;
  --bg-card-accent: rgba(129, 169, 194, 0.08);
  --bg-highlight: rgba(247, 253, 217, 0.6);
  
  --text-main: #142834;       /* Slate-teal dark for premium feel */
  --text-muted: #536d7e;      /* Soft blue-grey for secondary info */
  --text-white: #ffffff;
  
  --border-color: rgba(128, 158, 194, 0.2);
  --border-color-active: rgba(22, 76, 102, 0.5);
  
  --shadow-sm: 0 4px 12px rgba(22, 76, 102, 0.03);
  --shadow-md: 0 12px 30px rgba(22, 76, 102, 0.06);
  --shadow-lg: 0 24px 60px rgba(22, 76, 102, 0.1);
  --shadow-glow: 0 0 20px rgba(129, 169, 194, 0.35);

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Be Vietnam Pro', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  
  /* Modern clean gradient background using user's color swatch vibe */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(246, 226, 235, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(247, 253, 217, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(129, 169, 194, 0.25) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: var(--color-wedgwood);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-atlantic);
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 20px 60px 20px;
}

@media (min-width: 768px) {
  .app-container {
    padding: 140px 40px 80px 40px;
  }
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-atlantic);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 30px;
  position: relative;
  background: linear-gradient(135deg, var(--color-atlantic) 50%, var(--color-wedgwood) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Glass Header */
.fixed-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  z-index: 100;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.fixed-header.scrolled {
  top: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 28px;
  box-shadow: var(--shadow-lg);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.logo-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 2.3rem; /* slightly larger for cursive font styling */
  font-weight: 400;
  color: var(--color-atlantic);
  background: linear-gradient(135deg, var(--color-atlantic) 30%, var(--color-wedgwood) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  vertical-align: middle;
  padding: 10px 4px; /* expands bounding box to prevent browser clipping on ascenders/descenders */
  margin-top: 2px; /* centers it vertically in flex header */
  line-height: 1.2;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-brand:hover .logo-signature {
  transform: scale(1.05) rotate(-1deg);
}

.nav-menu {
  display: flex;
  gap: 6px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 12px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.nav-item:hover, .nav-item.active {
  color: var(--color-atlantic);
  background: var(--color-carousel-pink);
  border-color: rgba(128, 158, 194, 0.4);
}

/* Mobile Toggle menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-atlantic);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* Page Section & Animations */
.page-section {
  display: none;
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 35px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(128, 158, 194, 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Home Section Layout */
.home-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .home-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.bio-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.student-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(246, 226, 235, 0.5); /* Pastel Carousel Pink wash */
  border: 1px solid rgba(128, 158, 194, 0.25);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-atlantic);
  width: fit-content;
}

.student-tag .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-sky-blue);
  border-radius: 50%;
  animation: softPulse 2s infinite;
}

@keyframes softPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px var(--color-sky-blue); }
  100% { transform: scale(0.9); opacity: 0.5; }
}

.hero-name {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--color-atlantic) 0%, var(--color-wedgwood) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .hero-name {
    font-size: 4rem;
  }
}

.role-typing {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  min-height: 28px;
}

.caret {
  animation: cursorBlink 0.8s infinite;
  color: var(--color-sky-blue);
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

.bio-paragraph {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Meta Data Blocks */
.info-block-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 15px;
}

@media (min-width: 576px) {
  .info-block-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-block {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 16px 20px;
  transition: var(--transition-smooth);
}

.info-block:hover {
  border-color: var(--color-sky-blue);
  box-shadow: var(--shadow-sm);
}

.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.info-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-atlantic);
}

/* Polaroid Profile Graphic */
.profile-polaroid {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  padding: 18px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.profile-polaroid:hover {
  transform: scale(1.03);
  box-shadow: 0 30px 70px rgba(22, 76, 102, 0.15);
}

.polaroid-photo-frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-carousel-pink) 0%, var(--color-spring-sun) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
  margin-bottom: 0;
}

.polaroid-photo-frame svg {
  width: 50%;
  height: 50%;
  fill: var(--color-atlantic);
  opacity: 0.75;
  transition: var(--transition-smooth);
}

.profile-polaroid:hover svg {
  transform: scale(1.1) translateY(-3px);
  fill: var(--color-sky-blue);
}

.polaroid-caption {
  font-family: var(--font-heading);
  text-align: center;
  font-weight: 800;
  color: var(--color-atlantic);
  font-size: 1rem;
}

/* Profile Social Links */
.profile-social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  border-top: 1px dashed var(--border-color);
  padding-top: 14px;
}

.social-icon-link {
  color: var(--color-atlantic);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon-link:hover {
  transform: scale(1.25);
  color: var(--color-sky-blue);
}

/* Assignments Grid Layout */
.assign-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  position: relative;
}

@media (min-width: 992px) {
  .assign-grid {
    grid-template-columns: 300px 1fr;
  }
}

.assign-sidebar-menu {
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-atlantic);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.assign-card-btn {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.assign-card-btn:hover {
  border-color: var(--color-sky-blue);
  color: var(--color-atlantic);
  transform: translateX(4px);
}

.assign-card-btn.active {
  background: linear-gradient(135deg, var(--color-atlantic) 0%, #1c5773 100%);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.assign-card-btn .btn-num {
  font-size: 0.7rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--color-wedgwood);
  font-weight: 800;
}

.assign-card-btn.active .btn-num {
  color: var(--color-spring-sun);
}

/* Assignments Content Pane */
.assign-content-area {
  min-height: 500px;
}

.panel-container {
  display: none;
  animation: paneFadeIn 0.5s ease-out forwards;
}

.panel-container.active {
  display: block;
}

@keyframes paneFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 18px;
  margin-bottom: 25px;
}

.panel-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-sky-blue);
  margin-bottom: 6px;
  display: block;
}

.panel-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-atlantic);
}

.btn-download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-spring-sun);
  border: 1px solid rgba(22, 76, 102, 0.15);
  color: var(--color-atlantic);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 12px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
}

.btn-download-pdf:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
  background: var(--color-carousel-pink);
}

.panel-subtitle {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-atlantic);
  margin: 30px 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid var(--color-sky-blue);
  padding-left: 12px;
}

.panel-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.panel-ol-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.panel-ol-list li {
  list-style: none;
  position: relative;
  padding-left: 42px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.panel-ol-list li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--color-carousel-pink);
  color: var(--color-atlantic);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: var(--font-heading);
}

.panel-ul-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.panel-ul-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.panel-ul-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  color: var(--color-sky-blue);
}

/* Steps Dashboard (Bài 1) */
.steps-dashboard {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  margin: 25px 0;
  box-shadow: var(--shadow-sm);
}

.steps-scroller {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 10px 0;
  overflow: visible;
}

.steps-scroller::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--border-color);
  transform: translateY(-50%);
  z-index: 1;
}

.step-pill {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-app);
  border: 2px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.step-pill:hover {
  border-color: var(--color-wedgwood);
  background: var(--color-carousel-pink);
  color: var(--color-atlantic);
  transform: scale(1.1);
}

.step-pill.active {
  background: var(--color-carousel-pink);
  color: var(--color-atlantic);
  border-color: var(--color-wedgwood);
  box-shadow: 0 0 10px rgba(246, 226, 235, 0.8);
  transform: scale(1.15);
}

@media (max-width: 576px) {
  .steps-scroller {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    justify-items: center;
  }
  .steps-scroller::before {
    display: none;
  }
}

.step-detail-card {
  background: var(--bg-app);
  border-radius: 16px;
  padding: 20px;
  border: 1px dashed var(--border-color);
}

.step-detail-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-atlantic);
  margin-bottom: 4px;
}

.step-detail-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-atlantic);
  margin-bottom: 10px;
}

.step-detail-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* File Explorer Simulator UI */
.explorer-ui {
  display: grid;
  grid-template-columns: 1fr;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card-solid);
  box-shadow: var(--shadow-md);
  margin: 30px 0;
}

@media (min-width: 768px) {
  .explorer-ui {
    grid-template-columns: 290px 1fr;
  }
}

.explorer-sidebar {
  background: #f7f9fa;
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
}

@media (min-width: 768px) {
  .explorer-sidebar {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
  }
}

.explorer-sidebar-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.exp-node {
  font-family: monospace;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.exp-node:hover {
  background: rgba(0, 0, 0, 0.03);
}

.exp-node.active-file {
  background: var(--color-carousel-pink);
  color: var(--color-atlantic);
  font-weight: 700;
}

.exp-sub-group {
  margin-left: 14px;
  padding-left: 10px;
  border-left: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.explorer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fafbfc;
}

.exp-viewer-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.exp-viewer-window {
  background: #fefefe;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-main);
  min-height: 180px;
  white-space: pre-wrap;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

.exp-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.exp-btn {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.exp-btn:hover {
  background: var(--color-carousel-pink);
  color: var(--color-atlantic);
  border-color: var(--color-wedgwood);
  transform: translateY(-1px);
}

.exp-btn-danger {
  color: #c94b63;
}

.exp-btn-danger:hover {
  background: rgba(201, 75, 99, 0.08);
  border-color: #c94b63;
}

/* Academic Filter Tabs (Bài 2) */
.acad-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.acad-filter-btn {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.acad-filter-btn:hover {
  background: var(--color-carousel-pink);
  color: var(--color-atlantic);
  border-color: var(--color-wedgwood);
}

.acad-filter-btn.active {
  background: var(--color-atlantic);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.acad-table-scroller {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 25px;
}

.acad-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
  background: var(--bg-card-solid);
}

.acad-table th {
  background: var(--bg-card-accent);
  color: var(--color-atlantic);
  font-weight: 800;
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.acad-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(128, 158, 194, 0.12);
  color: var(--text-muted);
  vertical-align: middle;
}

.acad-table tr:hover {
  background: rgba(129, 169, 194, 0.03);
}

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

.score-badge {
  background: var(--bg-highlight);
  color: var(--color-atlantic);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 800;
  border: 1px solid rgba(22, 76, 102, 0.15);
  font-size: 0.8rem;
  white-space: nowrap;
}

.type-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-block;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.type-tag.paper {
  background: rgba(129, 169, 194, 0.15);
  color: var(--color-atlantic);
}

.type-tag.book {
  background: rgba(246, 226, 235, 0.5);
  color: #b05c87;
}

.type-tag.preprint {
  background: #fbfef0;
  border: 1px solid #dbe2b5;
  color: #6a7c2b;
}

/* Prompt Card Deck (Bài 3) */
.prompt-deck {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 30px 0;
}

@media (min-width: 768px) {
  .prompt-deck {
    grid-template-columns: 1fr 1fr;
  }
}

.prompt-designer-card {
  background: var(--bg-card-solid);
  border: 1.5px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.prompt-designer-card.recommended {
  border-color: var(--color-sky-blue);
  box-shadow: var(--shadow-md), 0 0 20px rgba(129, 169, 194, 0.1);
  background: #fbfdfe;
}

.p-header-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 8px;
  width: fit-content;
  margin-bottom: 16px;
}

.p-header-tag.basic {
  background: #f1f3f5;
  color: var(--text-muted);
}

.p-header-tag.advanced {
  background: var(--color-atlantic);
  color: var(--text-white);
}

.p-code-block {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-main);
  background: #f7f9fa;
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  border-left: 4px solid var(--color-wedgwood);
  margin-bottom: 16px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.prompt-designer-card.recommended .p-code-block {
  border-left-color: var(--color-atlantic);
  background: #f2f7fa;
}

.p-result-panel {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Comparison Matrix */
.matrix-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  margin: 25px 0;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--bg-card-solid);
}

.matrix-table th {
  background: var(--bg-card-accent);
  color: var(--color-atlantic);
  font-weight: 800;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1.5px solid var(--border-color);
}

.matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(128, 158, 194, 0.1);
  color: var(--text-muted);
  line-height: 1.6;
}

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

/* Tool Grid (Bài 4) */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 25px 0;
}

@media (min-width: 768px) {
  .tool-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.tool-ui-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.tool-ui-card:hover {
  border-color: var(--color-sky-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-ui-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--color-carousel-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-size: 1.5rem;
  color: var(--color-atlantic);
}

.tool-ui-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-atlantic);
  margin-bottom: 8px;
}

.tool-ui-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Reflection Panel Grid (Conclusion) */
.reflect-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 30px 0;
}

@media (min-width: 768px) {
  .reflect-panel-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.reflect-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-smooth);
}

.reflect-card:hover {
  border-color: var(--color-sky-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reflect-card-img-container {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  background: #fbfbfb;
}

.reflect-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reflect-card:hover .reflect-card-img {
  transform: scale(1.06);
}

.reflect-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-atlantic);
}

.reflect-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Premium Form Styles (Contact) */
.form-panel {
  max-width: 600px;
  margin: 0 auto;
}

.form-group-ui {
  margin-bottom: 24px;
}

.form-label-ui {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-atlantic);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.form-input-ui {
  width: 100%;
  background: var(--bg-card-solid);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-input-ui:focus {
  outline: none;
  border-color: var(--color-atlantic);
  box-shadow: 0 0 0 4px rgba(22, 76, 102, 0.08);
}

textarea.form-input-ui {
  min-height: 140px;
  resize: vertical;
}

.form-submit-btn {
  background: linear-gradient(135deg, var(--color-atlantic) 0%, #15455c 100%);
  border: none;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 32px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.form-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--color-carousel-pink);
  color: var(--color-atlantic);
  border-color: var(--color-wedgwood);
}

/* Footer Section */
.app-footer-ui {
  border-top: 1px solid var(--border-color);
  padding: 30px 20px;
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 768px) {
  .app-footer-ui {
    flex-direction: row;
    padding: 30px 40px;
  }
}

.copy-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.footer-nav-link:hover {
  color: var(--color-atlantic);
}

/* Ambient Floating Background Blobs Animation */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  -webkit-filter: blur(100px);
  opacity: 0.15; /* Soft, delicate overlay */
  transition: var(--transition-smooth);
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 450px;
  height: 450px;
  background: var(--color-sky-blue);
  animation: float-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
  bottom: -15%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--color-carousel-pink);
  animation: float-blob-2 30s infinite alternate ease-in-out;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 350px;
  height: 350px;
  background: var(--color-spring-sun);
  animation: float-blob-3 20s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(120px, 90px) scale(1.1);
  }
  66% {
    transform: translate(-40px, 140px) scale(0.9);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float-blob-2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-150px, -80px) scale(0.85);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

@keyframes float-blob-3 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(-60px, 100px) scale(1.05);
  }
  80% {
    transform: translate(100px, -40px) scale(0.95);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* 1. Mouse-Tracking Card Glow Effect */
.glass-card {
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(129, 169, 194, 0.15),
    transparent 80%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glass-card:hover::before {
  opacity: 1;
}

/* Ensure card children are clickable above the glow pseudo-element */
.glass-card > * {
  position: relative;
  z-index: 2;
}

/* 2. Step Change Smooth Transition */
.step-detail-card.animate-change {
  animation: stepUpdate 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepUpdate {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. Button Shimmer Glowing Animation */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  animation: shimmer-effect 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes shimmer-effect {
  0% {
    left: -150%;
  }
  30% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* 4. Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 5. Prompt Tabs inside Bài 3 */
.prompt-tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 25px 0;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 15px;
}

.prompt-tab-btn {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.prompt-tab-btn:hover {
  background: var(--color-carousel-pink);
  color: var(--color-atlantic);
  border-color: var(--color-wedgwood);
}

.prompt-tab-btn.active {
  background: var(--color-atlantic);
  color: var(--text-white);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

/* Prompt panels styling */
.prompt-task-panel {
  display: none;
}

.prompt-task-panel.active {
  display: block;
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 6. Accordion styling (Bài 4) */
.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-item:hover {
  border-color: rgba(128, 158, 194, 0.4);
  background: rgba(255, 255, 255, 0.6);
}

.accordion-trigger {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-atlantic);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.accordion-icon {
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content-inner {
  padding: 0 20px 20px 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.accordion-content-inner p {
  margin-bottom: 8px;
}

.accordion-content-inner p:last-child {
  margin-bottom: 0;
}

/* Prevent the home section glass card from clipping the cat bubble */
#home .glass-card {
  overflow: visible !important;
}

/* Cute Chat Bubble for the cat */
.cat-bubble {
  position: absolute;
  bottom: 38px; /* sits comfortably above the cat ears */
  left: 50%;
  transform: translateX(-50%) scale(0);
  transform-origin: bottom center;
  background: var(--color-atlantic);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 12;
  border: 1.5px solid var(--border-color);
}

.cat-bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-atlantic);
}

.cat-bubble.show {
  transform: translateX(-50%) scale(1);
}

/* Cute Eye-tracking Cat sitting on top of the student tag */
.cute-cat {
  position: absolute;
  top: -27px; /* sit higher for larger body */
  left: 36px;
  width: 40px; /* scaled up from 32px */
  height: 30px; /* scaled up from 24px */
  z-index: 10;
  cursor: pointer;
  pointer-events: auto; /* enable interactions */
  transition: left 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.08s ease; /* bouncy spring slide when jumping, responsive tracking for eyes */
}

.cat-ears {
  position: absolute;
  top: -6px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
  box-sizing: border-box;
}

.cat-ear {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 9px solid var(--color-atlantic);
}

.cat-ear.left-ear {
  transform: rotate(-15deg);
}

.cat-ear.right-ear {
  transform: rotate(15deg);
}

.cat-head {
  width: 40px;
  height: 26px;
  background: var(--color-atlantic);
  border-radius: 14px 14px 10px 10px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.cat-eye {
  width: 9px;
  height: 9px;
  background: #ffffff;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cat-pupil {
  width: 4.5px;
  height: 4.5px;
  background: #111111;
  border-radius: 50%;
  position: absolute;
  transition: transform 0.05s linear;
}

.cat-nose {
  width: 4px;
  height: 3px;
  background: #ffb6c1;
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}

/* Contact Info Item Screen Hover Effects */
.contact-info-item:hover {
  background: var(--bg-card-solid) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--color-sky-blue) !important;
}

/* ==========================================
   PRINT STYLES FOR EXPORTING TO PDF (@media print)
   ========================================== */
@media print {
  /* Disable all animations, transitions, and transforms that could cause blank pages or clipping */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    box-shadow: none !important;
  }

  body {
    background: var(--bg-deep) !important;
    color: var(--text-main) !important;
    font-size: 10pt !important;
  }

  /* Reset container top padding since header is hidden */
  .app-container {
    padding-top: 20px !important;
  }

  /* Keep the background blobs visible */
  .ambient-bg {
    display: block !important;
    opacity: 0.15 !important;
  }

  .blob {
    opacity: 0.15 !important;
  }

  /* Hide menus, toggle buttons, and print controls completely in the PDF report */
  .fixed-header,
  .assign-sidebar-menu,
  .btn-download-pdf,
  .form-submit-btn,
  .app-footer-ui,
  .prompt-tabs-container,
  .cute-cat,
  #printPdfBtn {
    display: none !important;
  }

  /* Force display of ALL page sections in a continuous flow */
  .page-section {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    page-break-after: always !important;
  }

  /* Convert grid layout to simple block layout to prevent text clipping */
  .assign-grid {
    display: block !important;
  }

  /* Make the main assignments container transparent */
  .assign-content-area {
    display: block !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
  }

  /* Display ALL assignment panels sequentially as distinct pages */
  .panel-container {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 28px !important;
    padding: 35px !important;
    margin-bottom: 30px !important;
    page-break-after: always !important; /* Force each assignment to start on a new page */
    overflow: visible !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  /* Expand all accordion challenge blocks to show solutions */
  .accordion-content {
    max-height: none !important;
    display: block !important;
    overflow: visible !important;
  }
  
  .accordion-item {
    page-break-inside: avoid !important;
    margin-bottom: 20px !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid var(--border-color) !important;
  }

  .accordion-icon {
    display: none !important;
  }

  /* Show all prompt tasks one after another cleanly */
  .prompt-task-panel {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 30px !important;
    page-break-inside: avoid !important;
  }

  /* Keep elements fully revealed as they are on screen */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Maintain table formatting and allow wrapping */
  .acad-table-scroller {
    overflow: visible !important;
  }

  .acad-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  th, td {
    padding: 8px 10px !important;
  }
}
