/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *

 */

/*



 */

/* Custom animation for flash messages */
@keyframes fadeout {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 0;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.animate-fadeout {
  animation: fadeout 1s forwards;
}

/* Toggle switch styling */
.toggle-checkbox:checked {
  right: 0;
  border-color: #3b82f6;
}

.toggle-checkbox:checked + .toggle-label {
  background-color: #3b82f6;
}

/* Replace theme transition styles with simpler ones */
body, div, section, header, footer, main, aside, button, input, textarea, select {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Tab styling */
.configuration-tabs {
  margin-bottom: 1.5rem;
}

.tab-button {
  position: relative;
  padding: 0.75rem 1rem;
  border-radius: 4px 4px 0 0;
  margin-right: 0.5rem;
  border-bottom: none !important;
}

.tab-button--active {
  background-color: #fff;
  color: #212b36;
  border-color: #c4cdd5;
  border-bottom-color: #fff;
  box-shadow: 0 -1px 0 0 #c4cdd5, -1px 0 0 0 #c4cdd5, 1px 0 0 0 #c4cdd5;
  z-index: 1;
}

.tab-button--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
}

.tab-panels {
  position: relative;
  margin-top: -1px;
  z-index: 0;
}

input[type="color"] {
  -webkit-appearance: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

/* Styles for the color picker container */
.color-field-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Highlight active color field */
.color-field-active {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Transition for form show/hide */
.form-transition {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-transition.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Enhanced animation for flash messages */
@keyframes fadeout {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.animate-fadeout {
  animation: fadeout 0.8s forwards 3s;
}

/* Transition for form show/hide */
.form-transition {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-transition.hidden {
  opacity: 0;
  transform: translateY(-5px);
  pointer-events: none;
}

/* Enhanced animation for flash messages */
@keyframes fadeout {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.animate-fadeout {
  animation: fadeout 0.8s forwards 2s;
}
@import url('https://rsms.me/inter/inter.css'); 
/* app/assets/stylesheets/landing.css */

/* Custom animations and effects for landing page */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.8); }
}

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

/* Landing page specific styles */
.landing-page {
    scroll-behavior: smooth;
}

/* Hero section animations */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    animation: float 3s ease-in-out infinite;
}

/* Feature cards */
.feature-card {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

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

/* Popup preview animation */
.popup-preview {
    position: relative;
    overflow: hidden;
}

.popup-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Parallax effect for background elements */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive video container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1.125rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .popup-preview {
        margin-top: 2rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .landing-page {
        background-color: #0f172a;
        color: #f8fafc;
    }

    .feature-card {
        background-color: #1e293b;
        border-color: #334155;
    }

    .text-gray-600 {
        color: #94a3b8;
    }

    .text-gray-900 {
        color: #f8fafc;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .landing-page {
        background: white !important;
        color: black !important;
    }
}
.preview-container {
    border: 1px solid #ddd;
    position: relative;
    background-color: #f5f5f5;
}

.floating-button-preview {
    position: absolute;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Arial, sans-serif;
}

.preview-close-button {
    margin-left: 10px;
    font-size: 20px;
    cursor: pointer;
}

.preview-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.preview-modal-container {
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.preview-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.preview-modal-heading {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #000;
}

.preview-question-text {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.preview-option-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.preview-option-button {
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.hidden {
    display: none;
}
