:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --success: #10b981;
  --danger: #ef4444;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #94a3b8;
  color: white;
  font-size: 11px;
  cursor: help;
  margin-left: 6px;
  position: relative;
  flex-shrink: 0;
}

.tooltip-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: normal;
  width: 260px;
  z-index: 1000;
  font-weight: normal;
  line-height: 1.4;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  pointer-events: none;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}

.service-card {
  border: 1px solid #e5e7eb;
  transition: all 0.2s;
}

.service-card.active {
  border-color: var(--primary);
  background: #f8fafc;
}

.ad-space {
  min-height: 90px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 11px;
  border-radius: 4px;
}

.preset-btn {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
}

.preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.preset-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.comparison-mode {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 6px;
}

.comparison-mode button {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
}

.comparison-mode button.active {
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

table {
  font-size: 13px;
}

.year-profitable {
  background: #f0fdf4 !important;
}

.year-unprofitable {
  background: #fef2f2 !important;
}

.year-breakeven {
  background: #fefce8 !important;
  font-weight: 600;
}

@media (max-width: 640px) {
  table {
    font-size: 11px;
  }

  .tooltip-icon:hover::after {
    width: 200px;
    font-size: 11px;
  }
}

input[type="text"] {
  text-align: right;
}

.period-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: #f1f5f9;
  border-radius: 4px;
}

.period-toggle button {
  padding: 2px 6px;
  border-radius: 3px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
}

.period-toggle button.active {
  background: white;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

