/*
 * FeedbackHoney — Premium Dashboard Styles
 * Custom component styles that extend Tailwind utility classes.
 */

/* === Font === */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* === Stat Cards === */
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
  transform: translateY(-1px);
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

/* Accent colors */
.stat-card.accent-blue::before { background: #3b82f6; }
.stat-card.accent-amber::before { background: #f59e0b; }
.stat-card.accent-violet::before { background: #8b5cf6; }
.stat-card.accent-rose::before { background: #f43f5e; }
.stat-card.accent-cyan::before { background: #06b6d4; }
.stat-card.accent-emerald::before { background: #10b981; }

/* Stat number typography */
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Trend badges */
.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.375rem;
  border-radius: 9999px;
}

.trend-up {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.trend-down {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
}

/* === Horizontal Bar Fills === */
.bar-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: background-color 0.15s ease;
}

.bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 0.5rem;
  opacity: 0.08;
  transition: width 0.4s ease;
}

.dark .bar-fill {
  opacity: 0.12;
}

.bar-fill.fill-violet { background: #8b5cf6; }
.bar-fill.fill-amber { background: #f59e0b; }
.bar-fill.fill-emerald { background: #10b981; }
.bar-fill.fill-blue { background: #3b82f6; }
.bar-fill.fill-rose { background: #f43f5e; }
.bar-fill.fill-cyan { background: #06b6d4; }

/* === Table Refinements === */
.premium-table tbody tr {
  transition: background-color 0.1s ease;
}

.premium-table tbody tr:hover {
  background-color: rgba(245, 158, 11, 0.04);
}

.dark .premium-table tbody tr:hover {
  background-color: rgba(245, 158, 11, 0.06);
}



/* === Active Nav Indicator === */
.nav-item-active {
  position: relative;
}

.nav-item-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.375rem;
  bottom: 0.375rem;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #f59e0b;
}

/* === Greeting Typography === */
.greeting-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* === URL break === */
.url-break-aggressive {
  word-break: break-all;
  overflow-wrap: break-word;
  white-space: normal;
}

/* === Pill Selector === */
.pill-selector {
  display: flex;
  gap: 0.125rem;
  padding: 0.1875rem;
  border-radius: 0.5rem;
}

.pill-option {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.pill-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.pill-option.active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
