/* Toast Notifications */
.toast {
  animation: slideIn 0.3s ease-out;
  max-width: 400px;
}

.toast-success {
  background-color: #059669;
  color: white;
}

.toast-error {
  background-color: #dc2626;
  color: white;
}

.toast-info {
  background-color: #2563eb;
  color: white;
}

.toast-warning {
  background-color: #d97706;
  color: white;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-exit {
  animation: slideOut 0.3s ease-in forwards;
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
  display: none;
}

/* Sidebar Active State */
.nav-link.active {
  background-color: rgba(37, 99, 235, 0.2);
  color: white;
  border-right: 3px solid #2563eb;
}

/* Smooth Transitions */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

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

/* Post preview card */
.post-preview {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 500px;
}

/* Image grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: pointer;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox video,
.lightbox-video {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badge colors for post types */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-service { background-color: #dbeafe; color: #1e40af; }
.badge-seasonal { background-color: #fef3c7; color: #92400e; }
.badge-tip { background-color: #d1fae5; color: #065f46; }
.badge-testimonial { background-color: #ede9fe; color: #5b21b6; }
.badge-before_after { background-color: #fce7f3; color: #9d174d; }
.badge-promotion { background-color: #fee2e2; color: #991b1b; }
.badge-community { background-color: #e0e7ff; color: #3730a3; }
.badge-behind_scenes { background-color: #f3e8ff; color: #6b21a8; }
.badge-faq { background-color: #ccfbf1; color: #134e4a; }
.badge-custom { background-color: #f3f4f6; color: #374151; }

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
  background-color: #d1d5db;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}
.toggle-switch.active {
  background-color: #059669;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.active::after {
  transform: translateX(24px);
}

/* Schedule status badges */
.badge-pending { background-color: #fef3c7; color: #92400e; }
.badge-publishing { background-color: #dbeafe; color: #1e40af; }
.badge-published { background-color: #d1fae5; color: #065f46; }
.badge-failed { background-color: #fee2e2; color: #991b1b; }
.badge-cancelled { background-color: #f3f4f6; color: #6b7280; }
.badge-scheduled { background-color: #fef3c7; color: #92400e; }

/* Additional post type badges */
.badge-service_highlight { background-color: #dbeafe; color: #1e40af; }
.badge-project_showcase { background-color: #fce7f3; color: #9d174d; }
.badge-seasonal_tip { background-color: #fef3c7; color: #92400e; }
.badge-area_spotlight { background-color: #e0e7ff; color: #3730a3; }
.badge-educational { background-color: #ccfbf1; color: #134e4a; }
.badge-behind_the_scenes { background-color: #f3e8ff; color: #6b21a8; }
.badge-photo_post { background-color: #dbeafe; color: #1e40af; }
.badge-reel { background-color: #fce7f3; color: #9d174d; }
