/* Design System - Cards */

/* Base card styles */
.ds-card {
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  background-color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
  width: 100%;
}

.ds-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem;
}

.ds-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #111827;
}

.ds-card-description {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #6B7280;
}

.ds-card-content {
  padding: 1.5rem;
  padding-top: 0;
}

.ds-card-footer {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  padding-top: 0;
}

/* Metric Card - specific variant from the dashboard */
.ds-metric-card {
  display: flex;
  min-width: 240px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  flex: 1 0 0;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  background-color: #ffffff;
  padding: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: relative;
}

.ds-metric-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  align-self: stretch;
}

.ds-metric-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 0 0;
}

.ds-metric-card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #EEF0FA;
  padding: 0.75rem;
  border-radius: 40px;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.ds-metric-card-title {
  align-self: stretch;
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: -0.01em;
}

.ds-metric-card-value-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  align-self: stretch;
}

.ds-metric-card-value {
  color: #111827;
  font-size: 2rem;
  font-weight: 600;
  line-height: 2.375rem;
  letter-spacing: -0.0125em;
}

.ds-metric-card-change {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem 0.25rem 0.5rem;
  border-radius: 1.5rem;
}

.ds-metric-card-change-positive {
  color: #22C55E;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.ds-metric-card-change-negative {
  color: #EF4444;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.ds-metric-card-subtitle {
  align-self: stretch;
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
}

/* Mission Card - specific variant from the dashboard */
.ds-mission-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  background-color: #ffffff;
  padding: 1.25rem;
}

.ds-mission-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  align-self: stretch;
}

.ds-mission-card-logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ds-mission-card-company {
  color: #1F2937;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375rem;
  letter-spacing: -0.011em;
}

.ds-mission-card-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5rem;
}

.ds-mission-card-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
}

.ds-mission-card-badge {
  display: flex;
  padding: 0.125rem 0.625rem;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background-color: #DBEAFE;
}

.ds-mission-card-badge-text {
  color: #1E40AF;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.125rem;
}

.ds-mission-card-time {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
}

.ds-mission-card-metrics {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

.ds-mission-card-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  flex: 1 0 0;
}

.ds-mission-card-metric-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
}

.ds-mission-card-metric-value {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.75rem;
}

.ds-mission-card-metric-label {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
}

/* Shared mission cards list layout */
.ds-mission-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}
