/* Custom CSS for Lead Signals */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Root variables */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #8b5cf6;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* Base styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Card hover effects */
.bg-white {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bg-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Button effects */
button {
  transition: all 0.2s ease;
}

button:active {
  transform: scale(0.98);
}

/* Notification badge pulse animation */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.ph-bell + span {
  animation: pulse 2s infinite;
}

/* Sidebar active item styles */
nav a.bg-blue-50 {
  position: relative;
}

nav a.bg-blue-50::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background-color: var(--primary);
  border-radius: 0 3px 3px 0;
}

/* Signal item badging and status */
.rounded-full {
  transition: all 0.2s ease;
}

button.rounded-full:hover {
  transform: scale(1.05);
}

/* Checkbox styling */
input[type="checkbox"] {
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .grid-cols-1 > div {
    margin-bottom: 1rem;
  }
  
  .bg-white:hover {
    transform: none;
  }
}

/* Divider with text styling */
.relative {
  margin: 1.5rem 0;
}

/* Additional animation for new signals */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.space-y-4 > div {
  animation: fadeIn 0.3s ease-out forwards;
}

.space-y-4 > div:nth-child(2) {
  animation-delay: 0.1s;
}

.space-y-4 > div:nth-child(3) {
  animation-delay: 0.2s;
}

/* Card headers and content spacing */
.p-5, .p-6 {
  display: flex;
  flex-direction: column;
}

/* Custom styling for goal tags */
.inline-flex.items-center.px-3.py-1.rounded-full {
  user-select: none;
  cursor: pointer;
}

/* Profile avatar styling */
.h-10.w-10.rounded-full {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

/* Making shadow effects more subtle */
.shadow {
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Better focus states for accessibility */
a:focus, button:focus, input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Add subtle border to cards for better definition */
.bg-white.rounded-lg {
  border: 1px solid var(--gray-100);
}

/* Phosphor icon styles */
i[class^="ph-"] {
  font-size: 1.25rem;
  display: inline-block;
}

.bg-blue-100 i, .bg-green-100 i, .bg-purple-100 i, .bg-yellow-100 i {
  font-size: 1.5rem;
}

.h-10.w-10 i {
  font-size: 1.25rem;
} 