/* Shared widget card base class - Design Token Compliant (Section 3.1) */
/* Used across personal dashboards, workspaces, and team dashboards */

.dashboard-widget-card {
  border-radius: 8px;
  background: var(--white);
  box-shadow:
    0px 0px 2px 0px rgba(0, 0, 0, 0.12),
    0px 8px 24px -8px rgba(63, 0, 92, 0.04);
  border: none;
  padding: 12px 16px 16px 16px;
}

/* Skeleton loading state (Section 7.1: Progress Truth Mandate) */
.dashboard-widget-card--skeleton {
  position: relative;
  overflow: hidden;
}

.dashboard-widget-card--skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.skeleton-line {
  height: 1rem;
  background: var(--black-95);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line:last-child {
  margin-bottom: 0;
}

.skeleton-line--short {
  width: 60%;
}

.skeleton-line--medium {
  width: 80%;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.dashboard-widget-card-header {
  background: transparent;
  border-bottom: 1px solid var(--black-90);
  padding: 16px;
}

.dashboard-widget-card-body {
  padding: 0;
  overflow: hidden;
}

/* Workspace card variant with hover state */
.dashboard-widget-card--interactive {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-widget-card--interactive:hover {
  box-shadow:
    0px 0px 2px 0px rgba(0, 0, 0, 0.12),
    0px 12px 32px -8px rgba(63, 0, 92, 0.08);
  transform: translateY(-1px);
}

