/* ============================================================
   GLOBAL BASE STYLES
============================================================ */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #f5f8fc;
  color: #333;
  height: 100%;
  overflow-x: hidden;
}

/* ============================================================
   HEADER – Bright Blue with Subtle Gradient
============================================================ */
header {
  background: linear-gradient(180deg, #00B2FF 0%, #0099E6 100%); /* bright to slightly deeper blue */
  text-align: center;
  color: white;
  padding: 40px 20px 30px; /* 🔹 shorter height */
  margin: 0;
}

/* Main title */
header h1 {
  margin: 0;
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  color: #ffffff;
  animation: fadeInDown 1.5s ease forwards;
}

/* Subtitle */
header p {
  margin-top: 10px;
  font-size: clamp(14px, 2.3vw, 17px);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f2fbff;
  line-height: 1.5;
  opacity: 0;
  animation: fadeInUp 2s ease forwards;
  animation-delay: 0.8s;
}

/* Fade animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}




/* ============================================================
   HEADER & TOP BAR
============================================================ */
.top-header {
  display: flex;
  justify-content: flex-end;
  background: #1e293b;
  padding: 8px 40px;
  font-size: 14px;
}
.top-header a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s;
}
.top-header a:hover {
  background-color: #2a5298;
}




/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  background-color: #1e293b;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
}

/* ✅ Align left/right buttons properly */
.nav-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.nav-left, .nav-right {
  display: flex;
  gap: 20px;
}

.nav-left a, .nav-right a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.nav-left a:hover, .nav-right a:hover {
  background-color: #2a5298;
}

.logo a {
  color: white;
  font-weight: bold;
  text-decoration: none;
  font-size: 20px;
}

.menu-icon {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-icon { display: block; }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #1e293b;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .menu-toggle:checked ~ .nav-links {
    max-height: 500px;
    padding: 10px 0;
  }

  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .nav-left, .nav-right {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    align-items: center;
  }

  .navbar a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-radius: 0;
  }
}

/* ============================================================
   MAIN CONTENT
============================================================ */
main {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}
.justified-paragraph {
  text-align: justify;
  line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* ============================================================
   VIDEO CARDS (Public + Samples + General)
============================================================ */
.container, .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card{
background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.thumbnail {
  position: relative;
}

.thumbnail img, iframe {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 60px;
  font-size: 28px;
}

.video-content {
  padding: 15px;
}

.video-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #333;
}
.video-content p {
  margin: 0 0 10px;
  font-size: 14px;
  color: #666;
}
.watch-btn {
  display: inline-block;
  background: #0078d7;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.watch-btn:hover {
  background: #005fa3;
}

/* ============================================================
   REGISTER FORM
============================================================ */
.register-container {
  max-width: 400px;
  margin: 100px auto;
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.register-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #1e293b;
  font-size: 1.8rem;
  font-weight: 700;
}
.register-form label {
  display: block;
  margin-bottom: 6px;
  color: #1e293b;
  font-weight: 500;
}
.register-form input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  transition: 0.3s;
}
.register-form input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 5px rgba(59,130,246,0.3);
  outline: none;
}
.register-form button {
  width: 100%;
  padding: 10px 0;
  background-color: #1e40af;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.register-form button:hover {
  background-color: #2563eb;
}
.login-link {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
}
.login-link a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 600;
}
.login-link a:hover {
  text-decoration: underline;
}

/* ============================================================
   DASHBOARD (Admin/User)
============================================================ */
.dashboard, main.dashboard {
  background: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
h2, h3 {
  text-align: center;
  color: #333;
}
label {
  font-weight: 500;
  display: block;
  margin-top: 10px;
}
input[type=text], select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 6px;
  font-size: 15px;
}
button {
  background-color: #007bff;
  color: white;
  font-size: 16px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
}
button:hover {
  background-color: #0056b3;
}

/* ============================================================
   TABLES
============================================================ */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
  min-width: 900px;
  background: #fff;
}
th, td {
  border: 1px solid #fff; /*sebelum ni #ddd*/
  padding: 10px;
  text-align: center;
}
th {
  background-color: #007bff;
  font-weight: 700;
}
tr:nth-child(even) {
  background-color: #f9fbff;
}
.score-high { background: #c6f6d5; color: #005c29; font-weight: 700; }
.score-mid { background: #fff3cd; color: #856404; font-weight: 700; }
.score-low { background: #f8d7da; color: #842029; font-weight: 700; }
.badge-status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.badge-public { background: #16a34a; }
.badge-private { background: #dc2626; }

/* ============================================================
   EVALUATION PAGE
============================================================ */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 20px 0;
  border-radius: 8px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.result-box {
  text-align: center;
  padding: 30px;
  border: 2px solid #000;
  border-radius: 10px;
  margin-top: 30px;
}
.result-box h3 {
  color: #000;
  font-size: 24px;
}
.back-btn {
  display: inline-block;
  margin-top: 15px;
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
}
.back-btn:hover {
  background: #0056b3;
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  text-align: center;
  background: #f0f4ff;
  padding: 20px;
  font-size: 14px;
  color: #555;
  margin-top: 40px;
}

/* ============================================================
   RESPONSIVE FIXES
============================================================ */
@media (max-width: 900px) {
  main {
    padding: 20px;
    margin: 20px;
  }
  table, th, td {
    font-size: 14px;
    word-wrap: break-word;
  }
}

/* ============================================================
   INSTRUCTIONAL TOOLS SECTION
============================================================ */
.instructional-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.instructional-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

/* Grid layout for cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  justify-content: center;
}

/* Tool card (button-like style) */
.tool-card {
  display: block;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border-radius: 14px;
  text-decoration: none;
  color: #1e293b;
  padding: 25px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
}

/* Hover effects */
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  background: linear-gradient(180deg, #eaf3ff, #ffffff);
  border-color: #3b82f6;
}

/* Title inside the card */
.tool-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

/* Description text */
.tool-card p {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
  text-align: justify;
}

/* Slight text color shift on hover */
.tool-card:hover h3 {
  color: #2563eb;
}

/* Optional subtle glow border */
.tool-card:hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(120deg, #3b82f6, #60a5fa, #93c5fd);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ============================================================
   TEAM SECTION
============================================================ */
.team-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.team-section h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

.team-section p {
  font-size: 16px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Grid for team cards */
.team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

/* Each team member card */
.team-member {
  background: #ffffff;
  padding: 15px;
  width: 230px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

/* Hover effect for subtle lift */
.team-member:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Team member images */
.team-member img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
  object-fit: cover;
  aspect-ratio: 3 / 3.5;
}

/* Team member name */
.team-member h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 6px;
}

/* Role text */
.team-member p {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

/* Responsive fix for smaller screens */
@media (max-width: 600px) {
  .team-member {
    width: 90%;
  }
}

/* ============================================================
   CONTACT SECTION
============================================================ */
.contact-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: left;
}

.contact-section h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
}

.contact-section h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1e40af;
  margin-top: 40px;
  margin-bottom: 15px;
  text-align: center;
}

.contact-section p {
  font-size: 16px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}

.contact-section a {
  color: #2563eb;
  text-decoration: none;
}

.contact-section a:hover {
  text-decoration: underline;
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 500px;
}

.contact-form input,
.contact-form textarea {
  font-size: 15px;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Submit button */
.contact-form button {
  background: #3b82f6;
  color: white;
  font-weight: 600;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: #2563eb;
  transform: translateY(-2px);
}



/* ============================================================
   REGISTER PAGE DESIGN
============================================================ */

.register-container {
  max-width: 420px;
  margin: 60px auto;
  background: linear-gradient(145deg, #ffffff, #f3f6fb);
  border-radius: 20px;
  padding: 40px 35px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: floatUp 0.8s ease-out;
  position: relative;
}

@keyframes floatUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.register-container h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #2b3e75;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.register-form label {
  font-weight: 600;
  color: #3a4a6a;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.register-form input {
  padding: 10px 14px;
  border: 2px solid #d9e2f3;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: 0.3s ease;
  background: #fff;
}

.register-form input:focus {
  border-color: #4a73b1;
  box-shadow: 0 0 0 3px rgba(74, 115, 177, 0.15);
  outline: none;
}

.register-form button {
  background: linear-gradient(90deg, #4a73b1, #6b9ae6);
  color: white;
  font-weight: 600;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.register-form button:hover {
  background: linear-gradient(90deg, #5b8de0, #4a73b1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(74, 115, 177, 0.25);
}

.register-form button:active {
  transform: scale(0.98);
}

.login-link {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: #555;
}

.login-link a {
  color: #4a73b1;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.login-link a:hover {
  color: #6b9ae6;
}

/* Responsive Design */
@media (max-width: 600px) {
  .register-container {
    margin: 30px 15px;
    padding: 30px 20px;
  }

  .register-container h2 {
    font-size: 1.6rem;
  }
}

body {
  background: linear-gradient(-45deg, #eaf1fb, #f4f8ff, #eaf1fb, #f4f8ff);
  background-size: 400% 400%;
  animation: backgroundShift 15s ease infinite;
}

@keyframes backgroundShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ============================================================
   LOGIN PAGE EXTRA STYLES
============================================================ */

.register-container h2 {
  animation: fadeSlideDown 0.8s ease-out;
}

@keyframes fadeSlideDown {
  0% {
    transform: translateY(-15px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Login page subtle pulse glow on button */
.register-form button {
  position: relative;
  overflow: hidden;
}

.register-form button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.register-form button:hover::before {
  left: 125%;
}

/* Add slight fade-in animation for the entire form */
.register-form {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



/* ============================================================
   ADMIN DASHBOARD DESIGN UPGRADE
============================================================ */

body {
  background: #f4f7fb;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

main {
  max-width: 1200px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  animation: fadeIn 0.6s ease-in;
}

/* Section Titles */
h1 {
  font-size: 2rem;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 15px;
}

h2 {
  color: #4a73b1;
  font-size: 1.4rem;
  text-align: center;
  margin: 35px 0 15px;
}

/* Table Styling */
.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  animation: fadeInUp 0.6s ease-out;
}

th, td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #e9eef6;
}

th {
  background: #f9fbff;
  color: #333;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

td {
  background: #fff;
  transition: background 0.3s ease;
}

tr:hover td {
  background: #f5f9ff;
}

/* Score Indicators */
.score-high {
  background: #c8f7c5;
  color: #0b5f32;
  font-weight: bold;
  border-radius: 6px;
}

.score-mid {
  background: #fff3cd;
  color: #856404;
  font-weight: bold;
  border-radius: 6px;
}

.score-low {
  background: #f8d7da;
  color: #842029;
  font-weight: bold;
  border-radius: 6px;
}

/* Buttons */
.toggle-btn {
  background: linear-gradient(135deg, #4a73b1, #3a5f9f);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: linear-gradient(135deg, #5e87c9, #456fb0);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(74, 115, 177, 0.3);
}

/* Dashboard playlist table */
.dashboard .table-wrapper {
  border: 1px solid #e5eaf3;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  margin: 18px 0 30px;
  overflow: hidden;
}

.dashboard .playlist-table {
  animation: none;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0;
  min-width: 0;
  table-layout: fixed;
}

.dashboard .playlist-table th,
.dashboard .playlist-table td {
  border: 0;
  border-bottom: 1px solid #edf1f7;
  color: #243244;
  padding: 14px 16px;
  vertical-align: middle;
}

.dashboard .playlist-table th {
  background: #f7f9fc;
  color: #536174;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard .playlist-table td {
  background: #fff;
  font-size: 14px;
}

.dashboard .playlist-table tr:last-child td {
  border-bottom: 0;
}

.dashboard .playlist-table tr:hover td {
  background: #fbfdff;
}

.dashboard .playlist-table th:first-child {
  text-align: center;
  width: 52%;
}

.dashboard .playlist-table td:first-child {
  text-align: left;
  width: 52%;
}

.dashboard .playlist-table th:nth-child(2),
.dashboard .playlist-table td:nth-child(2) {
  width: 14%;
}

.dashboard .playlist-table th:nth-child(3),
.dashboard .playlist-table td:nth-child(3) {
  width: 9%;
}

.dashboard .playlist-table th:nth-child(4),
.dashboard .playlist-table td:nth-child(4) {
  width: 12%;
}

.dashboard .playlist-table th:nth-child(5),
.dashboard .playlist-table td:nth-child(5) {
  padding-left: 10px;
  padding-right: 10px;
  width: 13%;
}

.dashboard .playlist-title {
  color: #111827;
  font-weight: 500;
  line-height: 1.45;
}

.dashboard .watch-link {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #cfe0f6;
  border-radius: 6px;
  box-sizing: border-box;
  color: #1f4f85;
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  min-height: 40px;
  min-width: 76px;
  padding: 0 12px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.dashboard .watch-link:hover,
.dashboard .watch-link:focus {
  background: #eef5ff;
  border-color: #9fc0ec;
  box-shadow: 0 4px 10px rgba(31, 79, 133, 0.12);
  outline: none;
}

.dashboard .score-pill {
  background: #eef5ff;
  border: 1px solid #d9e8ff;
  border-radius: 999px;
  color: #1f4f85;
  display: inline-flex;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  justify-content: center;
  min-width: 76px;
  padding: 6px 10px;
}

.dashboard .playlist-table .toggle-btn {
  align-items: center;
  background: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 6px;
  box-sizing: border-box;
  box-shadow: none;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 0 10px;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  width: 100%;
}

.dashboard .playlist-table .toggle-btn:hover,
.dashboard .playlist-table .toggle-btn:focus {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.22);
  outline: none;
  transform: none;
}

.dashboard .playlist-table .toggle-btn.is-evaluated {
  background: #ccfbf1;
  border-color: #5eead4;
  color: #0f766e;
}

.dashboard .playlist-table .toggle-btn.is-evaluated:hover,
.dashboard .playlist-table .toggle-btn.is-evaluated:focus {
  background: #99f6e4;
  border-color: #2dd4bf;
  color: #115e59;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.22);
}

.dashboard .playlist-table .toggle-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

.dashboard .playlist-table .toggle-btn.is-evaluated:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.28);
}

.reevaluate-modal[hidden] {
  display: none;
}

.reevaluate-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1000;
}

.reevaluate-modal__panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  max-width: 380px;
  padding: 24px;
  text-align: center;
  width: 100%;
}

.reevaluate-modal__panel h3 {
  color: #111827;
  font-size: 18px;
  margin: 0 0 18px;
}

.reevaluate-modal__actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.reevaluate-modal__actions button {
  border-radius: 6px;
  font-weight: 700;
  margin: 0;
  min-height: 42px;
  width: 100%;
}

.reevaluate-modal__yes {
  background: #2563eb;
}

.reevaluate-modal__no {
  background: #64748b;
}

@media (max-width: 720px) {
  .dashboard .table-wrapper {
    border: 0;
    box-shadow: none;
    overflow: visible;
  }

  .dashboard .playlist-table,
  .dashboard .playlist-table thead,
  .dashboard .playlist-table tbody,
  .dashboard .playlist-table tr,
  .dashboard .playlist-table td {
    display: block;
    width: 100%;
  }

  .dashboard .playlist-table thead {
    display: none;
  }

  .dashboard .playlist-table tr {
    background: #fff;
    border: 1px solid #e5eaf3;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    padding: 10px 12px;
  }

  .dashboard .playlist-table td {
    align-items: center;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 11px 0;
    text-align: right;
  }

  .dashboard .playlist-table td::before {
    color: #64748b;
    content: attr(data-label);
    flex: 0 0 116px;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
  }

  .dashboard .playlist-table td:first-child {
    text-align: right;
    width: 100%;
  }

  .dashboard .playlist-table td:last-child {
    border-bottom: 0;
  }

  .dashboard .playlist-table .toggle-btn {
    width: 100%;
  }
}

/* Teacher dashboard refresh */
main.teacher-dashboard {
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 22px;
  margin: 36px auto;
  max-width: 1120px;
  padding: 0 20px;
}

.teacher-hero {
  text-align: center;
}

.teacher-hero .eyebrow {
  color: #1f5f9f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.teacher-hero h2 {
  color: #172033;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  margin: 0;
  text-align: center;
}

.teacher-hero p {
  color: #526173;
  font-size: 15px;
  line-height: 1.6;
  margin: 10px auto 0;
  max-width: 620px;
}

.dashboard-card {
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  padding: 24px;
}

.card-heading {
  margin-bottom: 18px;
}

.card-heading h3 {
  color: #172033;
  font-size: 20px;
  margin: 0;
  text-align: left;
}

.card-heading p {
  color: #5f6f83;
  font-size: 14px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.dashboard-alert {
  align-items: center;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 14px;
}

.dashboard-alert--success {
  background: #e8f7ef;
  border: 1px solid #bce7cf;
  color: #12613e;
}

.dashboard-alert--error {
  background: #fff0f2;
  border: 1px solid #ffc7d0;
  color: #a0182f;
}

.dashboard-alert a {
  background: #12613e;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 8px 14px;
  text-decoration: none;
}

.teacher-video-form {
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 0.55fr) minmax(260px, 1fr);
}

.field-group--wide {
  grid-column: 1 / -1;
}

.field-group label {
  color: #253349;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 7px;
}

.teacher-video-form input[type=text],
.teacher-video-form select {
  background: #fbfdff;
  border: 1px solid #cddced;
  border-radius: 8px;
  color: #172033;
  min-height: 46px;
  padding: 10px 12px;
}

.teacher-video-form input[readonly] {
  background: #f3f7fb;
  color: #526173;
}

.teacher-video-form input:focus,
.teacher-video-form select:focus {
  border-color: #0f7de8;
  box-shadow: 0 0 0 3px rgba(15, 125, 232, 0.16);
  outline: none;
}

.video-check-status {
  align-items: center;
  border: 1px solid;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  padding: 11px 13px;
}

.video-check-status[hidden] {
  display: none;
}

.video-check-status--available {
  background: #e8f7ef;
  border-color: #bce7cf;
  color: #12613e;
}

.video-check-status--exists,
.video-check-status--error {
  background: #fff7e6;
  border-color: #f4d38b;
  color: #78520b;
}

.video-check-status a {
  align-items: center;
  background: #0f7de8;
  border-radius: 7px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 36px;
  padding: 7px 13px;
  text-decoration: none;
}

.video-check-status a:hover,
.video-check-status a:focus {
  background: #0a66bf;
  color: #fff;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.teacher-video-form button[type=submit] {
  background: #0f7de8;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 800;
  margin: 0;
  min-height: 46px;
  padding: 0 24px;
  width: auto;
}

.teacher-video-form button[type=submit]:hover,
.teacher-video-form button[type=submit]:focus {
  background: #0a66bf;
  outline: none;
}

.teacher-video-form button[type=submit]:disabled {
  background: #9bbbe0;
  cursor: not-allowed;
}

.teacher-video-form button[type=submit].is-checking:disabled {
  cursor: wait;
}

.playlist-card .table-wrapper {
  border: 1px solid #e2eaf4;
  border-radius: 8px;
  box-shadow: none;
  margin: 0;
  overflow-x: auto;
}

.teacher-dashboard .playlist-table {
  min-width: 880px;
}

.teacher-dashboard .playlist-table th {
  background: #eef5ff;
  color: #164a7d;
}

.teacher-dashboard .playlist-table th,
.teacher-dashboard .playlist-table td {
  padding: 16px;
}

.teacher-dashboard .playlist-table tr:hover td {
  background: #f8fbff;
}

.category-pill {
  background: #eef6ff;
  border-radius: 999px;
  color: #0f5f9f;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: center;
  padding: 7px 11px;
}

.teacher-dashboard .score-pill {
  background: #e5f8ee;
  border: 1px solid #caeedb;
  color: #0c6840;
  min-width: 82px;
}

.empty-state {
  color: #64748b;
  font-weight: 700;
  padding: 28px 16px !important;
  text-align: center !important;
}

@media (max-width: 760px) {
  main.teacher-dashboard {
    margin: 24px auto;
    padding: 0 14px;
  }

  .dashboard-card {
    padding: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions,
  .teacher-video-form button[type=submit] {
    width: 100%;
  }

  .teacher-dashboard .playlist-table {
    min-width: 0;
  }

  .dashboard-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-alert a {
    text-align: center;
  }
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  animation: fadeIn 0.8s ease;
}

.filters input,
.filters select,
.filters button {
  padding: 10px 12px;
  border: 1px solid #d6e0ef;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  transition: 0.3s ease;
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: #4a73b1;
  box-shadow: 0 0 6px rgba(74, 115, 177, 0.4);
}

.filters button {
  background: #4a73b1;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.filters button:hover {
  background: #3a5f9f;
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* DataTables Fix */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #4a73b1 !important;
  color: white !important;
  border: none !important;
  border-radius: 6px;
  margin: 2px;
  padding: 4px 8px;
}

.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #d6e0ef;
  border-radius: 6px;
  padding: 6px 10px;
}



/*Lock Ttitle Youtube*/

input[readonly] {
  background-color: #f0f6ff;
  color: #333;
  cursor: not-allowed;
}

/*logo UKM UiTM*/
.ack-logo {
  display: block;
  margin: 20px auto;
  width: 280px;        /* 🔹 Besarkan dari 180px → 280px */
  max-width: 80%;      /* masih responsive untuk mobile */
  height: auto;
}

/* ===== Acknowledgement Logo Row (Dual) ===== */
.ack-logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 20px 0;
}

.ack-logo-row img {
  width: 180px;         /* Desktop size */
  max-width: 40%;
  height: auto;
}

/* ✅ Mobile-friendly version */
@media (max-width: 768px) {
  .ack-logo-row {
    flex-direction: column;   /* Stack vertically on small screens */
    gap: 15px;
  }

  .ack-logo-row img {
    width: 150px;        /* Slightly smaller for mobile */
    max-width: 60%;
  }
}

.home-hero-image {
  display: block;
  width: 90%;
  max-width: 920px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

/* Home page: first-time user guide callout */
.welcome-guide {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 46px);
  margin: 30px 0 34px;
  padding: clamp(22px, 3vw, 36px);
  border: 3px solid #ed4774;
  border-radius: 24px;
  background: #e5f3ff;
}

.welcome-guide__icon svg {
  display: block;
  width: 100%;
  max-width: 150px;
  margin: auto;
  fill: #1249d8;
}

.welcome-guide__icon .welcome-guide__play { fill: #fff; }
.welcome-guide__icon .welcome-guide__detail {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-width: 5;
}

.welcome-guide__content h2 {
  margin: 0 0 8px;
  color: #123eae;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.2;
}

.welcome-guide__content p {
  margin: 0 0 18px;
  color: #263b59;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
}

.welcome-guide__button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  border-radius: 14px;
  background: #1249d8;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.welcome-guide__button:hover {
  transform: translateY(-2px);
  background: #0c38ad;
}

.welcome-guide__button:focus-visible {
  outline: 3px solid #123eae;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .welcome-guide {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .welcome-guide__icon svg { max-width: 92px; }
  .welcome-guide__content h2 { text-align: center; }
  .welcome-guide__button { font-size: 16px; }
}

@media (max-width: 600px) {
  .home-hero-image {
    width: 100%;
  }
}

/* ============================================================
   VOCAB POWERGEAR BRAND HEADER
============================================================ */
:root {
  --brand-navy: #0d234a;
  --brand-navy-deep: #081a39;
  --brand-blue: #3567e8;
  --brand-sky: #74bcf6;
  --brand-focus: #8ec8ff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand-navy-deep);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--brand-focus);
}

.top-header {
  min-height: 52px;
  padding: 6px clamp(18px, 4vw, 52px);
  gap: 8px;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-navy-deep), var(--brand-navy));
}

.top-header a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.top-header a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.top-header svg,
.site-nav svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: currentColor;
}

.brand-hero {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 490;
  padding: 0;
  overflow: hidden;
  background: #b9e1fb;
  isolation: isolate;
}

.brand-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
  animation: none;
}

.site-nav {
  position: relative;
  z-index: 50;
  min-height: 72px;
  padding: 10px clamp(18px, 3vw, 48px);
  background: linear-gradient(135deg, var(--brand-navy-deep), var(--brand-navy));
  box-shadow: 0 8px 24px rgba(8, 26, 57, 0.16);
}

.site-nav .nav-links {
  width: min(100%, 1600px);
  margin: 0 auto;
  gap: clamp(20px, 4vw, 72px);
  align-items: center;
}

.site-nav .nav-left,
.site-nav .nav-right {
  flex: 1 1 0;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
}

.site-nav .site-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 18px;
  color: #fff;
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-nav .site-nav__link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-nav .site-nav__link.is-active {
  background: linear-gradient(135deg, #405dea, #254aca);
  box-shadow: 0 8px 20px rgba(24, 65, 190, 0.35);
}

.site-nav .site-nav__link.is-active::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -8px;
  left: 18px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-sky);
}

.menu-button {
  display: none;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.top-header a:focus-visible,
.site-nav a:focus-visible,
.menu-button:focus-visible {
  outline: 3px solid var(--brand-focus);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .site-nav {
    min-height: 72px;
    padding-inline: 16px;
  }

  .site-nav .nav-links {
    gap: 8px;
  }

  .site-nav .site-nav__link {
    gap: 7px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .site-nav svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 820px) {
  .top-header {
    min-height: 52px;
    padding-inline: 12px;
  }

  .top-header a {
    padding-inline: 10px;
    font-size: 14px;
  }

  .brand-hero {
    height: auto;
    aspect-ratio: 1672 / 490;
  }

  .site-nav {
    min-height: 64px;
    justify-content: flex-end;
    padding: 9px 14px;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    max-height: 0;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    padding: 0 14px;
    background: var(--brand-navy);
    box-shadow: 0 14px 28px rgba(8, 26, 57, 0.24);
    transition: max-height 220ms ease, opacity 180ms ease, padding 220ms ease;
  }

  .site-nav .nav-links.is-open {
    max-height: 620px;
    visibility: visible;
    opacity: 1;
    padding-block: 12px 16px;
  }

  .site-nav .nav-left,
  .site-nav .nav-right {
    width: 100%;
    flex-direction: column;
    gap: 4px;
  }

  .site-nav .site-nav__link {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
  }

  .site-nav .site-nav__link.is-active::after {
    top: 10px;
    right: auto;
    bottom: 10px;
    left: 4px;
    width: 3px;
    height: auto;
  }
}

@media (max-width: 430px) {
  .top-header a span {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-header a,
  .site-nav .site-nav__link,
  .site-nav .nav-links {
    transition: none;
  }
}

