:root {
  --brand-blue: #0369a1; /* sky-700 */
  --brand-teal: #0d9488; /* teal-600 */
}

.container-narrow {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.card-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.card-body {
  padding: 1rem;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #fff;
}

.btn-primary:hover {
  background-color: #075985; /* sky-800 */
}

.btn-outline {
  border: 1px solid #e2e8f0;
}

.srp-shadow {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

canvas {
  cursor: crosshair;
  touch-action: pan-x pan-y;
  max-width: 100%;
  max-height: 100%;
}

/* Insights page specific styles */
.insight-card {
  transition: all 0.2s ease-in-out;
}

.insight-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.insight-toggle {
  transition: all 0.2s ease-in-out;
}

.insight-toggle:hover {
  transform: translateX(2px);
}

.toggle-icon {
  transition: transform 0.2s ease-in-out;
}

.insight-content {
  transition: all 0.3s ease-in-out;
}

/* Loading animation */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Priority badges */
.priority-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* Responsive adjustments for insights */
@media (max-width: 768px) {
  .insight-card {
    margin-bottom: 1rem;
  }
  
  .insight-content {
    font-size: 0.875rem;
  }
}

/* Refresh button animation */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mobile-first responsive adjustments */
@media (max-width: 640px) {
  .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .flex.items-center.gap-3 {
    width: 100%;
    justify-content: space-between;
  }

  /* Improve button spacing and touch targets */
  .btn-primary, .btn-outline {
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  /* Better mobile card spacing */
  .card-body {
    padding: 1.25rem;
  }

  /* Improve mobile grid layouts */
  .grid.gap-6.md\\:grid-cols-2 {
    gap: 1.5rem;
  }

  .grid.gap-6.md\\:grid-cols-3 {
    gap: 1rem;
  }

  /* Better mobile typography */
  .text-4xl {
    font-size: 2.5rem;
  }

  .text-3xl {
    font-size: 1.875rem;
  }

  /* Improve mobile chart containers */
  .h-96 {
    height: 20rem;
  }

  .h-80 {
    height: 18rem;
  }

  .h-160 {
    height: 18rem;
  }

  /* Better mobile form controls */
  input[type="date"], input[type="checkbox"] {
    min-height: 44px;
  }

  /* Improve mobile tab navigation */
  .flex.flex-wrap.gap-2 {
    gap: 0.5rem;
  }

  .flex.flex-wrap.gap-2 button {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
  .grid.gap-6.md\\:grid-cols-2 {
    gap: 2rem;
  }

  .grid.gap-6.md\\:grid-cols-3 {
    gap: 1.5rem;
  }

  /* Better chart sizing on tablets */
  .h-80 {
    height: 20rem;
  }
}

/* Large screen adjustments */
@media (min-width: 1025px) {
  /* Ensure chart has enough space on large screens */
  .h-96 {
    height: 24rem;
  }
  
  .h-80 {
    height: 20rem;
  }
}


