/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* === 1. HALAMAN LOGIN === */
.bg-login {
  background: url('https://umm.ac.id/files/image/umm%20heart.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  backdrop-filter: blur(6px);
  background-color: rgba(255, 255, 255, 0.85);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 320px;
  text-align: center;
}

.login-box h2 {
  color: #b30000;
  margin-bottom: 10px;
}

.login-box p {
  font-size: 14px;
  margin-bottom: 25px;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.login-box button {
  width: 100%;
  background-color: #b30000;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.login-box button:hover {
  background-color: #8b0000;
}

/* === 2. DASHBOARD LAYOUT === */
.bg-dashboard {
  background-color: #f4f6f9;
  color: #333;
  display: block;
  height: auto;
}

/* Header */
header {
  background-color: white;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: auto;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nim-text {
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.logout-btn {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 6px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
}

.logout-btn:hover {
  background-color: #a00000;
}

/* Hero Section */
.hero {
  background-color: #8B0000;
  color: white;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 60%;
  z-index: 2;
}

.hero-title-box {
  background-color: rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 20px;
  border-left: 5px solid #d32f2f;
}

.hero h1 {
  font-size: 24px;
  font-weight: 600;
}

.hero p {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 15px;
  border-radius: 4px;
  line-height: 1.6;
  font-size: 14px;
}

.hero-illustration {
  width: 200px;
  height: 200px;
  background: white;
  mask-image: url('https://cdn-icons-png.flaticon.com/512/3135/3135810.png');
  -webkit-mask-image: url('https://cdn-icons-png.flaticon.com/512/3135/3135810.png');
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  background-color: white;
}

/* Container */
.container {
  padding: 30px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  color: #555;
  margin-bottom: 30px;
  font-weight: 500;
  font-size: 22px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

/* Cards */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background-color: #ddd;
}

.card-body {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tag {
  background-color: #00bcd4;
  color: white;
  padding: 2px 8px;
  font-size: 10px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 8px;
  width: fit-content;
}

.course-name {
  font-size: 14px;
  font-weight: 600;
  color: #d32f2f;
  margin-bottom: 15px;
  line-height: 1.4;
}

.progress-wrapper {
  margin-bottom: 15px;
}

.progress-track {
  background-color: #e0e0e0;
  height: 8px;
  border-radius: 4px;
  width: 100%;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 10px;
  color: #888;
  text-align: right;
  margin-top: 2px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.lock-icon {
  font-size: 14px;
  color: #555;
}

.btn-access {
  background-color: #8B0000;
  color: white;
  border: none;
  padding: 5px 15px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-access:hover {
  background-color: #600000;
}

/* === 3. COURSE DETAIL === */
.course-title {
  background-color: #8B0000;
  color: white;
  padding: 20px 40px;
  font-size: 22px;
  font-weight: 600;
}

.breadcrumb {
  font-size: 13px;
  color: #666;
  margin: 20px 40px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.breadcrumb a {
  text-decoration: none;
  color: #d32f2f;
}

.content-section {
  display: flex;
  justify-content: space-between;
  margin: 40px;
  gap: 30px;
  flex-wrap: wrap;
}

.box {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  flex: 1;
  min-width: 300px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.box h3 {
  color: #d32f2f;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.box h3::before {
  content: "💻";
  font-size: 20px;
}

.box p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.back-btn {
  background-color: #8B0000;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.back-btn:hover {
  background-color: #a00000;
}

/* === 4. TASK LIST (BAGIAN INI YANG HILANG DI PUNYAMU) === */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #333;
  border-left: 6px solid #ddd;
  transition: transform 0.2s;
}

.task-item:hover {
  transform: translateX(5px);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.task-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 50%;
  background: #f0f0f0;
}

.section-header {
  text-align: center;
  color: #2196F3;
  font-size: 20px;
  font-weight: 600;
  padding: 15px;
  margin: 0 auto 20px auto;
  background-color: white;
  border-top: 1px solid #e3f2fd;
  border-bottom: 1px solid #e3f2fd;
  max-width: 1000px;
}

/* WARNA: HIJAU (Selesai) */
.status-done {
  border-left-color: #28a745;
}

.status-done .task-icon {
  background-color: #e6fffa;
  color: #28a745;
}

.badge-done {
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* WARNA: KUNING (Pending) */
.status-pending {
  border-left-color: #ffc107;
}

.status-pending .task-icon {
  background-color: #fffde7;
  color: #fbc02d;
}

.badge-pending {
  background: #ffc107;
  color: #333;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* WARNA: MERAH (Telat) */
.status-late {
  border-left-color: #dc3545;
}

.status-late .task-icon {
  background-color: #ffebee;
  color: #dc3545;
}

.badge-late {
  background: #dc3545;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* Footer */
footer {
  text-align: center;
  font-size: 13px;
  color: #555;
  padding: 20px;
  border-top: 1px solid #ddd;
  background-color: #fafafa;
  margin-top: 50px;
}
/* ===============================
   RESPONSIVE COURSE (HP)
   =============================== */
@media (max-width: 768px) {

  /* === HEADER === */
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 20px;
  }

  .logo-area {
    gap: 8px;
  }

  /* Tombol kembali full width */
  .back-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  /* === TITLE & BREADCRUMB === */
  .course-title {
    font-size: 18px;
    padding: 15px 20px;
  }

  .breadcrumb {
    margin: 10px 20px 20px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  /* === CONTENT JADI 1 KOLOM === */
  .content-section {
    flex-direction: column;
    margin: 20px;
    gap: 20px;
  }

  /* === BOX === */
  .box {
    padding: 15px;
  }

  .box h3 {
    font-size: 16px;
  }

  .box p {
    font-size: 13px;
  }

  /* === PROGRESS === */
  .progress-wrapper {
    margin-top: 15px;
  }

  /* === FOOTER === */
  footer {
    font-size: 12px;
    padding: 15px;
  }
}
/* ===============================
   RESPONSIVE TASK LIST (HP)
   =============================== */
@media (max-width: 768px) {

  /* === HEADER === */
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 20px;
  }

  .logo-area {
    gap: 8px;
  }

  header .back-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
  }

  /* === TITLE & BREADCRUMB === */
  .course-title {
    font-size: 18px;
    padding: 15px 20px;
  }

  .breadcrumb {
    margin: 10px 20px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  .section-header {
    font-size: 18px;
    padding: 12px;
    margin-bottom: 15px;
  }

  /* === TASK LIST === */
  .task-list {
    margin: 20px;
    gap: 15px;
  }

  .task-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
  }

  .task-left {
    gap: 12px;
  }

  .task-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* Badge pindah ke bawah */
  .task-item span {
    align-self: flex-end;
    font-size: 11px;
  }

  /* === FOOTER === */
  footer {
    font-size: 12px;
    padding: 15px;
  }

  /* === RESET BUTTON (DEV ONLY) === */
  button[onclick="resetData()"] {
    right: 10px;
    bottom: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }
}
/* ===============================
   RESPONSIVE COURSE PAGE (HP)
   =============================== */
@media (max-width: 768px) {

  /* === HEADER === */
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 20px;
  }

  .logo-area {
    gap: 8px;
  }

  .logo-img {
    height: 36px;
  }

  .back-btn {
    align-self: flex-start;
    font-size: 13px;
    padding: 6px 12px;
  }

  /* === COURSE TITLE === */
  .course-title {
    font-size: 18px;
    padding: 15px 20px;
  }

  /* === BREADCRUMB === */
  .breadcrumb {
    margin: 15px 20px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  /* === CONTENT SECTION === */
  .content-section {
    flex-direction: column;
    margin: 20px;
    gap: 20px;
  }

  .box {
    width: 100%;
    padding: 18px;
  }

  .box h3 {
    font-size: 15px;
  }

  .box p {
    font-size: 13px;
  }

  /* === TASK TEXT === */
  #taskText1,
  #taskText2,
  #taskText3 {
    font-size: 13px;
  }

  /* === PROGRESS BAR === */
  .progress-wrapper {
    margin-top: 12px;
  }

  .progress-track {
    height: 8px;
  }

  /* === FOOTER === */
  footer {
    font-size: 12px;
    padding: 15px;
  }
}
/* ===============================
   RESPONSIVE TASK VIEW (HP)
   =============================== */
@media (max-width: 768px) {

  /* === HEADER === */
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
  }

  .logo-area {
    gap: 10px;
  }

  .logo-img {
    height: 36px;
  }

  .back-btn {
    font-size: 13px;
    padding: 6px 12px;
    align-self: flex-start;
  }

  /* === COURSE TITLE === */
  .course-title {
    font-size: 18px;
    padding: 15px 20px;
    text-align: left;
  }

  /* === BREADCRUMB === */
  .breadcrumb {
    margin: 15px 20px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  /* === SECTION HEADER === */
  .section-header {
    font-size: 16px;
    padding: 12px;
    margin: 0 15px 15px;
  }

  /* === TASK LIST === */
  .task-list {
    margin: 15px;
    gap: 15px;
  }

  .task-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
  }

  /* kiri (icon + teks) */
  .task-left {
    gap: 12px;
  }

  .task-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .task-item strong {
    font-size: 14px;
  }

  .task-item div div {
    font-size: 12px;
  }

  /* badge (status) */
  .task-item span {
    align-self: flex-end;
    font-size: 11px;
    padding: 4px 10px;
  }

  /* === FOOTER === */
  footer {
    font-size: 12px;
    padding: 15px;
    margin-top: 40px;
  }

  /* === RESET BUTTON === */
  button[onclick="resetData()"] {
    bottom: 15px;
    right: 15px;
    font-size: 12px;
    padding: 8px 10px;
  }
}
/* ===============================
   RESPONSIVE COURSE (HP)
   =============================== */
@media (max-width: 768px) {

  /* === HEADER === */
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 20px;
  }

  .back-btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 14px;
  }

  /* === COURSE TITLE === */
  .course-title {
    font-size: 18px;
    padding: 15px 20px;
  }

  /* === BREADCRUMB === */
  .breadcrumb {
    margin: 10px 20px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  /* === CONTENT SECTION === */
  .content-section {
    flex-direction: column;
    margin: 20px;
    gap: 20px;
  }

  /* === BOX === */
  .box {
    width: 100%;
    padding: 16px;
  }

  .box h3 {
    font-size: 16px;
  }

  .box p {
    font-size: 14px;
  }

  /* === PROGRESS === */
  .progress-wrapper {
    margin-top: 15px;
  }

  .progress-track {
    height: 10px;
  }

  .progress-text {
    font-size: 11px;
  }

  /* === FOOTER === */
  footer {
    font-size: 12px;
    padding: 15px;
  }
}
/* ===============================
   RESPONSIVE LOGIN (HP)
   =============================== */
@media (max-width: 480px) {

  .login-container {
    padding: 15px;
  }

  .login-box {
    width: 100%;
    padding: 25px 20px;
    border-radius: 16px;
  }

  .login-box h2 {
    font-size: 18px;
    line-height: 1.3;
  }

  .login-box p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .login-box input {
    font-size: 14px;
    padding: 10px;
  }

  .login-box button {
    font-size: 14px;
    padding: 10px;
  }
}



