/* Mannheim DS Planner - Editorial Styles */

/* Base Layout Improvements */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* KPI Cards */
.kpi {
  border: 1px solid #ead7c3;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.kpi span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #78716c;
  font-weight: 500;
}

.kpi strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1c1917;
  font-variant-numeric: tabular-nums;
}

/* Form Fields */
.field {
  width: 100%;
  border: 1px solid #e7ddd1;
  background: #faf6f1;
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  outline: none;
  transition: all 150ms ease;
}

.field:focus {
  border-color: #b5673f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(181, 103, 63, 0.1);
}

/* Table Headers */
.head {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: #78716c;
  transition: color 150ms ease;
}

.head:hover {
  color: #1c1917;
}

/* Primary Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  color: #fff;
  background: #b5673f;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  transition: all 150ms ease;
  cursor: pointer;
}

.btn:hover {
  background: #9f4f2a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(181, 103, 63, 0.25);
}

.btn:active {
  transform: translateY(0);
}

/* Muted Button */
.btn-muted {
  border: 1px solid #e7ddd1;
  background: #faf6f1;
  color: #57534e;
}

.btn-muted:hover {
  border-color: #d6ccbe;
  background: #f5ede3;
  box-shadow: none;
  transform: none;
}

/* Pills / Badges */
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

/* Line Clamp Utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Hover Effects */
.card-hover {
  transition: all 200ms ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f5ede3;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #d6ccbe;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c3b6a4;
}

/* Focus Styles */
button:focus-visible,
input:focus-visible {
  outline: 2px solid #b5673f;
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 200ms ease-out forwards;
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: inherit;
}
