:root {
  --green: #3DBE7B;
  --green-dark: #2da066;
  --green-light: #e8f8f0;
  --bg: #f0ebe8;
  --white: #ffffff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --sidebar-w: 220px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Legacy body and layout rules removed to use global.css standards */


.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── TOP BAR ── */
.topbar {
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-light);
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 50px;
  padding: 10px 20px;
  width: 260px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.search-bar input {
  border: none;
  outline: none;
  background: none;
  font-size: 14px;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  width: 100%;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notif-btn {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c4a4a4;
}

.user-name {
  font-weight: 700;
  font-size: 14px;
}

/* ── CONTENT GRID ── */
.content {
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 320px);
  gap: 30px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .content {
    grid-template-columns: 1fr;
    padding: 0 20px 20px;
  }
  
  .right-col {
    order: 2;
  }
  
  .left-col {
    order: 1;
  }

  .hero-banner {
    padding: 30px;
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .hero-banner h2 {
    font-size: 24px;
  }

  .hero-banner p {
    margin: 0 auto;
  }

  .hero-emoji {
    font-size: 60px;
  }
}

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

  .course-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .view-btn {
    width: 100%;
  }
}

/* ── HERO BANNER ── */
.hero-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--green) 0%, #47e096 100%);
  border-radius: 24px;
  padding: 40px 48px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 8px;
}

.hero-banner p {
  opacity: 0.85;
  font-size: 15px;
  max-width: 380px;
  line-height: 1.6;
}

.hero-emoji {
  font-size: 80px;
}

/* ── LEFT COLUMN ── */
.left-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: white;
  border-radius: 20px;
  padding: 24px;
}

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

.card-title {
  font-weight: 700;
  font-size: 15px;
}

.card-action {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

/* ── DONUT CHART ── */
.donut-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 16px;
}

svg.donut {
  transform: rotate(-90deg);
}

.donut-labels {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 8px;
}

.donut-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.donut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ── ACTIVITY CHART ── */
.activity-chart svg {
  width: 100%;
  height: 120px;
}

/* ── MY COURSES ── */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1.5px solid #f0f0f0;
  border-radius: 16px;
  transition: all 0.2s;
  cursor: pointer;
}

.course-item:hover {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(61, 190, 123, 0.1);
}

.course-thumb-sm {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.course-info {
  flex: 1;
}

.course-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.course-info span {
  font-size: 12px;
  color: var(--muted);
}

.view-btn {
  padding: 10px 20px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}

.view-btn:hover {
  background: var(--green);
}

.stars {
  font-size: 12px;
  color: #fbbf24;
}

.tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.tab {
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}

.tab.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 700;
}

/* ── RIGHT COLUMN ── */
.right-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── CALENDAR ── */
.calendar-card {
  background: white;
  border-radius: 20px;
  padding: 22px;
}

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

.cal-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 8px;
}

.cal-nav:hover {
  background: var(--green-light);
  color: var(--green);
}

.cal-selects {
  display: flex;
  gap: 8px;
}

.cal-selects select {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--text);
  background: white;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-label {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  padding: 6px 0;
}

.cal-day {
  text-align: center;
  padding: 7px 0;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.cal-day:hover {
  background: var(--green-light);
  color: var(--green);
}

.cal-day.today {
  background: var(--green);
  color: white;
  font-weight: 700;
  border-radius: 50%;
}

.cal-day.selected {
  background: var(--green-dark, #2da066);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(61, 190, 123, 0.4);
}

.cal-day.has-event {
  position: relative;
}

.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--green);
  border-radius: 50%;
}

.cal-day.other-month {
  color: #ccc;
}

/* ── UPCOMING TASKS ── */
.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.task-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.see-all {
  font-size: 13px;
  color: var(--green);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.task-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.task-filter select {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  background: white;
  font-family: 'DM Sans', sans-serif;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.task-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.task-icon.dark {
  background: #e8e3f8;
}

.task-info {
  flex: 1;
}

.task-info h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.task-info span {
  font-size: 12px;
  color: var(--muted);
}

.task-dots {
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  letter-spacing: 2px;
}

/* ── PAYMENT HISTORY ── */
.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #f9f9f9;
  border-radius: 12px;
  margin-bottom: 8px;
}

.payment-name {
  font-size: 14px;
  font-weight: 500;
}

.payment-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}