/* digitalmarketingIO - Custom Styles */

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Apply animations */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.pulse-on-hover:hover {
  animation: pulse 0.5s ease-in-out;
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

/* Custom button styles */
.btn-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Custom card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Loading spinner */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .hero-text {
    font-size: 2rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
  }
}

/* Custom focus styles */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  ring: 2px;
  ring-indigo-500;
  ring-opacity: 50;
}

/* Status indicators */
.status-online {
  color: #10B981;
}

.status-offline {
  color: #EF4444;
}

.status-warning {
  color: #F59E0B;
}

/* Dashboard specific styles */
.dashboard-nav {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.dashboard-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.dashboard-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-color: #d1d5db;
}

/* API status indicator */
.api-status {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.api-status.online {
  background-color: #D1FAE5;
  color: #065F46;
}

.api-status.offline {
  background-color: #FEE2E2;
  color: #991B1B;
}

/* Feature icons */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1rem;
}

.feature-icon.leads {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: white;
}

.feature-icon.email {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}

.feature-icon.ai {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: white;
}

/* Utility classes */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.border-gradient {
  border: 2px solid;
  border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}