
/* Custom styles */
.sidebar {
  transition: width 0.3s ease;
}

.table-container {
  overflow-x: auto;
}

.metric-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.dropdown-menu {
  display: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.toast {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.modal-backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.data-table th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 10;
}

.variance-positive {
  color: #10b981;
}

.variance-negative {
  color: #ef4444;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.source-facebook { background: #e7f3ff; color: #1877f2; }
.source-google_ads { background: #fef3e7; color: #ea4335; }
.source-bing_ads { background: #e8f4ea; color: #00897b; }
.source-roku { background: #f3e8ff; color: #6b21a8; }
.source-microsoft { background: #e3f2fd; color: #0078d4; }
.source-affiliate { background: #fff8e1; color: #f57c00; }
.source-amazon { background: #fff3e0; color: #ff9800; }
.source-vizio { background: #fce4ec; color: #c2185b; }
.source-ctv { background: #e8eaf6; color: #3f51b5; }
.source-organic { background: #e8f5e9; color: #43a047; }
.source-other { background: #f5f5f5; color: #757575; }
