@import "tailwindcss";

/* Custom components for dashboard */
.dashboard-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid rgb(229 231 235);
  padding: 1.5rem;
}

.dashboard-metric {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgb(17 24 39);
}

.dashboard-metric-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(107 114 128);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-metric-change {
  font-size: 0.875rem;
  font-weight: 500;
}

.dashboard-metric-change.positive {
  color: rgb(22 163 74);
}

.dashboard-metric-change.negative {
  color: rgb(220 38 38);
}

.dashboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-table-header {
  background-color: rgb(249 250 251);
}

.dashboard-table-header-cell {
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(107 114 128);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-table-body {
  background-color: white;
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-table-cell {
  padding: 1rem 1.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  color: rgb(17 24 39);
}

.dashboard-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  outline: none;
  transition: all 0.15s ease-in-out;
}

.dashboard-button:focus {
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.5);
}

.dashboard-button-primary {
  background-color: rgb(37 99 235);
  color: white;
}

.dashboard-button-primary:hover {
  background-color: rgb(29 78 216);
}

.dashboard-button-secondary {
  background-color: white;
  color: rgb(55 65 81);
  border-color: rgb(209 213 219);
}

.dashboard-button-secondary:hover {
  background-color: rgb(249 250 251);
}

.dashboard-stat-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid rgb(229 231 235);
  padding: 1.5rem;
  transition: box-shadow 0.2s ease-in-out;
}

.dashboard-stat-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.dashboard-chart-container {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid rgb(229 231 235);
  padding: 1.5rem;
  height: 24rem;
}