.ld-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  color: #1e293b;
}
.ld-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0px;
  flex-wrap: wrap;
}
.ld-tab-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border-radius: 6px 6px 0 0;
}
.ld-tab-btn:hover {
  color: #2563eb;
  background: #f1f5f9;
}
.ld-tab-btn.is-active {
  color: #2563eb;
}
.ld-tab-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
}
.ld-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.ld-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.ld-kpi-card span {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.ld-kpi-card strong {
  font-size: 24px;
  color: #0f172a;
  font-weight: 700;
}
.ld-kpi-card small {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
}
.ld-kpi-card.is-warning small {
  color: #f59e0b;
}
.ld-kpi-card.is-danger small {
  color: #ef4444;
}
.ld-dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .ld-dashboard-grid {
    grid-template-columns: 1fr;
  }
}
.ld-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.ld-panel h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ld-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ld-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #f8fafc;
  transition: all 0.2s ease;
  cursor: pointer;
}
.ld-item:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
.ld-item-icon {
  width: 40px;
  height: 40px;
  background: #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.ld-item-info {
  flex-grow: 1;
}
.ld-item-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.ld-item-info p {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #64748b;
}
.ld-item-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.ld-item-status.is-good { background: #d1fae5; color: #065f46; }
.ld-item-status.is-warn { background: #fef3c7; color: #92400e; }
.ld-item-status.is-danger { background: #fee2e2; color: #991b1b; }
.ld-item-status.is-new { background: #dbeafe; color: #1e40af; }

.ld-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
}

/* Courses layout styles */
.ld-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-bottom: 16px;
}
.ld-filters select, .ld-filters input {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  background: #ffffff;
}
.ld-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ld-course-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.ld-course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.ld-course-banner {
  height: 120px;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ffffff;
}
.ld-course-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.ld-course-cat {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
}
.ld-course-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.ld-course-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}
.ld-course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}
.ld-course-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}
.ld-course-badge.is-required {
  background: #fee2e2;
  color: #ef4444;
}
.ld-course-rating {
  font-size: 12px;
  font-weight: 600;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Course detail drawer styles */
.ld-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 999;
  display: flex;
  justify-content: flex-end;
}
.ld-drawer {
  width: min(600px, 100%);
  background: #ffffff;
  height: 100%;
  box-shadow: -10px 0 25px -5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.ld-drawer-header {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.ld-drawer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.ld-drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #64748b;
}
.ld-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ld-drawer-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}
.ld-drawer-tab-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  position: relative;
}
.ld-drawer-tab-btn.is-active {
  color: #2563eb;
}
.ld-drawer-tab-btn.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #2563eb;
}

/* Timeline styles for learning programs */
.ld-timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}
.ld-timeline-step {
  position: relative;
}
.ld-timeline-bullet {
  position: absolute;
  left: -41px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 2px #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ld-timeline-content {
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.ld-timeline-content h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

/* Certificate Box styles */
.ld-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ld-cert-card {
  background: radial-gradient(circle at 100% 0%, #fbfbfb, #f3f4f6);
  border: 2px solid #d1d5db;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}
.ld-cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background: #2563eb;
}
.ld-cert-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ld-cert-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0;
}
.ld-cert-meta {
  font-size: 11px;
  color: #64748b;
}

/* ASK Studio GAP integration styles */
.ld-ask-gap-card {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.ld-ask-gap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}
.ld-ask-gap-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ld-ask-gap-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #475569;
  font-size: 13px;
}
.ld-ask-gap-level {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #eef6ff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid #bfdbfe;
}
.ld-ask-recommend {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
