/* FontAwesome Styles - using CDN instead of SCSS imports */

/* Hero Carousel Styles */
.hero-carousel-slide {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Hero Content - Ensure visibility */
.hero-content {
  z-index: 100;
  position: relative;
}

.hero-title {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 101;
}

.hero-subtitle {
  color: #d1d5db; /* gray-300 */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 101;
}

.hero-description {
  color: #9ca3af; /* gray-400 */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 101;
}

.hero-button {
  background-color: white;
  color: black;
  position: relative;
  z-index: 101;
  text-shadow: none;
}

/* Ensure smooth transitions for all properties */
.hero-carousel-slide {
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Prevent layout shifts during animations */
.hero-carousel-container {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Smooth indicator transitions */
.hero-carousel-indicator {
  transition: all 0.3s ease-in-out;
}

/* Navigation button hover effects */
.hero-carousel-nav-button {
  transition: all 0.2s ease-in-out;
}

.hero-carousel-nav-button:hover {
  transform: scale(1.1);
}

/* Ensure slides maintain their aspect ratio during transforms */
.hero-carousel-slide img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Toggle Switch Styles */
.toggle-checkbox {
  position: absolute;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: white;
  border: 4px solid;
  appearance: none;
  cursor: pointer;
  left: 0;
  top: 0;
  transition: all 0.3s ease-in-out;
}
.toggle-checkbox:checked {
  left: 1rem;
  border-color: #68d391;
}
.toggle-checkbox:checked + .toggle-label {
  background-color: #68d391;
}
.toggle-label {
  display: block;
  overflow: hidden;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

/* Email Editor Styles */
.email-editor-container {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: white;
  overflow: hidden;
}

.email-editor-toolbar {
  background: #f9fafb;
  border-bottom: 1px solid #d1d5db;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.email-editor-toolbar button {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.email-editor-toolbar button:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.email-editor-toolbar button.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.email-editor-toolbar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-editor-toolbar .separator {
  width: 1px;
  height: 20px;
  background: #d1d5db;
  margin: 0 4px;
}

.email-editor-content {
  min-height: 300px;
  padding: 16px;
  outline: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
}

.email-editor-content:focus {
  outline: none;
}

.email-editor-content p {
  margin: 15px 0;
}

.email-editor-content h1 {
  font-size: 24px;
  font-weight: bold;
  margin: 25px 0 15px 0;
  color: #111827;
}

.email-editor-content h2 {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 0 12px 0;
  color: #111827;
}

.email-editor-content h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 18px 0 10px 0;
  color: #111827;
}

.email-editor-content ul,
.email-editor-content ol {
  margin: 10px 0;
  padding-left: 20px;
}

.email-editor-content li {
  margin: 4px 0;
}

.email-editor-content blockquote {
  border-left: 4px solid #d1d5db;
  margin: 10px 0;
  padding-left: 20px;
  font-style: italic;
  color: #6b7280;
}

.email-editor-content pre {
  background: #f5f5f5;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  padding: 12px;
  margin: 10px 0;
  overflow-x: auto;
}

.email-editor-content code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  background: #f5f5f5;
  padding: 2px 4px;
  border-radius: 0.25rem;
}

.email-editor-content pre code {
  background: none;
  padding: 0;
}

.email-editor-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  border: 1px solid #d1d5db;
}

.email-editor-content th,
.email-editor-content td {
  border: 1px solid #d1d5db;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.email-editor-content th {
  background: #f9fafb;
  font-weight: bold;
}

.email-editor-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}

.email-editor-content a {
  color: #3b82f6;
  text-decoration: underline;
}

.email-editor-content a:hover {
  color: #1d4ed8;
}

.email-editor-content hr {
  border: none;
  border-top: 1px solid #d1d5db;
  margin: 20px 0;
}

/* Toolbar button groups */
.toolbar-group {
  display: flex;
  gap: 2px;
  margin-right: 8px;
}

.toolbar-group:last-child {
  margin-right: 0;
}

/* Font controls */
.font-select,
.font-size-select {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  padding: 4px 8px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  min-width: 80px;
  height: 32px;
  outline: none;
}

.font-select:hover,
.font-size-select:hover {
  border-color: #9ca3af;
}

.font-select:focus,
.font-size-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

.font-size-select {
  min-width: 60px;
}

.template-select {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  padding: 4px 8px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  min-width: 140px;
  height: 32px;
  outline: none;
}

.template-select:hover {
  border-color: #9ca3af;
}

.template-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px #3b82f6;
}

/* Responsive design */
@media (max-width: 768px) {
  .email-editor-toolbar {
    flex-wrap: wrap;
    gap: 2px;
  }
  
  .email-editor-toolbar button {
    min-width: 28px;
    height: 28px;
    padding: 4px 6px;
    font-size: 12px;
  }
  
  .font-select,
  .font-size-select {
    min-width: 60px;
    height: 28px;
    font-size: 11px;
    padding: 2px 4px;
  }
  
  .font-size-select {
    min-width: 50px;
  }
  
  .template-select {
    min-width: 120px;
    height: 28px;
    font-size: 11px;
    padding: 2px 4px;
  }
  
  .email-editor-content {
    padding: 12px;
    font-size: 13px;
  }
}
