/* Custom Styles for Central CRM */

:root {
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --font-family-base: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  font-family: var(--font-family-base);
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: var(--font-family-base);
  font-weight: 600;
}

/* Gradients */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.btn-gradient {
  background: var(--primary-gradient) !important;
  border: none !important;
  color: white !important;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-gradient:hover {
  opacity: 0.93;
  color: white !important;
}

.btn-gradient:active {
  transform: scale(0.98);
}

.btn-gradient-success {
  background: var(--success-gradient) !important;
  border: none !important;
  color: white !important;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-gradient-success:hover {
  opacity: 0.93;
  color: white !important;
}

/* Custom card hover effects */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Micro-animations */
.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image preview thumbnails */
.image-preview-thumbnail {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  background-color: #f1f5f9;
}

.image-preview-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-thumbnail .btn-delete-img {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  font-size: 10px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.image-preview-thumbnail .btn-delete-img:hover {
  background: rgba(220, 38, 38, 1);
}

/* Modern inputs */
.form-control:focus, .form-select:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 0.25rem rgba(165, 180, 252, 0.25);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Dashboard adjustments */
.navbar-nav .nav-item .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #64748b;
  transition: color 0.15s ease;
}

.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-item .nav-link:hover {
  color: #4f46e5 !important;
}

.navbar-nav .nav-item.active {
  position: relative;
}

.navbar-nav .nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .navbar-nav .nav-item.active::after {
    display: none;
  }
}

/* Steps Wizard Custom Styling */
.steps .step-item.active {
  color: #4f46e5 !important;
  font-weight: 600 !important;
}

.steps-counter .step-item.active::before {
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
}

.steps-counter .step-item::before {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
