:root {
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --card-subtle: #F8FAFC;
  --border: #E2E8F0;
  --text-main: #0A0D14;
  --text-body: #475569;
  --text-muted: #94A3B8;

  --primary: #EF1B18;
  --primary-light: #E76720;
  --primary-bg: #FEF0EE;
  --primary-glow: rgba(239, 27, 24, 0.25);
  --primary-gradient: linear-gradient(135deg, #EF1B18, #E76720);

  --accent-orange: #E76720;
  --accent-orange-bg: #FFF3E8;

  --accent-cyan: #0284C7;
  --accent-cyan-bg: #E0F2FE;

  --accent-green: #10B981;
  --accent-green-bg: #D1FAE5;

  --accent-red: #EF4444;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 2px 8px rgba(10, 13, 20, 0.04);
  --shadow-md: 0 10px 25px -3px rgba(10, 13, 20, 0.07);
  --shadow-dock: 0 20px 40px -6px rgba(10, 13, 20, 0.16);
}

[data-theme="dark"] {
  --bg: #0A0D14;
  --card: #121722;
  --card-subtle: #1A2030;
  --border: #232E42;
  --text-main: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #64748B;

  --primary: #F04037;
  --primary-light: #F0882D;
  --primary-bg: rgba(239, 27, 24, 0.14);
  --primary-glow: rgba(239, 27, 24, 0.3);
  --primary-gradient: linear-gradient(135deg, #F04037, #F0882D);

  --accent-orange: #FB923C;
  --accent-orange-bg: rgba(251, 146, 60, 0.15);

  --accent-cyan: #38BDF8;
  --accent-cyan-bg: rgba(56, 189, 248, 0.15);

  --accent-green: #34D399;
  --accent-green-bg: rgba(52, 211, 153, 0.15);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
  --shadow-dock: 0 20px 40px -6px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

html[data-theme="dark"], body[data-theme="dark"] {
  background-color: #0A0D14;
}

html[data-design="bento"], body[data-design="bento"] {
  background-color: #222531 !important;
}

html[data-design="bento"][data-theme="dark"], body[data-design="bento"][data-theme="dark"] {
  background-color: #12141C !important;
}

html[data-design="student"], body[data-design="student"] {
  background-color: #F0F2F9 !important;
}

html[data-design="student"][data-theme="dark"], body[data-design="student"][data-theme="dark"] {
  background-color: #131520 !important;
}

/* ========================================================
   DESKTOP TOPBAR
   ======================================================== */
.pc-topbar {
  display: none;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.pc-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pc-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card-subtle);
  padding: 8px ;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.pc-nav-item {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-body);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pc-nav-item.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.pc-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================================
   CLEAN MOBILE HEADER
   ======================================================== */
.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 12px;
  max-width: 600px;
  margin: 0 auto;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.avatar-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px var(--primary-glow);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--card);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-wrap:active {
  transform: scale(0.92);
}

.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-greeting {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.user-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease;
}

.header-icon-btn:active {
  transform: scale(0.88);
}

/* ========================================================
   MAIN PAGE CONTAINER (ONE CLEAN VIEW PER FILE)
   ======================================================== */
.main-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 14px 20px 200px;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-action {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-action:active {
  transform: scale(0.92);
}

/* ========================================================
   OVERVIEW METRICS
   ======================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--card);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 114px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.metric-card:active {
  transform: scale(0.96);
}

.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.metric-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-purple .metric-icon-wrap { background: var(--primary-bg); color: var(--primary); }
.card-green .metric-icon-wrap { background: var(--accent-green-bg); color: var(--accent-green); }
.card-orange .metric-icon-wrap { background: var(--accent-orange-bg); color: var(--accent-orange); }
.card-cyan .metric-icon-wrap { background: var(--accent-cyan-bg); color: var(--accent-cyan); }

.metric-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.metric-lbl {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
}

.chevron-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.focus-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease;
}

.focus-card:active {
  transform: scale(0.98);
}

.focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.focus-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.focus-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================================================
   CALENDAR & TIMELINE
   ======================================================== */
.calendar-layout-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 200px;
}

@media (min-width: 900px) {
  .calendar-layout-container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: start;
    max-width: 1040px;
    margin: 0 auto;
  }
  .calendar-card {
    max-width: 480px;
    margin-bottom: 0 !important;
  }
  .timeline-card {
    margin-bottom: 0 !important;
  }
}

.calendar-card {
  background: var(--card);
  border-radius: 22px;
  padding: 18px 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
  width: 100%;
  box-sizing: border-box;
}

.calendar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.cal-header-date {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.cal-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--card-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.cal-nav-btn:active {
  transform: scale(0.86);
}

.weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 12px;
}

.weekday-item {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.weekday-item.is-sunday {
  color: #EF1B18 !important;
}

.day-cell.is-holiday {
  color: #EF1B18 !important;
}

[data-theme="dark"] .day-cell.is-holiday {
  color: #FF5252 !important;
}

.day-cell.selected.is-holiday {
  color: #FFF !important;
}

.holiday-tag-sub {
  font-size: 0.62rem;
  color: #EF1B18;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
  width: 100%;
}

.day-cell {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main) !important;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  min-height: 36px;
  box-sizing: border-box;
}

[data-theme="dark"] .day-cell {
  color: #F8FAFC !important;
}

.day-cell.empty {
  visibility: hidden;
  pointer-events: none;
}

.day-cell:active {
  transform: scale(0.86);
}

.day-cell.selected {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.day-cell.has-event::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-orange);
}

.day-cell.selected::after {
  background: #fff !important;
}

.timeline-card {
  background: var(--card);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 80px;
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.timeline-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.timeline-info {
  flex: 1;
  min-width: 0;
}

.timeline-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-task-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 2px 0 4px;
  word-break: break-word;
}

.timeline-time {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-check-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: transparent;
  flex-shrink: 0;
  margin-top: 4px;
  font-size: 0.95rem;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-check-btn:active {
  transform: scale(0.82);
}

.timeline-check-btn.checked {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
}

/* ========================================================
   PROJECTS & TASKS
   ======================================================== */
.filter-pills {
  display: flex;
  padding: 8px 8px;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 4px;
    scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;  /* IE/Edge */
}
.filter-pills::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.pill-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pill-btn:active {
  transform: scale(0.92);
}

.pill-btn.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: var(--card);
}

.tasks-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.15s ease;
}

.project-card.completed {
  opacity: 0.6;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--card-subtle);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.kebab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  min-width: 32px;
  min-height: 32px;
  justify-content: center;
}

.kebab-btn:active {
  transform: scale(0.85);
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.project-card.completed .project-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.priority-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.dot-prio-Tinggi { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-red); }
.dot-prio-Sedang { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-orange); }
.dot-prio-Rendah { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-cyan); }

.category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 8px;
  border-radius: 6px;
}

.kebab-menu {
  display: none;
  position: absolute;
  top: 48px;
  right: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-dock);
  padding: 6px;
  z-index: 20;
  min-width: 140px;
}

.kebab-menu.show {
  display: block;
}

.kebab-item {
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.kebab-item:hover {
  background: var(--card-subtle);
  color: var(--text-main);
}

.kebab-item.delete {
  color: var(--accent-red);
}

/* ========================================================
   KARL BRAND HERO BANNER & EXPERIENCE ENHANCEMENTS
   ======================================================== */
.karl-hero-banner {
  background: linear-gradient(135deg, rgba(239, 27, 24, 0.08) 0%, rgba(231, 103, 32, 0.06) 100%), var(--card);
  border: 1.5px solid rgba(239, 27, 24, 0.22);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.karl-hero-banner::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(239, 27, 24, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  padding: 3px;
  background: var(--primary-gradient);
  box-shadow: 0 4px 16px var(--primary-glow);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
  display: block;
  background: #000;
}

.hero-text-block {
  flex: 1;
  min-width: 0;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000 !important;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

[data-theme="dark"] .hero-title {
  color: #ffffff !important;
}

.hero-pipe {
  color: var(--primary);
  font-weight: 900;
}

.hero-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.hero-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  display: inline-block;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.karl-avatar-glow {
  border: 2px solid var(--primary) !important;
  box-shadow: 0 0 12px var(--primary-glow) !important;
}

/* ==================== PROGRESS CARD ==================== */
.progress-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress-pct {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--card-subtle);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 8px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==================== UTS SECTION DIVIDER ==================== */
.uts-section-divider {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 16px 0;
  padding: 0 4px;
  box-sizing: border-box;
}

/* Default (Tema Karl) - Merah Karl #EF1B18 */
.uts-divider-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(239, 27, 24, 0.4), rgba(239, 27, 24, 0.6));
}

.uts-divider-line.right {
  background: linear-gradient(90deg, rgba(239, 27, 24, 0.6), rgba(239, 27, 24, 0.4), transparent);
}

.uts-divider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(239, 27, 24, 0.12);
  border: 1px solid rgba(239, 27, 24, 0.35);
  color: #EF1B18;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(239, 27, 24, 0.15);
  transition: all 0.2s ease;
}

[data-theme="dark"] .uts-divider-badge {
  color: #FF5252;
  border-color: rgba(255, 82, 82, 0.4);
  background: rgba(239, 27, 24, 0.18);
}

.uts-divider-badge i {
  font-size: 1rem;
}

/* Tema Student - Ungu Edukasi #6C5DD3 */
body[data-design="student"] .uts-divider-line {
  background: linear-gradient(90deg, transparent, rgba(108, 93, 211, 0.4), rgba(108, 93, 211, 0.7));
}
body[data-design="student"] .uts-divider-line.right {
  background: linear-gradient(90deg, rgba(108, 93, 211, 0.7), rgba(108, 93, 211, 0.4), transparent);
}
body[data-design="student"] .uts-divider-badge {
  color: #6C5DD3;
  border-color: rgba(108, 93, 211, 0.35);
  background: rgba(108, 93, 211, 0.10);
  box-shadow: 0 2px 10px rgba(108, 93, 211, 0.15);
}
body[data-design="student"][data-theme="dark"] .uts-divider-badge {
  color: #8B7BE8;
  border-color: rgba(139, 123, 232, 0.4);
  background: rgba(108, 93, 211, 0.20);
}

/* Tema Bento - Slate / Modern Monokrom Minimalist */
body[data-design="bento"] .uts-divider-line {
  background: linear-gradient(90deg, transparent, rgba(71, 85, 105, 0.3), rgba(71, 85, 105, 0.6));
}
body[data-design="bento"] .uts-divider-line.right {
  background: linear-gradient(90deg, rgba(71, 85, 105, 0.6), rgba(71, 85, 105, 0.3), transparent);
}
body[data-design="bento"] .uts-divider-badge {
  border-radius: 12px;
  color: #334155;
  border-color: rgba(71, 85, 105, 0.25);
  background: #F1F5F9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
body[data-design="bento"][data-theme="dark"] .uts-divider-line {
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.5));
}
body[data-design="bento"][data-theme="dark"] .uts-divider-line.right {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.5), rgba(148, 163, 184, 0.2), transparent);
}
body[data-design="bento"][data-theme="dark"] .uts-divider-badge {
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.15);
  background: #1E2330;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.quick-cat-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge */
}

.quick-cat-row::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

.qcat-chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.2s ease;
}

.qcat-chip:hover {
  color: var(--text-main);
  background: var(--card-subtle);
}

.qcat-chip.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.qcat-chip svg {
  flex-shrink: 0;
}
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  box-shadow: 0 8px 24px var(--primary-glow);
  position: relative;
  overflow: hidden;
  border: 4px solid var(--card);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-label {
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform 0.15s ease;
}

.avatar-upload-label:active {
  transform: scale(0.94);
}

.profile-name-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.profile-bio-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 380px;
}

.avatar-presets {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.preset-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.preset-btn:active {
  transform: scale(0.85);
}

/* ========================================================
   FLOATING DOCK (SYMMETRIC 5-SLOT WITH CENTER +)
   ======================================================== */
.dock-wrap {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
}

.dock {
  pointer-events: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 8px 12px;
  box-shadow: var(--shadow-dock);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: calc(100% - 40px);
  max-width: 370px;
  backdrop-filter: blur(12px);
}

.dock-slot {
  flex: 1;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  cursor: pointer;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, color 0.25s ease;
}

.dock-slot:active {
  transform: scale(0.85);
}

.dock-slot.active {
  background: var(--primary-bg);
  color: var(--primary);
  animation: dockBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-slot.active::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
  animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes dockBounce {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ========================================================
   CHART COMPONENT (PROGRESS & STATS)
   ======================================================== */
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-top: 14px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.chart-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--primary-bg);
  color: var(--primary);
}

.chart-bars-wrap {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 140px;
  padding-top: 20px;
  border-bottom: 1px solid var(--border);
}

.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.bar-track {
  width: 28px;
  height: 100px;
  background: var(--bg-body);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  width: 100%;
  border-radius: 8px;
  transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bar-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.bar-val {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
}

.dock-center-slot {
  flex: 1;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dock-add-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px var(--primary-glow);
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.dock-add-btn svg {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.dock-add-btn:active {
  transform: scale(0.85);
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* ========================================================
   TASK DETAIL ZOOM MODAL (PUSH / SLIDE ANIMATION)
   ======================================================== */
.detail-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.detail-sheet {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-modal-overlay.open .detail-sheet {
  transform: translateY(0) scale(1);
}

@media (min-width: 768px) {
  .detail-modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .detail-sheet {
    border-radius: 24px;
    max-height: 85vh;
    transform: scale(0.9) translateY(20px);
  }
  .detail-modal-overlay.open .detail-sheet {
    transform: scale(1) translateY(0);
  }
}

.sheet-handle-bar {
  width: 44px;
  height: 5px;
  background: var(--border);
  border-radius: 10px;
  margin: 0;
  flex-shrink: 0;
}

.sheet-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 8px;
  border-bottom: 1px solid var(--border);
}

.sheet-icon-btn {
  background: var(--bg-body);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.sheet-icon-btn:hover {
  color: var(--text-main);
  border-color: var(--primary);
}

/* Fullscreen Mode */
.detail-sheet.fullscreen {
  max-width: 100vw !important;
  max-height: 100vh !important;
  height: 100vh !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

/* Center Image Styling */
.detail-center-img-wrap {
  margin: 14px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.detail-center-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

.content-text-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  word-break: break-all;
  display: inline-block;
  transition: opacity 0.2s;
}

.content-text-link:hover {
  opacity: 0.8;
}

.web-fullscreen-btn {
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.web-fullscreen-btn:hover {
  background: var(--primary);
  color: #fff;
}

.iframe-container.web-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 500 !important;
  background: #000 !important;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0 !important;
  display: block !important;
}

.iframe-container.web-fullscreen iframe {
  width: 100vw !important;
  height: 100vh !important;
  border: none !important;
  border-radius: 0 !important;
  display: block !important;
}

/* Floating Close Button for Web Fullscreen */
.floating-close-web {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 550;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.2s;
}

.floating-close-web:active {
  transform: scale(0.92);
}

.iframe-container.web-fullscreen .floating-close-web {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.sheet-content {
  padding: 20px 24px 30px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.detail-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 14px;
}

.detail-block {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.detail-block-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-block-body {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Webview preview frame */
.detail-preview-frame {
  width: 100%;
  height: 380px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 8px;
  background: #fff;
}

/* Upload Dropzone */
.dropzone-box {
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-body);
  transition: all 0.2s;
  margin-bottom: 14px;
}

.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.action-btn-wa {
  flex: 1;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}

.action-btn-close {
  background: var(--bg-body);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  min-height: 44px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.modal-overlay.open {
  display: flex;
}

.modal-card-responsive {
  background: var(--card);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.modal-body-scroll {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

/* Desktop layout: 2 kolom samping-sampingan */
.modal-columns-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 20px;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px 8px;
    align-items: flex-end;
  }
  .modal-card-responsive {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 12px 12px;
  }
  .modal-body-scroll {
    padding: 16px 14px 24px;
  }
  .modal-columns-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .modal-actions-sticky {
    padding: 12px 14px;
    gap: 10px;
  }
  .modal-actions-sticky button {
    flex: 1;
    min-height: 44px;
  }
}

.modal-actions-sticky {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 6px;
  display: block;
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.btn-secondary {
  background: var(--card-subtle);
  border: 1px solid var(--border);
  color: var(--text-body);
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:active {
  transform: scale(0.96);
}

/* ========================================================
   DESKTOP MEDIA QUERY
   ======================================================== */
@media (min-width: 900px) {
  .pc-topbar {
    display: block;
  }
  .mobile-header {
    display: none;
  }
  .dock-wrap {
    display: none;
  }
  .main-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 40px 80px;
    min-height: calc(100vh - 120px);
  }
  .pc-topbar-inner {
    max-width: 1320px;
  }
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .tasks-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ========================================================
   DESIGN SWITCHER MODAL
   ======================================================== */
.design-option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.design-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: var(--card-subtle);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  text-align: left;
  font-family: var(--font);
  color: var(--text-main);
  min-height: 44px;
}

.design-option-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.design-option-card:active {
  transform: scale(0.97);
}

.design-option-card.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.design-option-preview {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  overflow: hidden;
}

.design-preview-crimson {
  background: linear-gradient(135deg, #EF1B18, #E76720);
}

.design-preview-crimson .dp-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
}

.design-preview-crimson .dp-bar1 { width: 80%; }
.design-preview-crimson .dp-bar2 { width: 60%; }
.design-preview-crimson .dp-bar3 { width: 40%; }

.design-preview-bento {
  background: #222531;
}

.design-preview-bento .dp-sq {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.design-preview-bento .dp-sq1 { background: #FFE8ED; }
.design-preview-bento .dp-sq2 { background: #E5F6FF; }
.design-preview-bento .dp-sq3 { background: #F1EAFF; }
.design-preview-bento .dp-sq4 { background: #FFF6E5; }

.design-option-info {
  flex: 1;
  min-width: 0;
}

.design-option-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.design-option-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.design-option-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.design-option-check.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.design-option-check.active::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

/* ========================================================
   MEDICAL BENTO SQUIRCLE THEME
   body[data-design="bento"]
   ======================================================== */

body[data-design="bento"] {
  --bento-outer: #222531;
  --bento-canvas: #FFFFFF;
  --bento-canvas-dark: #161822;
  --bento-radius-lg: 34px;
  --bento-radius-card: 22px;
  --bento-radius-btn: 16px;
  --bento-shadow-canvas: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  --bento-kuliah-bg: #FFE8ED;
  --bento-kuliah-text: #9F1239;
  --bento-homelab-bg: #E5F6FF;
  --bento-homelab-text: #0369A1;
  --bento-coding-bg: #F1EAFF;
  --bento-coding-text: #6B21A8;
  --bento-umum-bg: #FFF6E5;
  --bento-umum-text: #B45309;
  --bento-action-bg: #161822;
  --bento-action-color: #FFFFFF;
}

body[data-design="bento"] {
  background: var(--bento-outer);
}

body[data-design="bento"] .main-content {
  background: var(--bento-canvas);
  border-radius: var(--bento-radius-lg);
  box-shadow: var(--bento-shadow-canvas);
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 24px 20px 120px;
  max-width: 100%;
  position: relative;
}

body[data-design="bento"][data-theme="dark"] {
  background: var(--bento-outer);
}

body[data-design="bento"][data-theme="dark"] .main-content {
  background: var(--bento-canvas-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}

body[data-design="bento"] .mobile-header {
  background: var(--bento-outer);
  padding-top: 24px;
  padding-bottom: 16px;
}

body[data-design="bento"] .mobile-header .user-greeting,
body[data-design="bento"] .mobile-header .user-name {
  color: #E2E8F0;
}

body[data-design="bento"] .mobile-header .user-greeting {
  color: #94A3B8;
}

body[data-design="bento"] .mobile-header .header-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}

body[data-design="bento"] .mobile-header .avatar-wrap {
  border-color: var(--bento-outer);
}

@media (max-width: 899px) {
  body[data-design="bento"] .mobile-header,
  body[data-design="student"] .mobile-header {
    display: flex !important;
  }
}

/* Bento floating canvas on desktop */
@media (min-width: 900px) {
  body[data-design="bento"] .main-content {
    max-width: 1320px !important;
    border-radius: 36px;
    margin: 28px auto 40px !important;
    padding: 36px 40px 60px;
    min-height: calc(100vh - 140px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.06);
  }

  body[data-design="bento"] .pc-topbar {
    background: #232838;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
  }

  body[data-design="bento"] .pc-topbar .brand-name,
  body[data-design="bento"] .pc-topbar .pc-nav-item {
    color: #CBD5E1;
  }

  body[data-design="bento"] .pc-topbar .pc-nav-item.active {
    background: #FFE8ED;
    color: #9F1239;
    font-weight: 800;
  }

  body[data-design="bento"] .pc-topbar .pc-nav-links {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }
}

/* Bento squircle cards */
body[data-design="bento"] .metric-card,
body[data-design="bento"] .project-card,
body[data-design="bento"] .focus-card,
body[data-design="bento"] .calendar-card,
body[data-design="bento"] .timeline-card,
body[data-design="bento"] .chart-card,
body[data-design="bento"] .progress-card,
body[data-design="bento"] .profile-card {
  border-radius: var(--bento-radius-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

body[data-design="bento"][data-theme="dark"] .metric-card,
body[data-design="bento"][data-theme="dark"] .project-card,
body[data-design="bento"][data-theme="dark"] .focus-card,
body[data-design="bento"][data-theme="dark"] .calendar-card,
body[data-design="bento"][data-theme="dark"] .timeline-card,
body[data-design="bento"][data-theme="dark"] .chart-card,
body[data-design="bento"][data-theme="dark"] .progress-card,
body[data-design="bento"][data-theme="dark"] .profile-card {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Bento pastel category tags */
body[data-design="bento"] .category-tag[data-cat="Kuliah"],
body[data-design="bento"] .category-tag.cat-kuliah {
  background: var(--bento-kuliah-bg);
  color: var(--bento-kuliah-text);
}

body[data-design="bento"] .category-tag[data-cat="Homelab"],
body[data-design="bento"] .category-tag.cat-homelab {
  background: var(--bento-homelab-bg);
  color: var(--bento-homelab-text);
}

body[data-design="bento"] .category-tag[data-cat="Coding"],
body[data-design="bento"] .category-tag.cat-coding {
  background: var(--bento-coding-bg);
  color: var(--bento-coding-text);
}

body[data-design="bento"] .category-tag[data-cat="Umum"],
body[data-design="bento"] .category-tag.cat-umum {
  background: var(--bento-umum-bg);
  color: var(--bento-umum-text);
}

/* Bento quick category chips pastel */
body[data-design="bento"] .qcat-chip[data-cat="Kuliah"] {
  background: var(--bento-kuliah-bg);
  color: var(--bento-kuliah-text);
  border-color: transparent;
}

body[data-design="bento"] .qcat-chip[data-cat="Homelab"] {
  background: var(--bento-homelab-bg);
  color: var(--bento-homelab-text);
  border-color: transparent;
}

body[data-design="bento"] .qcat-chip[data-cat="Coding"] {
  background: var(--bento-coding-bg);
  color: var(--bento-coding-text);
  border-color: transparent;
}

body[data-design="bento"] .qcat-chip[data-cat="Umum"] {
  background: var(--bento-umum-bg);
  color: var(--bento-umum-text);
  border-color: transparent;
}

body[data-design="bento"] .qcat-chip.active {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: scale(1.04);
}

/* Bento timeline icon boxes pastel */
body[data-design="bento"] .timeline-icon-box {
  border-radius: 14px;
}

/* Bento metric icon backgrounds pastel */
body[data-design="bento"] .card-purple .metric-icon-wrap {
  background: var(--bento-kuliah-bg);
  color: var(--bento-kuliah-text);
}

body[data-design="bento"] .card-green .metric-icon-wrap {
  background: #D1FAE5;
  color: #059669;
}

body[data-design="bento"] .card-orange .metric-icon-wrap {
  background: var(--bento-umum-bg);
  color: var(--bento-umum-text);
}

body[data-design="bento"] .card-cyan .metric-icon-wrap {
  background: var(--bento-homelab-bg);
  color: var(--bento-homelab-text);
}

/* Bento action buttons: medical appointment card style */
body[data-design="bento"] .dock-add-btn {
  background: var(--bento-action-bg);
  color: var(--bento-action-color);
  box-shadow: 0 6px 20px rgba(22, 24, 34, 0.3);
}

body[data-design="bento"] .dock {
  background: #FFFFFF;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
}

body[data-design="bento"] .dock-slot {
  color: #64748B;
}

body[data-design="bento"] .dock-slot.active {
  background: #FFE8ED;
  color: #9F1239;
  font-weight: 800;
  border-radius: 16px;
}

body[data-design="bento"] .dock-slot.active::after {
  background: #9F1239;
  box-shadow: 0 0 8px rgba(159, 18, 57, 0.4);
}

body[data-design="bento"][data-theme="dark"] .dock {
  background: #232838 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

body[data-design="bento"][data-theme="dark"] .dock-slot {
  color: #94A3B8;
}

body[data-design="bento"][data-theme="dark"] .dock-slot.active {
  background: #FFE8ED !important;
  color: #9F1239 !important;
  font-weight: 800;
  border-radius: 16px;
}

body[data-design="bento"][data-theme="dark"] .dock-slot.active::after {
  background: #FF8585 !important;
  box-shadow: 0 0 10px #FF8585 !important;
}

body[data-design="bento"][data-theme="dark"] .dock-add-btn {
  background: #FFE8ED !important;
  color: #9F1239 !important;
  box-shadow: 0 4px 16px rgba(255, 232, 237, 0.35) !important;
}

/* Bento header icon buttons: dark circle, white icon */
body[data-design="bento"] .header-icon-btn,
body[data-design="bento"] .cal-nav-btn,
body[data-design="bento"] .sheet-icon-btn {
  background: var(--bento-action-bg);
  color: var(--bento-action-color);
  border-color: transparent;
  border-radius: 50%;
}

body[data-design="bento"][data-theme="dark"] .header-icon-btn,
body[data-design="bento"][data-theme="dark"] .cal-nav-btn,
body[data-design="bento"][data-theme="dark"] .sheet-icon-btn {
  background: #FFFFFF;
  color: var(--bento-action-bg);
}

/* Bento pill filter buttons */
body[data-design="bento"] .pill-btn {
  border-radius: var(--bento-radius-btn);
}

body[data-design="bento"] .pill-btn.active {
  background: var(--bento-action-bg);
  border-color: var(--bento-action-bg);
  color: var(--bento-action-color);
}

/* Bento karl hero banner */
body[data-design="bento"] .karl-hero-banner {
  border-radius: var(--bento-radius-card);
  border-color: rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, var(--bento-kuliah-bg) 0%, var(--bento-homelab-bg) 50%, var(--bento-coding-bg) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

body[data-design="bento"] .karl-hero-banner::after {
  background: radial-gradient(circle, rgba(107, 33, 168, 0.12) 0%, transparent 70%);
}

body[data-design="bento"] .hero-logo-wrap {
  background: var(--bento-action-bg);
  box-shadow: 0 4px 16px rgba(22, 24, 34, 0.2);
}

body[data-design="bento"] .hero-pipe {
  color: var(--bento-coding-text);
}

/* Bento progress bar */
body[data-design="bento"] .progress-fill {
  background: linear-gradient(135deg, var(--bento-kuliah-text), var(--bento-coding-text));
}

/* Bento primary button */
body[data-design="bento"] .btn-primary {
  background: var(--bento-action-bg);
  box-shadow: 0 4px 14px rgba(22, 24, 34, 0.2);
}

body[data-design="bento"][data-theme="dark"] .btn-primary {
  background: #FFFFFF;
  color: var(--bento-action-bg);
}

/* Bento section action link */
body[data-design="bento"] .section-action {
  background: var(--bento-coding-bg);
  color: var(--bento-coding-text);
}

/* Bento focus badge */
body[data-design="bento"] .focus-badge {
  color: var(--bento-kuliah-text);
}

/* Bento avatar glow */
body[data-design="bento"] .karl-avatar-glow {
  border-color: var(--bento-coding-text) !important;
  box-shadow: 0 0 12px rgba(107, 33, 168, 0.25) !important;
}

/* Bento kebab menu */
body[data-design="bento"] .kebab-menu {
  border-radius: var(--bento-radius-btn);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

/* Bento detail modal */
body[data-design="bento"] .detail-sheet {
  border-radius: 32px 32px 0 0;
}

@media (min-width: 768px) {
  body[data-design="bento"] .detail-sheet {
    border-radius: 28px;
  }
}

body[data-design="bento"] .modal-card-responsive {
  border-radius: 24px;
}

/* Bento date badge */
body[data-design="bento"] .date-badge {
  border-radius: 12px;
}

/* Bento mobile responsive overrides */
@media (max-width: 600px) {
  body[data-design="bento"] .main-content {
    border-radius: 28px 28px 0 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 200px;
  }

  body[data-design="bento"] .design-option-card {
    min-height: 44px;
  }
}

body[data-design="bento"] .metrics-grid {
  gap: 12px;
}

body[data-design="bento"] .metric-card {
  border-radius: 20px;
}

/* ========================================================
   DESIGN SWITCHER: STUDENT PREVIEW
   ======================================================== */
.design-preview-student {
  background: linear-gradient(135deg, #6C5DD3, #8B7BE8);
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.design-preview-student .dp-pill {
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.55);
}

.design-preview-student .dp-pill1 { width: 75%; }
.design-preview-student .dp-pill2 { width: 55%; }
.design-preview-student .dp-pill3 { width: 40%; }

/* ========================================================
   STUDENT COURSE HUB THEME
   body[data-design="student"]
   ======================================================== */

body[data-design="student"] {
  --stu-bg: #F0F2F9;
  --stu-bg-dark: #131520;
  --stu-primary: #6C5DD3;
  --stu-primary-light: #8B7BE8;
  --stu-primary-bg: rgba(108, 93, 211, 0.10);
  --stu-primary-glow: rgba(108, 93, 211, 0.25);
  --stu-primary-gradient: linear-gradient(135deg, #6C5DD3, #8B7BE8);
  --stu-card: #FFFFFF;
  --stu-card-dark: #1E2030;
  --stu-card-subtle: #F6F7FC;
  --stu-card-subtle-dark: #262840;
  --stu-border: #E0E3EF;
  --stu-border-dark: #2E3148;
  --stu-text-main: #1A1D2E;
  --stu-text-body: #5A5F7A;
  --stu-text-muted: #9197B3;
  --stu-kuliah-bg: #EDE9FF;
  --stu-kuliah-text: #4D3FA6;
  --stu-homelab-bg: #E0F4FF;
  --stu-homelab-text: #0C6BA1;
  --stu-coding-bg: #FFF0E8;
  --stu-coding-text: #C2590A;
  --stu-umum-bg: #E6FAF0;
  --stu-umum-text: #0E7B50;

  --bg: var(--stu-bg);
  --card: var(--stu-card);
  --card-subtle: var(--stu-card-subtle);
  --border: var(--stu-border);
  --text-main: var(--stu-text-main);
  --text-body: var(--stu-text-body);
  --text-muted: var(--stu-text-muted);
  --primary: var(--stu-primary);
  --primary-light: var(--stu-primary-light);
  --primary-bg: var(--stu-primary-bg);
  --primary-glow: var(--stu-primary-glow);
  --primary-gradient: var(--stu-primary-gradient);
  --shadow-sm: 0 2px 10px rgba(108, 93, 211, 0.06);
  --shadow-md: 0 10px 28px -4px rgba(108, 93, 211, 0.10);
  --shadow-dock: 0 16px 40px -6px rgba(108, 93, 211, 0.18);
}

body[data-design="student"][data-theme="dark"] {
  --bg: var(--stu-bg-dark);
  --card: var(--stu-card-dark);
  --card-subtle: var(--stu-card-subtle-dark);
  --border: var(--stu-border-dark);
  --text-main: #F0F1F8;
  --text-body: #B4B9D4;
  --text-muted: #6C7199;
  --primary: #8B7BE8;
  --primary-light: #A99BF2;
  --primary-bg: rgba(139, 123, 232, 0.14);
  --primary-glow: rgba(139, 123, 232, 0.30);
  --primary-gradient: linear-gradient(135deg, #8B7BE8, #A99BF2);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 10px 28px -4px rgba(0, 0, 0, 0.50);
  --shadow-dock: 0 16px 40px -6px rgba(0, 0, 0, 0.60);
}

/* Student card radius */
body[data-design="student"] .metric-card,
body[data-design="student"] .project-card,
body[data-design="student"] .focus-card,
body[data-design="student"] .calendar-card,
body[data-design="student"] .timeline-card,
body[data-design="student"] .chart-card,
body[data-design="student"] .progress-card,
body[data-design="student"] .profile-card {
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(108, 93, 211, 0.07);
}

body[data-design="student"][data-theme="dark"] .metric-card,
body[data-design="student"][data-theme="dark"] .project-card,
body[data-design="student"][data-theme="dark"] .focus-card,
body[data-design="student"][data-theme="dark"] .calendar-card,
body[data-design="student"][data-theme="dark"] .timeline-card,
body[data-design="student"][data-theme="dark"] .chart-card,
body[data-design="student"][data-theme="dark"] .progress-card,
body[data-design="student"][data-theme="dark"] .profile-card {
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

/* Student pill badges */
body[data-design="student"] .category-tag,
body[data-design="student"] .date-badge,
body[data-design="student"] .focus-badge,
body[data-design="student"] .chart-badge {
  border-radius: 9999px;
  padding: 3px 12px;
}

body[data-design="student"] .pill-btn {
  border-radius: 9999px;
}

body[data-design="student"] .qcat-chip {
  border-radius: 9999px;
}

/* Student pastel category tags */
body[data-design="student"] .category-tag[data-cat="Kuliah"],
body[data-design="student"] .category-tag.cat-kuliah {
  background: var(--stu-kuliah-bg);
  color: var(--stu-kuliah-text);
}

body[data-design="student"] .category-tag[data-cat="Homelab"],
body[data-design="student"] .category-tag.cat-homelab {
  background: var(--stu-homelab-bg);
  color: var(--stu-homelab-text);
}

body[data-design="student"] .category-tag[data-cat="Coding"],
body[data-design="student"] .category-tag.cat-coding {
  background: var(--stu-coding-bg);
  color: var(--stu-coding-text);
}

body[data-design="student"] .category-tag[data-cat="Umum"],
body[data-design="student"] .category-tag.cat-umum {
  background: var(--stu-umum-bg);
  color: var(--stu-umum-text);
}

/* Student quick cat chips pastel */
body[data-design="student"] .qcat-chip[data-cat="Kuliah"] {
  background: var(--stu-kuliah-bg);
  color: var(--stu-kuliah-text);
  border-color: transparent;
}

body[data-design="student"] .qcat-chip[data-cat="Homelab"] {
  background: var(--stu-homelab-bg);
  color: var(--stu-homelab-text);
  border-color: transparent;
}

body[data-design="student"] .qcat-chip[data-cat="Coding"] {
  background: var(--stu-coding-bg);
  color: var(--stu-coding-text);
  border-color: transparent;
}

body[data-design="student"] .qcat-chip[data-cat="Umum"] {
  background: var(--stu-umum-bg);
  color: var(--stu-umum-text);
  border-color: transparent;
}

body[data-design="student"] .qcat-chip.active {
  box-shadow: 0 4px 14px var(--stu-primary-glow);
  transform: scale(1.04);
}

/* Student hero banner: campus greeting */
body[data-design="student"] .karl-hero-banner {
  background: linear-gradient(135deg, rgba(108, 93, 211, 0.10) 0%, rgba(139, 123, 232, 0.06) 100%), var(--card);
  border-color: rgba(108, 93, 211, 0.18);
  border-radius: 22px;
  box-shadow: 0 6px 20px var(--stu-primary-glow);
}

body[data-design="student"] .karl-hero-banner::after {
  background: radial-gradient(circle, rgba(108, 93, 211, 0.20) 0%, transparent 70%);
}

body[data-design="student"] .hero-logo-wrap {
  background: var(--stu-primary-gradient);
  box-shadow: 0 4px 16px var(--stu-primary-glow);
}

body[data-design="student"] .hero-pipe {
  color: var(--stu-primary);
}

/* Student mobile header greeting */
body[data-design="student"] .user-greeting::after {
  content: 'Hi, Karl!';
}

body[data-design="student"] .user-greeting {
  font-size: 0;
  line-height: 0;
}

body[data-design="student"] .user-greeting::after {
  font-size: 0.76rem;
  line-height: normal;
  font-weight: 600;
  color: var(--stu-primary);
  letter-spacing: 0.02em;
  text-transform: none;
}

body[data-design="student"] .user-name::after {
  content: "What are your plans for today?";
}

body[data-design="student"] .user-name {
  font-size: 0;
  line-height: 0;
}

body[data-design="student"] .user-name::after {
  font-size: 1.05rem;
  line-height: normal;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Student avatar glow */
body[data-design="student"] .karl-avatar-glow {
  border-color: var(--stu-primary) !important;
  box-shadow: 0 0 12px var(--stu-primary-glow) !important;
}

body[data-design="student"] .avatar-wrap {
  background: var(--stu-primary-gradient);
  box-shadow: 0 4px 14px var(--stu-primary-glow);
}

/* Student dock */
body[data-design="student"] .dock {
  border-radius: 9999px;
  box-shadow: 0 12px 36px rgba(108, 93, 211, 0.14), 0 2px 8px rgba(108, 93, 211, 0.06);
}

body[data-design="student"][data-theme="dark"] .dock {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.50);
}

body[data-design="student"] .dock-add-btn {
  background: var(--stu-primary-gradient);
  box-shadow: 0 6px 20px var(--stu-primary-glow);
}

body[data-design="student"] .dock-slot.active {
  background: var(--stu-primary-bg);
  color: var(--stu-primary);
}

body[data-design="student"] .dock-slot.active::after {
  background: var(--stu-primary);
  box-shadow: 0 0 8px var(--stu-primary-glow);
}

/* Student metric icon wraps */
body[data-design="student"] .card-purple .metric-icon-wrap {
  background: var(--stu-kuliah-bg);
  color: var(--stu-kuliah-text);
}

body[data-design="student"] .card-green .metric-icon-wrap {
  background: var(--stu-umum-bg);
  color: var(--stu-umum-text);
}

body[data-design="student"] .card-orange .metric-icon-wrap {
  background: var(--stu-coding-bg);
  color: var(--stu-coding-text);
}

body[data-design="student"] .card-cyan .metric-icon-wrap {
  background: var(--stu-homelab-bg);
  color: var(--stu-homelab-text);
}

/* Student timeline icon box */
body[data-design="student"] .timeline-icon-box {
  border-radius: 14px;
  background: var(--stu-primary-bg);
  color: var(--stu-primary);
}

/* Student section action */
body[data-design="student"] .section-action {
  background: var(--stu-primary-bg);
  color: var(--stu-primary);
  border-radius: 9999px;
}

/* Student focus badge */
body[data-design="student"] .focus-badge {
  color: var(--stu-primary);
}

/* Student progress bar */
body[data-design="student"] .progress-fill {
  background: var(--stu-primary-gradient);
}

body[data-design="student"] .progress-pct {
  color: var(--stu-primary);
}

/* Student buttons */
body[data-design="student"] .btn-primary {
  background: var(--stu-primary-gradient);
  box-shadow: 0 4px 14px var(--stu-primary-glow);
}

body[data-design="student"] .pill-btn.active {
  background: var(--stu-primary);
  border-color: var(--stu-primary);
  color: #fff;
}

/* Student header icon btn */
body[data-design="student"] .header-icon-btn {
  border-radius: 50%;
}

/* Student detail sheet */
body[data-design="student"] .detail-sheet {
  border-radius: 28px 28px 0 0;
}

@media (min-width: 768px) {
  body[data-design="student"] .detail-sheet {
    border-radius: 22px;
  }
}

body[data-design="student"] .modal-card-responsive {
  border-radius: 22px;
}

/* Student kebab menu */
body[data-design="student"] .kebab-menu {
  border-radius: 16px;
}

/* Student desktop topbar */
@media (min-width: 900px) {
  body[data-design="student"] .pc-topbar {
    border-bottom-color: var(--stu-border);
  }

  body[data-design="student"] .pc-nav-item.active {
    color: var(--stu-primary);
  }

  body[data-design="student"] .pc-nav-links {
    border-radius: 9999px;
  }

  body[data-design="student"] .pc-nav-item {
    border-radius: 9999px;
  }
}

/* ========================================================
   SETTINGS PAGE & THEME ENGINE STYLING
   ======================================================== */
.settings-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.profile-banner-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(239, 27, 24, 0.08) 0%, rgba(231, 103, 32, 0.06) 100%), var(--card);
  border: 1.5px solid rgba(239, 27, 24, 0.2);
}

.profile-banner-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  padding: 3px;
  background: var(--primary-gradient);
  box-shadow: 0 4px 16px var(--primary-glow);
  flex-shrink: 0;
}

.profile-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  display: block;
}

.profile-banner-details {
  flex: 1;
  min-width: 0;
}

.profile-badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.pill-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  display: inline-block;
}

.pill-primary {
  background: var(--primary-gradient);
  color: #fff;
}

.pill-neutral {
  background: var(--card-subtle);
  border: 1px solid var(--border);
  color: var(--text-body);
}

.profile-user-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.profile-meta-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.design-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.design-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.design-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.design-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), 0 8px 24px var(--primary-glow);
}

.design-card-preview {
  height: 120px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-karl-style {
  background: #0A0D14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-mini-banner {
  width: 90%;
  height: 48px;
  background: linear-gradient(135deg, #EF1B18, #E76720);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 10px;
}

.preview-mini-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
}

.preview-mini-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pml-1 { width: 70%; height: 6px; background: #fff; border-radius: 3px; }
.pml-2 { width: 40%; height: 4px; background: rgba(255, 255, 255, 0.7); border-radius: 2px; }

.preview-bento-style {
  background: #222531;
}

.preview-bento-shell {
  width: 90%;
  height: 90px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 8px;
  display: flex;
}

.preview-bento-board {
  width: 100%;
  display: flex;
  gap: 6px;
}

.pbb-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pbb-sq { border-radius: 8px; flex: 1; }
.sq-rose { background: #FFE8ED; }
.sq-blue { background: #E5F6FF; }
.sq-lavender { background: #F1EAFF; }
.sq-amber { background: #FFF6E5; }

.preview-student-style {
  background: #F0F2F9;
}

.preview-student-board {
  width: 90%;
  height: 90px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(108, 93, 211, 0.1);
}

.psb-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.psb-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6C5DD3;
}

.psb-text {
  width: 60%;
  height: 6px;
  border-radius: 3px;
  background: #1B1D28;
}

.psb-rings {
  display: flex;
  gap: 6px;
}

.psb-circle {
  flex: 1;
  height: 28px;
  border-radius: 8px;
}

.psb-violet { background: #F1EAFF; border: 1.5px solid #6C5DD3; }
.psb-mint { background: #E6FBF5; border: 1.5px solid #50D1AA; }

.design-card-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.design-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.design-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.design-status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #10B981;
  padding: 2px 8px;
  border-radius: 9999px;
  display: none;
}

.design-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
}

.design-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag-pill {
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--card-subtle);
  border: 1px solid var(--border);
  color: var(--text-body);
  padding: 2px 8px;
  border-radius: 6px;
}

.btn-use-design {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-subtle);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.2s;
}

.btn-use-design:hover {
  background: var(--border);
}

.btn-use-design.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* ========================================================
   MEDICAL BENTO DASHBOARD LAYOUT & COMPONENTS
   ======================================================== */
.bento-outer-container {
  width: 100%;
}

.bento-grid-wrapper {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .bento-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.bento-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.bento-section-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.bento-add-mini-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #161822;
  color: #fff;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.bento-buckets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bento-bucket-card {
  padding: 16px 12px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.bento-bucket-card:hover {
  transform: translateY(-2px);
}

.bento-bk-kuliah { background: #FFE8ED; color: #9F1239; }
.bento-bk-coding { background: #F1EAFF; color: #6B21A8; }
.bento-bk-homelab { background: #E5F6FF; color: #0369A1; }
.bento-bk-umum { background: #FFF6E5; color: #B45309; }

.bucket-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.bucket-name {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.bucket-count {
  font-size: 0.72rem;
  opacity: 0.85;
  font-weight: 600;
}

.bento-top-row {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .bento-top-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.bento-focus-card {
  background: #FFE8ED;
  border: 1px solid rgba(255, 133, 133, 0.2);
  border-radius: 24px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

[data-theme="dark"] .bento-focus-card {
  background: #251820 !important;
  border: 1.5px solid rgba(255, 133, 133, 0.3) !important;
}

[data-theme="dark"] .bento-fc-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .bento-fc-badge {
  color: #FFA5B5 !important;
}

[data-theme="dark"] .bento-fc-meta {
  color: #94A3B8 !important;
}

[data-theme="dark"] .bento-prio-tag {
  background: rgba(255, 133, 133, 0.2) !important;
  color: #FFA5B5 !important;
}

[data-theme="dark"] .bento-fc-action {
  background: #FFFFFF !important;
  color: #161822 !important;
}

/* Dark mode bucket cards */
[data-theme="dark"] .bento-bk-kuliah { background: #251820 !important; color: #FFA5B5 !important; border: 1px solid rgba(255, 133, 133, 0.2); }
[data-theme="dark"] .bento-bk-coding { background: #1F182E !important; color: #D8B4FE !important; border: 1px solid rgba(168, 85, 247, 0.2); }
[data-theme="dark"] .bento-bk-homelab { background: #122234 !important; color: #7DD3FC !important; border: 1px solid rgba(56, 189, 248, 0.2); }
[data-theme="dark"] .bento-bk-umum { background: #272015 !important; color: #FCD34D !important; border: 1px solid rgba(245, 158, 11, 0.2); }
[data-theme="dark"] .bucket-icon-circle { background: rgba(255, 255, 255, 0.08) !important; color: #FFF !important; }
[data-theme="dark"] .bento-add-mini-btn { background: #FFFFFF !important; color: #161822 !important; }

[data-theme="dark"] .bento-metric-tile {
  background: #1A1F2C;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .bento-appointment-card {
  background: #1A1F2C;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .bac-title {
  color: #F8FAFC;
}
[data-theme="dark"] .bac-sch-val {
  color: #CBD5E1;
}
[data-theme="dark"] .bac-btn-round {
  background: #2D3344;
  color: #FFF;
}
[data-theme="dark"] .bac-btn-round:hover {
  background: #FFFFFF;
  color: #161822;
}
.bento-focus-card{
  border-radius: 24px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-fc-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #9F1239;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.bento-fc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1A1C24;
  margin-bottom: 4px;
  line-height: 1.35;
}

.bento-fc-meta {
  font-size: 0.75rem;
  color: #8E93A3;
  margin-bottom: 12px;
}

.bento-fc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bento-prio-tag {
  font-size: 0.7rem;
  font-weight: 700;
  background: #fff;
  color: #9F1239;
  padding: 3px 10px;
  border-radius: 9999px;
}

.bento-fc-action {
  background: #161822;
  color: #fff;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  min-height: 36px;
}

.bento-metric-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}

.bento-tile-green .bento-tile-icon { background: #E6FBF5; color: #10B981; }
.bento-tile-blue .bento-tile-icon { background: #E5F6FF; color: #0284C7; }

.bento-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.bento-tile-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.bento-tile-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.bento-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.bento-appointment-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bento-appointment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.bac-main {
  flex: 1;
  min-width: 0;
}

.bac-top-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.bac-cat-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.bac-cat-pill.cat-kuliah { background: #FFE8ED; color: #9F1239; }
.bac-cat-pill.cat-coding { background: #F1EAFF; color: #6B21A8; }
.bac-cat-pill.cat-homelab { background: #E5F6FF; color: #0369A1; }
.bac-cat-pill.cat-umum { background: #FFF6E5; color: #B45309; }

.bac-prio-indicator {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.bac-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.35;
}

.bac-schedule-row {
  display: flex;
  gap: 16px;
}

.bac-sch-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

.bac-sch-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-body);
}

.bac-actions-col {
  display: flex;
  gap: 10px;
  align-items: center;
}

.bac-btn-round {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #161822;
  color: #fff;
  border: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s, background-color 0.18s;
}

.bac-btn-round:active {
  transform: scale(0.92);
}

.bento-cat-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ========================================================
   STUDENT COURSE HUB LAYOUT & COMPONENTS
   ======================================================== */
.student-hero-greeting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid rgba(108, 93, 211, 0.15);
  border-radius: 24px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(108, 93, 211, 0.06);
}

.student-greeting-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.student-avatar-box {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(108, 93, 211, 0.2);
}

.student-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.student-greeting-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1B1D28;
  line-height: 1.2;
}

.student-greeting-sub {
  font-size: 0.8rem;
  color: #8C97AC;
  margin-top: 2px;
}

.student-btn-new-board {
  background: #6C5DD3;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 4px 14px rgba(108, 93, 211, 0.25);
}

.student-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  .student-shortcuts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.student-sc-card {
  background: #FFFFFF;
  border: 1px solid rgba(108, 93, 211, 0.1);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.student-sc-card:hover {
  transform: translateY(-2px);
  border-color: #6C5DD3;
}

.student-sc-icon {
  font-size: 1.35rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.student-sc-add .student-sc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6C5DD3;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(108, 93, 211, 0.35);
  margin-bottom: 8px;
}

.student-sc-add .student-sc-icon svg {
  stroke: #FFFFFF;
  display: block;
}

.student-sc-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1B1D28;
  margin-bottom: 2px;
}

.student-sc-desc {
  font-size: 0.7rem;
  color: #8C97AC;
}

.student-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

@media (max-width: 820px) {
  .student-content-grid {
    grid-template-columns: 1fr;
  }
}

.student-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.student-column-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1B1D28;
}

.student-link-all {
  font-size: 0.78rem;
  color: #6C5DD3;
  font-weight: 700;
  cursor: pointer;
}

.student-pct-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: #F1EAFF;
  color: #6C5DD3;
  padding: 3px 10px;
  border-radius: 9999px;
}

.student-assignments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.student-task-row {
  background: #FFFFFF;
  border: 1px solid rgba(108, 93, 211, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: transform 0.2s;
}

.student-task-row:hover {
  transform: translateY(-2px);
  border-color: #6C5DD3;
}

.str-checkbox {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.str-check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #8C97AC;
  transition: all 0.2s;
}

.str-checkbox:hover .str-check-circle {
  border-color: #6C5DD3;
  background: rgba(108, 93, 211, 0.1);
}

.str-info {
  flex: 1;
  min-width: 0;
}

.str-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1B1D28;
  margin-bottom: 4px;
}

.str-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.str-cat-pill {
  font-size: 0.65rem;
  font-weight: 700;
  background: #F0F2F9;
  color: #6C5DD3;
  padding: 1px 8px;
  border-radius: 9999px;
}

.str-due {
  font-size: 0.7rem;
  color: #8C97AC;
}

.str-prio {
  font-size: 0.65rem;
  font-weight: 700;
  color: #FF8585;
}

.str-action-btn {
  background: #F0F2F9;
  border: none;
  color: #1B1D28;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
}

.student-progress-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.student-subject-card {
  background: #FFFFFF;
  border: 1px solid rgba(108, 93, 211, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
}

.student-sb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.student-sb-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1B1D28;
}

.student-sb-score {
  font-size: 0.75rem;
  font-weight: 800;
  color: #6C5DD3;
  font-family: 'JetBrains Mono', monospace;
}

.student-sb-track {
  width: 100%;
  height: 8px;
  background: #F0F2F9;
  border-radius: 9999px;
  overflow: hidden;
}

.student-sb-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.fill-violet { background: #6C5DD3; }
.fill-cyan { background: #0284C7; }
.fill-amber { background: #F59E0B; }

.student-motivation-banner {
  background: linear-gradient(135deg, #6C5DD3, #5B67F6);
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  margin-top: 4px;
}

.smb-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 6px;
}

.smb-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.smb-text {
  font-size: 0.75rem;
  opacity: 0.9;
  line-height: 1.45;
}

/* ========================================================
   UNIVERSAL CARD & BOX STYLING ACROSS ALL PAGES
   (Home, Tasks, Calendar, Settings)
   ======================================================== */
body[data-design="student"] .calendar-card,
body[data-design="student"] .timeline-card,
body[data-design="student"] .settings-card,
body[data-design="student"] .project-card,
body[data-design="student"] .student-task-row,
body[data-design="student"] .filter-pills {
  background: #FFFFFF !important;
  border-radius: 20px;
  border: 1px solid rgba(108, 93, 211, 0.12) !important;
  box-shadow: 0 4px 16px rgba(108, 93, 211, 0.05) !important;
}

body[data-design="student"][data-theme="dark"] .calendar-card,
body[data-design="student"][data-theme="dark"] .timeline-card,
body[data-design="student"][data-theme="dark"] .settings-card,
body[data-design="student"][data-theme="dark"] .project-card,
body[data-design="student"][data-theme="dark"] .student-task-row,
body[data-design="student"][data-theme="dark"] .filter-pills {
  background: #1E2030 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

body[data-design="bento"] .calendar-card,
body[data-design="bento"] .timeline-card,
body[data-design="bento"] .settings-card,
body[data-design="bento"] .project-card,
body[data-design="bento"] .bento-appointment-card,
body[data-design="bento"] .filter-pills {
  background: #FFFFFF !important;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

body[data-design="bento"][data-theme="dark"] .calendar-card,
body[data-design="bento"][data-theme="dark"] .timeline-card,
body[data-design="bento"][data-theme="dark"] .settings-card,
body[data-design="bento"][data-theme="dark"] .project-card,
body[data-design="bento"][data-theme="dark"] .bento-appointment-card,
body[data-design="bento"][data-theme="dark"] .filter-pills {
  background: #1A1F2C !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

/* ========================================================
   BENTO STRIPES INDICATOR (REPLACES 3 BUTTONS)
   ======================================================== */
.bac-stripes-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  padding: 8px 10px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bento-appointment-card:hover .bac-stripes-col {
  background: rgba(22, 24, 34, 0.08);
  transform: translateX(2px);
}

.bac-stripe-line {
  display: block;
  width: 100%;
  height: 2.5px;
  border-radius: 9999px;
  background: #64748B;
  transition: all 0.2s ease;
}

.bac-stripe-line:nth-child(2) {
  width: 70%;
}

.bac-stripe-line:nth-child(3) {
  width: 85%;
}

[data-theme="dark"] .bac-stripes-col {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .bac-stripe-line {
  background: #94A3B8;
}

[data-theme="dark"] .bento-appointment-card:hover .bac-stripes-col {
  background: rgba(255, 255, 255, 0.12);
}

/* ========================================================
   TASK BUCKETS PERFECT CENTERING & ICON SYMMETRY
   ======================================================== */
.bento-col-buckets {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
}

.bento-buckets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  justify-content: center;
  align-items: stretch;
}

.bento-bucket-card {
  padding: 18px 14px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  width: 100%;
}

.bucket-icon-circle {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

/* ========================================================
   STUDENT COURSE HUB: DARK MODE CONTRAST & SPACIOUS FIXES
   ======================================================== */
/* Greeting card in dark mode */
[data-theme="dark"] .student-hero-greeting {
  background: #1B1E2E !important;
  border-color: rgba(108, 93, 211, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .student-greeting-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .student-greeting-sub {
  color: #94A3B8 !important;
}

/* 4 Shortcut cards in dark mode & spacious layout */
.student-shortcuts-grid {
  gap: 16px;
  margin-bottom: 26px;
}

.student-sc-card {
  padding: 18px 16px;
  border-radius: 22px;
}

[data-theme="dark"] .student-sc-card {
  background: #1B1E2E !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .student-sc-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] .student-sc-desc {
  color: #94A3B8 !important;
}

/* Section titles in dark mode */
[data-theme="dark"] .student-column-title {
  color: #FFFFFF !important;
}

/* Assignments list row spacious & high contrast */
.student-assignments-list {
  gap: 14px;
}

.student-task-row {
  padding: 18px 20px;
  border-radius: 20px;
  gap: 16px;
  border: 1px solid rgba(108, 93, 211, 0.12);
}

.str-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1B1D28;
  margin-bottom: 6px;
}

[data-theme="dark"] .student-task-row {
  background: #1B1E2E !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .str-title {
  color: #FFFFFF !important;
}

[data-theme="dark"] .str-due {
  color: #94A3B8 !important;
}

[data-theme="dark"] .str-cat-pill {
  background: rgba(108, 93, 211, 0.2) !important;
  color: #D8B4FE !important;
}

[data-theme="dark"] .str-action-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
}

/* Course progress cards in dark mode */
.student-progress-cards-stack {
  gap: 14px;
}

.student-subject-card {
  padding: 18px 20px;
  border-radius: 20px;
}

[data-theme="dark"] .student-subject-card {
  background: #1B1E2E !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .student-sb-name {
  color: #FFFFFF !important;
}

[data-theme="dark"] .student-sb-score {
  color: #A78BFA !important;
}

[data-theme="dark"] .student-sb-track {
  background: #282C40 !important;
}

/* ========================================================
   MODAL CONFIRM BOX EXPLICIT CARD STYLING (FIX KOTAK HILANG)
   ======================================================== */
.modal-confirm-box {
  background: #FFFFFF !important;
  width: 90%;
  max-width: 420px;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.08);
  border: 1.5px solid #E2E8F0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1001;
}

[data-theme="dark"] .modal-confirm-box {
  background: #181C28 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.confirm-icon-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239, 27, 24, 0.12);
  color: #EF1B18;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}

[data-theme="dark"] .confirm-icon-bubble {
  background: rgba(239, 27, 24, 0.22);
}

.confirm-modal-heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A !important;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .confirm-modal-heading {
  color: #FFFFFF !important;
}

.confirm-modal-paragraph {
  font-size: 0.88rem;
  color: #475569 !important;
  line-height: 1.5;
  margin-bottom: 24px;
}

[data-theme="dark"] .confirm-modal-paragraph {
  color: #94A3B8 !important;
}

.confirm-actions-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.confirm-btn-cancel {
  flex: 1;
  min-height: 44px;
  border-radius: 14px;
  border: 1.5px solid #CBD5E1;
  background: #F1F5F9;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.confirm-btn-cancel:hover {
  background: #E2E8F0;
}

[data-theme="dark"] .confirm-btn-cancel {
  background: #232838;
  border-color: rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
}

[data-theme="dark"] .confirm-btn-cancel:hover {
  background: #2D3344;
}

.confirm-btn-proceed {
  flex: 1;
  min-height: 44px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #EF1B18, #E76720);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239, 27, 24, 0.35);
  transition: all 0.2s;
}

.confirm-btn-proceed:active {
  transform: scale(0.96);
}

/* ========================================================
   UNIVERSAL CRUD ACTIONS (INLINE BUTTONS & DETAIL SHEET)
   ======================================================== */
.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.action-btn-sheet {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.btn-sheet-edit {
  background: var(--card-subtle);
  border-color: var(--border);
  color: var(--text-main);
}
.btn-sheet-edit:hover {
  background: var(--border);
}

.btn-sheet-status {
  background: #10B981;
  color: #FFFFFF;
}
.btn-sheet-status.is-done {
  background: #64748B;
}

.btn-sheet-delete {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.2);
}
.btn-sheet-delete:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* Bento Inline Actions */
.bac-actions-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bac-btn-action {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-act-done {
  background: #E6FBF5;
  color: #10B981;
}
.btn-act-done:hover {
  background: #10B981;
  color: #FFFFFF;
}

.btn-act-edit {
  background: var(--card-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
}
.btn-act-edit:hover {
  background: var(--border);
}

.btn-act-del {
  background: #FFE8ED;
  color: #EF4444;
}
.btn-act-del:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* Student Hub Inline Actions */
.str-actions-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.str-mini-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(108, 93, 211, 0.15);
  background: #F0F2F9;
  color: #6C5DD3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.str-mini-btn:hover {
  background: #6C5DD3;
  color: #FFFFFF;
}

.btn-str-delete {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.18);
  background: #FFF0F0;
}
.btn-str-delete:hover {
  background: #EF4444;
  color: #FFFFFF;
}

[data-theme="dark"] .str-mini-btn {
  background: #252A3D;
  border-color: rgba(255, 255, 255, 0.08);
  color: #D8B4FE;
}
[data-theme="dark"] .btn-str-delete {
  background: #341D24;
  color: #FFA5B5;
  border-color: rgba(239, 68, 68, 0.25);
}
[data-theme="dark"] .btn-str-delete:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* ========================================================
   POPUP MENU LAYERING & STUDENT KEBAB TRIGGER
   ======================================================== */
.str-kebab-trigger {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  background: var(--card-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-left: 6px;
}

.str-kebab-trigger:hover {
  background: var(--border);
  color: var(--text-main);
}

[data-theme="dark"] .str-kebab-trigger {
  background: #232838;
  border-color: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}

[data-theme="dark"] .str-kebab-trigger:hover {
  background: #2D3344;
  color: #FFFFFF;
}

/* Layering fix for all cards with kebab popup */
.student-task-row,
.bento-appointment-card,
.project-card {
  position: relative;
  overflow: visible !important;
}

.kebab-menu {
  z-index: 1000 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .kebab-menu {
  background: #1E2333 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
}

/* ========================================================
   BASE TEMPLATE UTILITY CLASSES (CLEAN ZERO INLINE CSS)
   ======================================================== */
.btn-new-task-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-title-no-mb {
  margin-bottom: 0 !important;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.upload-img-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hidden-file-input {
  display: none !important;
}

.btn-upload-browse {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  padding: 10px 14px;
  white-space: nowrap;
}

.input-flex-1 {
  flex: 1;
}

.hidden-initially {
  display: none !important;
}

.detail-block-title-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-block-title-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-link-box {
  display: none;
  margin-bottom: 14px;
}

.file-link-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.file-link-card {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg-body);
  border: 1.5px solid var(--primary);
  padding: 10px 14px;
  border-radius: 12px;
}

.file-link-icon {
  font-size: 1.2rem;
}

.file-link-meta {
  flex: 1;
  min-width: 0;
}

.file-link-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-link-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-download-attached {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}

.dropzone-upload-icon {
  margin: 0 auto 6px;
  color: var(--primary);
}

.dropzone-title-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.dropzone-sub-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.mt-10 {
  margin-top: 10px;
}

.modal-card-max-480 {
  max-width: 480px;
}

.modal-body-p20 {
  padding: 20px;
}

.z-confirm-modal {
  display: none;
  z-index: 3000 !important;
}

.z-admin-login-modal {
  display: none;
  z-index: 3002 !important;
}

.confirm-bubble-lock {
  background: rgba(239, 27, 24, 0.15);
  color: #EF1B18;
}

.confirm-para-mb20 {
  margin-bottom: 20px;
}

.confirm-para-mb24 {
  margin-bottom: 24px;
}

.w-full {
  width: 100%;
}

.icon-size-modal {
  font-size: 1.7rem;
}

/* ========================================================
   SETTINGS PAGE UTILITY CLASSES (CLEAN FROM INLINE STYLE)
   ======================================================== */
.settings-section-head {
  margin-top: 28px;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.settings-card-mb {
  margin-bottom: 24px;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-row-tight {
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-row-padded {
  padding-top: 16px;
  padding-bottom: 16px;
}

.settings-row-top {
  padding-top: 16px;
}

.settings-row-bordered-top {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.settings-row-title-bold {
  font-weight: 800;
  color: var(--text-main);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-row-title-semibold {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.settings-row-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.settings-row-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.status-active-admin {
  color: #10B981;
  font-weight: 700;
}

.status-readonly-guest {
  color: #F59E0B;
  font-weight: 700;
}

.btn-min-touch {
  min-height: 44px;
}

.btn-touch-danger {
  min-height: 44px;
  color: var(--accent-red);
}

.btn-touch-flex {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-done-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #E6FBF5;
  color: #10B981;
  padding: 2px 8px;
  border-radius: 6px;
}

.task-title-completed {
  text-decoration: line-through;
  opacity: 0.65;
}

.str-check-icon {
  font-size: 0.75rem;
  color: #fff;
}

.student-empty-placeholder {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(108, 93, 211, 0.12);
}

[data-theme="dark"] .student-empty-placeholder {
  background: #181C28;
  border-color: rgba(255, 255, 255, 0.1);
}


/* Modal form inputs & wrappers */
.modal-form-full {
  width: 100%;
  margin: 0;
  padding: 0;
}

.modal-input-group {
  width: 100%;
  margin-bottom: 20px;
}

.modal-pin-input-custom {
  text-align: center;
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  height: 50px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.15);
}

.modal-error-text {
  display: none;
  color: #EF4444;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 8px;
}

.modal-submit-red {
  min-height: 44px;
  background: #EF1B18 !important;
  color: #FFF !important;
}

.mobile-header-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.readonly-banner {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  color: #78350F;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  padding: 6px 16px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.readonly-banner-mobile {
  display: inline-flex;
  border-radius: 9999px;
  margin: 0;
  padding: 4px 10px;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.readonly-banner-desktop {
  display: none;
}

@media (min-width: 900px) {
  .readonly-banner-mobile {
    display: none;
  }
  .readonly-banner-desktop {
    display: inline-flex;
    margin-right: 8px;
  }
}

body[data-readonly="true"] .dock-center-slot {
  display: none !important;
}

body[data-readonly="true"] .pc-actions .btn-primary {
  display: none !important;
}

body[data-readonly="true"] .sheet-actions {
  display: none !important;
}

body[data-readonly="true"] .dropzone-box {
  display: none !important;
}

body[data-readonly="true"] .kebab-btn,
body[data-readonly="true"] .bac-stripes-col,
body[data-readonly="true"] .str-kebab-trigger {
  display: none !important;
}

body[data-readonly="true"] .bento-add-mini-btn {
  display: none !important;
}

body[data-readonly="true"] .student-sc-add {
  display: none !important;
}

body[data-readonly="true"] .student-btn-new-board {
  display: none !important;
}

body[data-readonly="true"] .str-check-circle,
body[data-readonly="true"] .timeline-check-btn {
  pointer-events: none;
  opacity: 0.5;
}

body[data-readonly="true"] .str-checkbox {
  pointer-events: none;
  opacity: 0.5;
}

body[data-readonly="true"] .section-action[onclick*="openModal"],
body[data-readonly="true"] .section-action {
  display: none !important;
}

body[data-readonly="true"] .kebab-menu {
  display: none !important;
}

body[data-readonly="true"] .btn-secondary[onclick*="clearAppCache"] {
  display: none !important;
}

body[data-readonly="true"] .design-selection-grid,
body[data-readonly="true"] #theme-selection-title {
  display: none !important;
}
