/* ==========================================================
   JADWAL KULIAH RESMI - TAMPILAN BERSIH, RAPI & SESUAI EXCEL
   DENGAN NAVIGASI MINGGU & TANGGAL LENGKAP
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', -apple-system, sans-serif;
}

body {
  background-color: #f1f5f9;
  color: #1e293b;
  padding: 1.5rem 1rem 4rem 1rem;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

/* Header Banner */
.page-header {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.15rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-left: 5px solid #5a8e48;
}

.page-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.page-title p {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2px;
}

/* Week Navigator Card */
.week-bar {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.week-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.day-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  border-top: 1px dashed #e2e8f0;
  padding-top: 0.65rem;
  overflow-x: auto;
}

.filter-pill {
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: #f0fdf4;
  border-color: #5a8e48;
  color: #1e3a15;
}

.filter-pill.active {
  background: #5a8e48;
  color: #ffffff;
  border-color: #5a8e48;
}

.week-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.week-select-dropdown {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e3a15;
  background: #f0fdf4;
  border: 1.5px solid #5a8e48;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
}

.btn-nav-week {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: #334155;
  transition: all 0.1s ease;
}

.btn-nav-week:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.1s ease;
  white-space: nowrap;
}

.btn-wa {
  background: #25d366;
  color: #ffffff;
}
.btn-wa:hover {
  background: #1ebc59;
}

.btn-refresh {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}
.btn-refresh:hover {
  background: #f8fafc;
}

/* TABLE STYLING - EXACT ACADEMIC THEME */
.table-wrapper {
  background: #ffffff;
  border: 1px solid #7ea86d;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow-x: auto;
}

.academic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.academic-table thead th {
  background: #d4e8c5; /* Matching user screenshot moss-green */
  border: 1px solid #7ea86d;
  color: #1e3a15;
  font-weight: 700;
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.academic-table tbody td {
  border: 1px solid #7ea86d;
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}

.academic-table tbody tr:hover {
  background-color: #f7faf5;
}

/* Row states */
.row-approved {
  background-color: #f0fdf4 !important;
}

.row-voting {
  background-color: #fffef0 !important;
}

/* ==========================================================
   STATUS & AKSI - HARMONIS, MODERN & RAPI
   ========================================================== */
.status-actions-cell,
.actions-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
}

/* Badges - html2canvas compatible (inline-block with line-height) */
.badge-status {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0 0.75rem;
  height: 25px;
  line-height: 23px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
  position: relative;
  top: -1px;
}

.badge-approved {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-approved .status-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.badge-today-upcoming {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.badge-today-upcoming .status-dot {
  background: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.badge-ongoing {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 700;
}
.badge-ongoing .status-dot {
  background: #dc2626;
  animation: livePulse 1.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.badge-today-done {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fde047;
}
.badge-today-done .status-dot {
  background: #ca8a04;
}

.badge-completed {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
}
.badge-completed .status-dot {
  background: #16a34a;
}

.badge-voting {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-voting .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Tag Hari Ini di kolom Hari & Tanggal */
.tag-today {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
  margin-left: 0.35rem;
}

.row-today {
  background-color: #f0fdf4 !important;
}

.badge-normal {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.badge-normal .status-dot {
  background: #94a3b8;
}

.row-completed {
  background-color: #f8fafc !important;
}
.row-completed td strong {
  color: #334155;
}

/* Changed Time & Day Highlight in front columns */
.highlight-new {
  color: #166534;
  font-weight: 700;
  background: #dcfce7;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid #86efac;
  white-space: nowrap;
}

.old-time-crossed {
  font-size: 0.72rem;
  color: #94a3b8;
  text-decoration: line-through;
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}

/* Action button inside table cell - Harmonized 26px height */
.btn-action-sm {
  font-size: 0.73rem;
  height: 26px;
  padding: 0 0.65rem;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.btn-action-sm:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-action-done {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}
.btn-action-done:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.btn-vote-trigger {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.btn-vote-trigger:hover {
  background: #fef3c7;
  border-color: #f59e0b;
}

/* Subtle Icon Button (e.g. Reset) - Clean circular ghost style */
.btn-icon-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}
.btn-icon-subtle:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
}

.btn-action-undo {
  color: #94a3b8;
  font-size: 0.72rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}
.btn-action-undo:hover {
  color: #ef4444;
}

.btn-secondary {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
}
.btn-secondary:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #dc2626;
}
.btn-danger:hover {
  background: #b91c1c;
}

/* Spin Animation for Refresh */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-anim {
  animation: spin 0.65s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Modern Backdrop & Dialogs */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  overflow-y: auto;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  margin: auto;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  border-top: 4px solid #5a8e48;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.modal-backdrop.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-box-sm {
  max-width: 420px;
  text-align: center;
}

.modal-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.modal-box h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.modal-box p.subtitle {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 1.15rem;
}

/* Modal Voting Options */
.modal-vote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.55rem;
  background: #f8fafc;
  transition: all 0.15s ease;
  gap: 0.5rem;
}

.modal-vote-item:hover {
  border-color: #5a8e48;
  background: #f0fdf4;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.vote-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.vote-item-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.time-range-picker {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.time-range-picker input[type="time"] {
  padding: 0.45rem;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.vote-badge-count {
  background: #f59e0b;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.73rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  margin-left: 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.btn-mini-vote {
  background: #f59e0b;
  color: #ffffff;
  border: none;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.15s ease;
}
.btn-mini-vote:hover {
  background: #d97706;
}

.btn-mini-approve {
  background: #059669;
  color: #ffffff;
  border: none;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.15s ease;
}
.btn-mini-approve:hover {
  background: #047857;
}

/* Modal Icons (Copy Success & Confirm) */
.copy-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.25rem auto 1rem auto;
}

.confirm-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fef2f2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.25rem auto 1rem auto;
}

.confirm-icon-wrap.warning {
  background: #fef9c3;
  color: #ca8a04;
}

/* Toast Container & Notification Cards */
.toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 380px;
  width: calc(100% - 2.5rem);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  color: #1e293b;
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #5a8e48;
  font-size: 0.85rem;
  line-height: 1.4;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.2s ease;
}

.toast.toast-success {
  border-left-color: #22c55e;
}
.toast.toast-error {
  border-left-color: #ef4444;
}
.toast.toast-info {
  border-left-color: #3b82f6;
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-msg {
  flex: 1;
  font-weight: 500;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.toast-close:hover {
  color: #475569;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* ==========================================================
   RESPONSIVE MOBILE CARDS VIEW
   ========================================================== */
.mobile-cards-wrapper {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding: 0.75rem 0.5rem 3rem 0.5rem;
  }

  .page-header {
    padding: 0.85rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .page-header .page-title h1 {
    font-size: 1.1rem;
  }

  /* Header action buttons: Copy image full width on top, copy text & refresh 2 columns below */
  .header-action-group {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem !important;
  }

  .header-action-group #btn-copy-img {
    grid-column: span 2;
  }

  .header-action-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 0.4rem;
    font-size: 0.8rem;
  }

  /* Week Selector Card */
  .week-bar {
    padding: 0.75rem;
    gap: 0.65rem;
  }

  /* Clean 2-row grid: Dropdown full width on top, Prev & Next 50% each side by side below */
  .week-nav-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "selector selector"
      "prev next";
    gap: 0.5rem;
    width: 100%;
  }

  .week-selector-wrapper {
    grid-area: selector;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    width: 100%;
  }

  .week-selector-wrapper label {
    font-size: 0.78rem;
    color: #1e3a15;
    font-weight: 700;
  }

  .week-select-dropdown {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 0.84rem;
    padding: 0.55rem 0.65rem;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .btn-nav-prev {
    grid-area: prev;
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.35rem;
    font-size: 0.8rem;
  }

  .btn-nav-next {
    grid-area: next;
    width: 100%;
    justify-content: center;
    padding: 0.5rem 0.35rem;
    font-size: 0.8rem;
  }

  /* Day Filter Bar with smooth touch swiping and hidden scrollbar */
  .day-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.35rem 0 0.15rem 0;
    border-top: 1px dashed #e2e8f0;
  }

  .day-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .day-filter-bar > span {
    flex-shrink: 0;
    font-size: 0.78rem;
  }

  .filter-pill {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
  }

  /* Agar html2canvas tetap memotret tabel dengan lebar penuh untuk WA */
  .table-wrapper {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1080px;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Mobile Modals (Never clipped, centered or scrolled properly) */
  .modal-backdrop {
    padding: 0.6rem;
    align-items: flex-start;
  }

  .modal-box {
    padding: 1.15rem 1rem;
    max-height: calc(100vh - 1.2rem);
    border-radius: 10px;
    margin: auto;
  }

  .modal-vote-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.75rem;
  }

  .vote-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    width: 100%;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.5rem;
  }

  .btn-mini-vote {
    flex: 1;
    justify-content: center;
    padding: 0.45rem 0.4rem;
    font-size: 0.74rem;
  }

  .btn-mini-approve {
    flex: 1;
    justify-content: center;
    padding: 0.45rem 0.4rem;
    font-size: 0.74rem;
  }

  .time-range-picker {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
  }

  .time-range-picker input[type="time"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 0.82rem;
    padding: 0.4rem 0.25rem;
  }

  /* Mobile touch-friendly adjustments for daily agenda view */
  .day-group-header {
    padding: 0.7rem 0.85rem;
  }

  .day-course-item {
    padding: 0.75rem 0.85rem;
  }

  .course-matkul-title {
    font-size: 0.95rem;
  }

  .btn-action-sm {
    height: 30px;
    font-size: 0.76rem;
    padding: 0 0.75rem;
  }

  .btn-icon-subtle {
    width: 30px;
    height: 30px;
  }
}

/* ==========================================================
   DAILY AGENDA VIEW (GROUPING PER TANGGAL DENGAN KOTAK SUB-CARD)
   ========================================================== */
.day-group-card {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 0.95rem;
  transition: all 0.15s ease;
}

.day-group-card.group-today {
  border-left: 4px solid #16a34a;
  background: #f2f9f3;
  box-shadow: 0 4px 14px -3px rgba(22, 163, 74, 0.14);
}

.day-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  gap: 0.5rem;
}

.day-group-card.group-today .day-group-header {
  background: #ffffff;
  border-bottom: 1.5px solid #dcfce7;
}

.day-group-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e3a15;
  flex-wrap: wrap;
}

.day-group-card.group-today .day-group-title {
  color: #15803d;
}

.day-course-count {
  font-size: 0.72rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #475569;
  padding: 0.18rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.day-group-card.group-today .day-course-count {
  background: #dcfce7;
  color: #166534;
}

/* Container containing sub-cards with clean gap */
.day-group-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
}

/* Individual Course Item as Elevated Sub-Card Box */
.day-course-item {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}

.day-course-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.day-course-item.row-completed {
  background: #f1f5f9;
  opacity: 0.85;
  border-color: #e2e8f0;
}

.day-course-item.row-completed .course-matkul-title {
  color: #64748b;
}

.day-course-item.row-voting {
  background: #fffdf5;
  border-color: #fde68a;
}

.course-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.course-time-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.course-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.course-matkul-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.course-dosen-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #475569;
}

.course-meta-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: #64748b;
  flex-wrap: wrap;
}

.course-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.course-item-actions .actions-cell {
  width: 100%;
  justify-content: flex-end;
}

