/* ================================
    MyGuide Design System
================================ */

/* ---------- Color Tokens ---------- */
:root {
  --primary: #7C4DFF;       /* main purple */
  --primary-soft: #ede9fe;
  --accent: #34d399;        /* calm green accent */
  --accent-soft: #ecfdf5;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;

  --text-main: #1f2937;
  --text-muted: #6b7280;

  --border-light: #e5e7eb;

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
}

/* ---------- Base ---------- */
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border-light);
}

.sidebar .nav-link {
  color: var(--text-muted);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.sidebar .nav-link.active {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

/* ---------- Avatar ---------- */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ---------- Course Cards ---------- */
.course-card {
  border-radius: 14px;
  padding: 14px;
  color: white;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.course-title {
  font-weight: 700;
  font-size: 1rem;
}

.course-code {
  opacity: 0.9;
  font-size: 0.85rem;
}

/* ---------- Dashboard Header Buttons ---------- */
button.btn-sm {
  border-radius: 999px;
}

/* ---------- Quick Add ---------- */
#quick-add .form-control,
#quick-add .form-select {
  border-radius: 10px;
}

/* ---------- Week Grid (Dashboard + Course) ---------- */
#week-grid {
  display: flex;
  gap: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 10px;
}

#week-grid > div {
  min-width: 180px;
  max-width: 220px;
}

.week-cell,
.week-day {
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: 10px;
  padding: 10px;
  min-height: 130px;
}

.week-day strong {
  color: var(--primary);
}

/* ---------- Planner Items ---------- */
.week-day .badge {
  border-radius: 999px;
  font-weight: 500;
}

/* ---------- Lists ---------- */
.list-group-item {
  border-radius: 10px;
  border: 1px solid var(--border-light);
  margin-bottom: 6px;
}

.list-group-item:hover {
  background: var(--bg-muted);
}

/* ---------- Help Page ---------- */
textarea.form-control {
  border-radius: 12px;
  resize: none;
}

textarea.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 10px;
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

.btn-outline-success {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-success:hover {
  background: var(--accent);
  color: white;
}

/* ---------- Subtle Section Headers ---------- */
h4, h5 {
  font-weight: 700;
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .sidebar {
    display: none;
  }

  body {
    padding-top: 0;
  }

  #week-grid > div {
    min-width: 75%;
  }
}
