/* ── Top Bar ──────────────────────────────────────────── */
.da-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 20px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 12px;
}
.da-topbar-left { display: flex; align-items: center; gap: 10px; }
.da-topbar-right { display: flex; align-items: center; gap: 10px; }
.da-topbar-brand {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .5px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.da-topbar-sub { font-size: .8rem; color: #334155; font-weight: 700; }
.da-topbar-user { font-size: .82rem; color: #64748b; }

/* ── Content ──────────────────────────────────────────── */
.da-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.da-section-head {
  margin-bottom: 16px;
}
.da-section-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}
.da-section-head h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.da-account-danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff7f7;
}

.da-account-danger strong {
  display: block;
  color: #7f1d1d;
  font-size: .92rem;
}

.da-account-danger p {
  margin-top: 4px;
  color: #991b1b;
  font-size: .8rem;
  line-height: 1.5;
}

/* ── Courses Grid ─────────────────────────────────────── */
.da-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.da-course-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.da-course-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(13,148,136,.12);
  transform: translateY(-1px);
}
.da-course-card-code {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.da-course-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}
.da-course-card-meta {
  font-size: .78rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.da-course-card-footer {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.da-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 600;
  background: var(--accent-bg);
  color: var(--accent-text);
}
.da-badge-arrow {
  font-size: .8rem;
  color: var(--accent);
}

/* ── Course Header ────────────────────────────────────── */
.da-course-header {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.da-course-header-code {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.da-course-header-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.da-course-header-meta {
  font-size: .82rem;
  color: #64748b;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── Notes List ───────────────────────────────────────── */
.da-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.da-note-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .15s;
}
.da-note-card:hover { border-color: #94a3b8; }
.da-note-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.da-note-info { flex: 1; min-width: 0; }
.da-note-title {
  font-size: .92rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.da-note-meta { font-size: .75rem; color: #94a3b8; margin-top: 2px; }

/* ── Empty State ──────────────────────────────────────── */
.da-empty {
  text-align: center;
  padding: 48px 20px;
  color: #94a3b8;
  font-size: .9rem;
  background: #fff;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
}
.da-empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
