/* Custom CSS for Digital Marketing Platform */

:root {
  /* Primary colors */
  --primary-light: #4ade80;
  --primary: #22c55e;
  --primary-dark: #16a34a;
  
  /* Neutral colors */
  --black: #111827;
  --white: #ffffff;
  --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;
}

/* Utility classes for theme colors */
.bg-primary-light {
  background-color: var(--primary-light);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-primary-dark {
  background-color: var(--primary-dark);
}

.text-primary-light {
  color: var(--primary-light);
}

.text-primary {
  color: var(--primary);
}

.text-primary-dark {
  color: var(--primary-dark);
}

.border-primary-light {
  border-color: var(--primary-light);
}

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

.border-primary-dark {
  border-color: var(--primary-dark);
}

/* Custom button styles */
.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Custom gradient backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* Custom card styles */
.card {
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.3s ease-in-out;
}

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

/* Custom form styles */
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Custom animation for page transitions */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s;
}

.fade-enter, .fade-leave-to {
  opacity: 0;
}

/* Custom styles for auth pages */
.auth-card {
  max-width: 28rem;
  margin: 2rem auto;
  padding: 2rem;
}

/* Custom styles for dashboard */
.dashboard-stat-card {
  border-left: 4px solid var(--primary);
}

/* Custom styles for tables */
.table-hover tr:hover {
  background-color: rgba(34, 197, 94, 0.05);
}

/* Custom styles for pagination */
.pagination-link.active {
  background-color: var(--primary);
  color: var(--white);
}

/* Custom styles for alerts */
.alert-success {
  background-color: rgba(34, 197, 94, 0.1);
  border-left: 4px solid var(--primary);
  color: var(--primary-dark);
}

/* Custom styles for badges */
.badge-primary {
  background-color: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Custom styles for tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: var(--black);
  color: var(--white);
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .auth-card {
    margin: 1rem;
    padding: 1.5rem;
  }
}
