/* Allgemeine Stile */
body {
    font-family: system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.2px;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}




/* Typing Indicator Styling */
/* Typing Indicator Styling */
.typing-indicator {
    display: none; /* Hidden by default */
    margin: 10px 0;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.dot {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background-color: #333;
    border-radius: 50%;
    opacity: 0;
    animation: blink 1.4s infinite both;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

.header {
    position: relative;
    width: 100%;
    text-align: center;
    overflow: visible; /* wichtig! */
    background-color: #f4f4f9;
    padding: 6rem 1rem 3rem;
    box-sizing: border-box;
}

/* Logo Styling */
.header .logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Header Text */
.header h1 {
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
    color: #333;
}

.header p {
    margin: 0 0 2rem;
    font-size: 1.2rem;
    color: #666;
}
/* Introduction Section */
.intro {
    display: flex;
    align-items: center;
    padding: 20px;
    width: 80%;
    max-width: 1000px;
}

.intro-image {
    width: 50%;
    border-radius: 8px;
    margin-right: 20px;
}

.system-image {
    width: 90%;
    border-radius: 8px;
    margin-right: 20px;
}

.intro-content {
    width: 50%;
}

.intro h2 {
    font-size: 1.8em;
}

.intro p {
    font-size: 1em;
    color: #555;
}

/* Benefits Section */
.benefits {
    background-color: #f9f9f9;
    padding: 20px;
    width: 80%;
    max-width: 1000px;
    text-align: center;
}

.benefits h2 {
    font-size: 1.8em;
}

.benefits-container {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.benefit-item {
    width: 45%;
    text-align: center;
}

.benefit-item img {
    width: 100%;
    border-radius: 8px;
}

.benefit-item h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

.benefit-item p {
    font-size: 0.9em;
    color: #555;
}

/* Chat Icon Styling */
.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f5f6f8;
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Chat Container (Initially Hidden) */
.chat-container {
    display: none; /* Versteckt den Chat-Container standardmäßig */
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 320px;
    max-width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    flex-direction: column;
    transition: transform 0.3s ease;
}

/* Chat Container when Visible */
.chat-container.visible {
    display: flex; /* Zeigt den Chat-Container an, wenn die Klasse .visible hinzugefügt wird */
}

/* Chat-Header Styling */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #007bff;
    color: white;
    padding: 10px;
    font-size: 18px;
    position: relative;
}

/* Chat-Logo (links) */
.chat-header .chat-logo {
    max-width: 30px; /* Größe des Logos anpassen */
    height: auto;
    margin-right: 10px;
}

/* Chat-Titel (zentriert) */
.chat-title {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

/* Schließen-Symbol (rechts) */
.close-chat {
    cursor: pointer;
    font-size: 18px;
    margin-left: auto;
}
/* Chat Box for Messages */
.chat-box {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f9f9f9;
}

/* Message Bubbles */
.chat-box .bot-message, .chat-box .user-message, .chat-box .message {
    padding: 4px 8px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
    max-width: 100% !important;
}

.chat-box .bot-message ol,
.chat-box .bot-message ul {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    padding-left: 18px !important;
}

.chat-box .bot-message li {
    margin-bottom: 2px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.chat-box .bot-message p {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.chat-box .bot-message strong, .chat-box .bot-message ::marker {
    margin: 0 !important;
    padding: 0 !important;
}

/* User Message Styling */
.user-message {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 4px;
    border-top-left-radius: 16px;
}

/* Bot Message Styling */
.bot-message {
    align-self: flex-start;
    background-color: #e9e9eb;
    color: #333;
    border-bottom-left-radius: 4px;
    border-top-right-radius: 16px;
}

/* Chat Form for User Input */
.chat-form {
    display: flex;
    border-top: 1px solid #ddd;
    background-color: #ffffff;
}

.chat-form input[type="text"] {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 0 0 0 8px;
    font-size: 14px;
}

.chat-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0 0 8px 0;
    font-size: 14px;
}

.chat-form button:hover {
    background-color: #0056b3;
}

/* Footer */
.footer {
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    width: 100%;
}

/* Login page styling */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    font-family: Arial, sans-serif;
}

.login-container h2 {
    text-align: center;
    color: #007bff;
}

.login-container form {
    display: flex;
    flex-direction: column;
}

.login-container label {
    margin-top: 10px;
}

.login-container input {
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-container button {
    margin-top: 20px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #0056b3;
}

.success {
    color: green;
}

.danger {
    color: red;
}

/* For small screens (less than 600px) */
@media (max-width: 600px) {
    /* Body */
    body {
        padding: 10px;
    }
    
    /* Header */
    .header h1 {
        font-size: 1.8em;
    }
    
    .header p {
        font-size: 1em;
    }

    /* Intro Section */
    .intro {
        flex-direction: column; /* Stack items vertically */
        align-items: center;
        text-align: center;
    }

    .intro-image, .intro-content {
        width: 100%; /* Make images and content full-width */
        margin: 0;
    }

    /* Benefits Section */
    .benefits-container {
        flex-direction: column; /* Stack benefit items vertically */
    }

    .benefit-item {
        width: 100%; /* Make each benefit item full-width */
        margin-bottom: 20px; /* Add space between items */
    }

    /* Chat Container */
    .chat-container {
        width: 90%; /* Make chat container more narrow */
        right: 5%; /* Center it horizontally */
    }

    /* Login Container */
    .login-container {
        width: 90%; /* Make login container more narrow */
    }

    /* Font adjustments */
    .benefits h2, .intro h2 {
        font-size: 1.5em;
    }

    .benefit-item h3 {
        font-size: 1em;
    }

    /* Mobile-specific adjustments */
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* For medium screens (less than 900px) */
@media (max-width: 900px) {
    .benefits-container {
        flex-direction: column;
    }

    .benefit-item {
        width: 100%;
        margin-bottom: 20px;
    }
}
h1 {
    text-align: center;
    color: #333;
}
label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}
input[type="text"], select, input[type="file"] {
    width: 350px;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

select {
    width: 150px;
}

button[type="submit"] {
    background-color: #22248f;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
button[type="submit"]:hover {
    background-color: #45a049;
}

/* Legacy button styles - now handled by header component */
/* Features Section */
.features {
    width: 90%; /* Adjust width for smaller screens */
    max-width: 1000px;
    margin: 2rem auto;
}

/* Feature Table */
.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-table th, .feature-table td {
    padding: 0.8rem; /* Reduce padding for smaller cells */
    text-align: center;
    border: 1px solid #eee;
    font-size: 0.9rem; /* Adjust font size for smaller screens */
}

.feature-table th {
    background: #007bff;
    color: white;
}

.feature-table tr:hover {
    background: #f5f5f5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }
}

    /* Feature Table */
    .feature-table th, .feature-table td {
        padding: 0.6rem; /* Further reduce padding for smaller screens */
        font-size: 0.8rem; /* Reduce font size for mobile readability */
    }

    .feature-table {
        font-size: 0.8rem; /* Reduce table font size globally */
    }
}

@media (max-width: 480px) {
    .header .logo {
        width: 100px;
    }
    /* Features */
    .features {
        width: 95%; /* Adjust container width */
    }

    /* Feature Table */
    .feature-table th, .feature-table td {
        font-size: 0.75rem; /* Fine-tune font size */
        padding: 0.4rem; /* Compact cell padding */
    }
}
/* First Column Background */
.feature-table th:first-child, .feature-table td:first-child {
    background-color: #ebe5e5; /* Light grey background */
    font-weight: bold; /* Optional: Make text bold */
}

/* Table Header Styling */
.feature-table th {
    background: #007bff;
    color: white;
}
   /* Styling the banner */
   #cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 15px;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

/* Styling buttons */
#cookie-consent-banner button {
    margin: 0 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
/* Links im Cookie-Consent-Banner weiß färben */
#cookie-consent-banner a {
    color: #ffffff;           /* weiße Schrift */
    text-decoration: underline; /* optional: Unterstreichung */
  }
  
  /* Hover-Effekt (optional) */
  #cookie-consent-banner a:hover {
    color: #dddddd; /* etwas aufgehellt bei Hover */
  }

#accept-cookies {
    background-color: #27ae60;
    color: #fff;
    transition: background-color 0.3s;
}

#accept-cookies:hover {
    background-color: #2ecc71;
}

#reject-cookies {
    background-color: #c0392b;
    color: #fff;
    transition: background-color 0.3s;
}

#reject-cookies:hover {
    background-color: #e74c3c;
}

/* Default styling for larger screens */
/* Video container wrapper to handle max-width */
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Inner container to maintain aspect ratio */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
}

/* Video iframe styling */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive styling */
@media (max-width: 768px) {
    .video-wrapper {
        max-width: 100%;
    }
}

/* Trennlinie */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}
/* Remove old burger menu styles - now handled by header component */

/* Default styling for larger screens */
/* Video container wrapper to handle max-width */
.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 80%;
}

/* Inner container to maintain aspect ratio */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
}

/* Video iframe styling */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive styling */
@media (max-width: 768px) {
    .video-wrapper {
        max-width: 100%;
    }
}

.help-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.forgot-password,
.resend-activation {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    padding: 5px 0;
}

.forgot-password:hover,
.resend-activation:hover {
    color: #333;
    text-decoration: underline;
}

/* Centering the new button */
.centered-button-container {
    display: flex;
    justify-content: center; /* Center the button horizontally */
    align-items: center; /* Align items vertically */
    width: 100%; /* Ensure it takes full width of the header */
    margin-top: 2rem; /* Add spacing from the other buttons */
}

.button-rounded {
    display: flex; /* Align text and arrow horizontally */
    align-items: center; /* Center text and arrow vertically */
    justify-content: center; /* Center the content */
    text-align: center;
    font-weight: 700;
    color: white;
    text-decoration: none;
    border-radius: 9999px; /* Fully rounded */
    height: 50px; /* Consistent height */
    padding: 0 30px; /* Adjust padding for better balance */
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.24px;
    white-space: nowrap;
    min-width: 200px; /* Ensure button has a minimum width */
    background: linear-gradient(-4deg, #007BFF, #ce78fd);
    transition: transform 0.3s ease;
    animation: pulse 3s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }

  .button-rounded:hover {
    filter: brightness(1.1);
    transform: translateX(5px);
    background: linear-gradient(-4deg, #ec07b3, #ffae88); /* neuer Hover-Gradient */
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.button-rounded span {
    display: flex; /* Flex container for text and icon */
    align-items: center; /* Vertically align the text and the icon */
}

.button-rounded svg {
    margin-left: 10px; /* Space between text and arrow */
    height: 20px;
    width: 20px;
}

.google-signin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #333; /* Dark background */
    color: #fff; /* White text */
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%; /* Make it full width; adjust as needed */
}

.google-signin-button:hover {
    background-color: #555; /* Slightly lighter on hover */
    transform: translateY(-2px); /* Lift effect on hover */
}

.google-signin-button:active {
    transform: translateY(0); /* Reset lift on click */
}

.google-icon {
    height: 20px; /* Adjust the size of the Google icon */
    width: 20px;
    margin-right: 10px;
    vertical-align: middle;
}
.credits-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.credits-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.credit-package {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    background: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.credit-package:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.credit-package.selected {
    border: 2px solid #0070ba;
    background: #f0f7ff;
}

.credit-amount {
    font-size: 24px;
    font-weight: bold;
    color: #0070ba;
}

.credit-price {
    font-size: 20px;
    color: #2c2e2f;
    margin: 10px 0;
}

#paypal-button-container {
    max-width: 400px;
    margin: 20px auto;
}
.subscription-package {
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.plan-name {
    font-size: 28px;
    font-weight: bold;
    color: #2c2e2f;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.credit-amount {
    font-size: 22px;
    font-weight: 500;
    color: #0070ba;
    margin: 10px 0;
}

.credit-price {
    font-size: 32px;
    font-weight: bold;
    color: #2c2e2f;
    margin: 15px 0;
}

.credit-price::before {
    content: "";
    font-size: 24px;
    vertical-align: super;
}

.features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
    font-size: 16px;
}

.features li:before {
    content: "✓";
    color: #0070ba;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.subscription-package:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.subscription-package.selected {
    border: 3px solid #0070ba;
    background: #f8fbff;
}

/* Responsive grid */
.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
    padding: 0 15px;
}
.free-plan-section {
    width: 80%;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.free-plan-section h2 {
    color: #007bff;
    font-size: 2rem;
}

.free-plan-section p {
    font-size: 1.2rem;
    color: #333;
}

.free-plan-buttons {
    margin-top: 15px;
}

.hero {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 60px 20px;
    will-change: transform;
}

.hero2 {
    text-align: center;
    padding: 60px 20px;
    will-change: transform;
}

.hero h1 {
    font-size: 2.5rem;
    margin: 0;
    will-change: transform;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin: 20px 0;
}

.grid-container {
    max-width: 1200px;
    margin: -50px auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    contain: layout style paint;
}

.bot-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 400px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    will-change: transform;
    contain: layout style paint;
}

.bot-card:hover {
    transform: translateY(-5px);
}

.bot-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    contain: layout style paint;
}

.bot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.bot-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    contain: layout style paint;
}

.bot-title {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #333;
}

.bot-description {
    color: #666;
    margin: 0 0 20px 0;
    flex-grow: 1;
    line-height: 1.5;
}

.chat-button {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
    will-change: background-color;
}

.chat-button:hover {
    background-color: #0056b3;
}

.grid-container2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding: 2rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .grid-container {
        margin: -30px auto 30px;
        gap: 20px;
    }
    
    .bot-card {
        height: 350px;
    }
    
    .bot-image {
        height: 150px;
    }
    
    .grid-container2 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .bot-card {
        transition: none;
    }
    
    .chat-button {
        transition: none;
    }
}

.q_modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    display: flex;
    align-items: center; /* Zentriert vertikal */
    justify-content: center; /* Zentriert horizontal */
}

/* Standard Modal Size (Steps 1–3) */
.q_modal-content {
    background: white; 
    padding: 20px; 
    border-radius: 12px; 
    width: 60%; /* Standardgröße */
    max-width: 600px; /* Begrenzung */
    height: auto; 
    max-height: 90vh; /* Begrenzung der Höhe für erste Schritte */
    overflow-y: auto; /* Falls nötig, scrollen erlauben */
    overflow: hidden;
    text-align: center; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfekt zentriert */
    transition: max-height 0.3s ease, width 0.3s ease, transform 0.3s ease;
}
/* Responsive buttons inside modal */
.q_modal-content button {
    width: auto; /* Prevent full-width buttons unless necessary */
    padding: 10px 15px;
    font-size: 1rem;
}

/* Größere Modal-Größe für Schritt 4 */
.q_modal-large {
    width: 80%; /* Breiter für Bot-Preview */
    height: 100%;
    box-shadow: 0px 0px 20px rgba(255, 0, 212, 0.5);
    max-width: 900px;
    overflow-y: auto;
    max-height: 90vh;
}

@media (max-width: 768px) {
    .q_modal-content {
        width: 90%; /* Expand to full width on smaller screens */
        max-width: 500px;
        max-height: 80vh; /* Prevent modal overflow */
        overflow-y: auto; /* Allow scrolling inside the modal */
    }

    /* Reduce text size for smaller screens */
    .q_modal-content h2, .q_modal-content h3 {
        font-size: 1.4rem;
    }

    /* Adjust input fields for mobile */
    .q_modal-content input,
    .q_modal-content select,
    .q_modal-content textarea {
        width: 100%; /* Full width on small screens */
        font-size: 1rem;
    }

    /* Fix button positioning */
    .q_modal-content button {
        width: 100%; /* Make buttons full-width */
        padding: 10px;
        font-size: 1rem;
    }
}
/* Center inputs and buttons in Step 1 & 2 */
#quickstart-step-0,
#quickstart-step-1,
#quickstart-step-2,
#quickstart-step-3,
#quickstart-step-35,
#quickstart-step-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    text-align: center;
}
/* Ensure input fields and selects are centered */
#bot-name, #bot-color {
    width: 80%;
    max-width: 400px;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center; /* Ensures text input looks better */
    margin-bottom: 10px; /* Adds spacing */
}

/* Center the buttons */
#mebot-check-btn, #continue-btn {
    width: auto;
    min-width: 180px;
    text-align: center;
    padding: 10px;
}

/* Responsive adjustments for the Bot Name input field */
#bot-name {
    width: 100%; /* Ensures it takes full width of the container */
    max-width: 400px; /* Limits max width for better usability */
    padding: 12px;
    font-size: 1rem; /* Ensures text remains readable */
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-top: 10px;
    display: block; /* Ensures correct alignment */
}

/* Adjust input width on smaller screens */
@media (max-width: 600px) {
    #bot-name {
        font-size: 1rem; /* Reduce font size slightly for mobile */
        padding: 10px;
        width: 90%; /* Slightly reduce width to avoid touching screen edges */
    }
}

/* Style for the validation warning message */
#mebot-name-warning {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
    max-width: 400px; /* Keeps it aligned with the input field */
}

/* Button styling for consistency */
#mebot-check-btn, #continue-btn {
    margin-top: 12px;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
}

#mebot-check-btn {
    background-color: #007bff;
    color: white;
    border: none;
}

#mebot-check-btn:hover {
    background-color: #0056b3;
}

#continue-btn {
    background-color: #28a745;
    color: white;
    border: none;
    display: none; /* Hidden initially */
}

#continue-btn:hover {
    background-color: #218838;
}

/* Responsive Bot Instruction Textarea */
#bot-instruct {
    width: 100%; /* Full container width */
    max-width: 500px; /* Limits width for better usability */
    min-height: 120px; /* Ensures enough space for input */
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical; /* Allows users to expand/shrink */
    display: block;
}

/* Adjustments for smaller screens */
@media (max-width: 600px) {
    #bot-instruct {
        width: 90%; /* Slightly reduce width to avoid touching screen edges */
        font-size: 0.95rem;
        min-height: 100px;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007BFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .admin-container {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 700px;
  }
  

/* Custom styles for HybridAI landing page */

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Custom shadows */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom gradients */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

/* Custom transitions */
.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom hover effects */
.hover\:bg-primary\/90:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.hover\:bg-accent:hover {
    background-color: hsl(var(--accent));
}

.hover\:text-accent-foreground:hover {
    color: hsl(var(--accent-foreground));
}

/* Custom focus styles */
.focus-visible\:outline-none:focus-visible {
    outline: none;
}

.focus-visible\:ring-2:focus-visible {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus-visible\:ring-ring:focus-visible {
    --tw-ring-color: hsl(var(--ring));
}

.focus-visible\:ring-offset-2:focus-visible {
    --tw-ring-offset-width: 2px;
}

.focus-visible\:ring-offset-background:focus-visible {
    --tw-ring-offset-color: hsl(var(--background));
}

/* Custom disabled styles */
.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

/* Custom file input styles */
.file\:border-0[type="file"] {
    border-width: 0;
}

.file\:bg-transparent[type="file"] {
    background-color: transparent;
}

.file\:text-sm[type="file"] {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.file\:font-medium[type="file"] {
    font-weight: 500;
}

/* Custom placeholder styles */
.placeholder\:text-muted-foreground::placeholder {
    color: hsl(var(--muted-foreground));
}
  

/* General responsive improvements */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    .header {
        padding: 4rem 1rem 2rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .intro {
        width: 95%;
        padding: 15px;
    }

    .intro-image, .intro-content {
        width: 100%;
        margin: 0;
    }

    .intro-image {
        margin-bottom: 20px;
    }

    .benefits {
        width: 95%;
        padding: 15px;
    }

    .benefits-container {
        flex-direction: column;
        gap: 20px;
    }

    .benefit-item {
        width: 100%;
    }

    .features {
        width: 95%;
        padding: 15px;
    }

    .feature-table {
        font-size: 0.9rem;
    }

    .feature-table th, 
    .feature-table td {
        padding: 0.5rem;
    }
}

/* Small screen optimizations */
@media (max-width: 480px) {
    .header {
        padding: 3rem 1rem 1.5rem;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .header p {
        font-size: 1rem;
    }

    .header .logo {
        width: 80px;
    }

    .intro h2 {
        font-size: 1.5rem;
    }

    .benefits h2 {
        font-size: 1.5rem;
    }

    .benefit-item h3 {
        font-size: 1.2rem;
    }

    .feature-table {
        font-size: 0.8rem;
    }

    .feature-table th, 
    .feature-table td {
        padding: 0.4rem;
    }
}

/* Chat widget mobile optimization */
@media (max-width: 768px) {
    .chat-container {
        width: 95%;
        right: 2.5%;
        bottom: 60px;
    }

    .chat-header {
        padding: 8px;
        font-size: 16px;
    }

    .chat-header .chat-logo {
        max-width: 24px;
    }
}

/* Navigation mobile improvements - handled by header component */

/* Container width adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Video container mobile optimization */
@media (max-width: 768px) {
    .video-wrapper {
        width: 95%;
    }
}

/* Subscription options mobile layout */
@media (max-width: 768px) {
    .subscription-options {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .subscription-package {
        padding: 20px;
    }
}

@media (max-width: 600px) {
  .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 480px) {
  .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}
@media (max-width: 600px) {
    .max-w-5xl,
    .max-w-3xl,
    .max-w-2xl,
    .max-w-md,
    .max-w-[700px],
    .mx-auto,
    .grid,
    .flex,
    .aspect-video,
    .rounded-lg,
    .rounded-xl,
    .rounded-3xl {
      max-width: 100% !important;
      width: 100% !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      box-sizing: border-box !important;
    }
    h1, h2, h3 {
      word-break: break-word;
      font-size: 1.5rem !important;
    }
    .space-x-4, .space-y-4, .gap-6, .gap-8, .gap-12 {
      gap: 1rem !important;
    }
    .px-8, .px-6, .px-4, .py-20, .py-12 {
      padding-left: 8px !important;
      padding-right: 8px !important;
      padding-top: 12px !important;
      padding-bottom: 12px !important;
    }
  }

/* Mobile menu styles handled by header component */

/* --- Compact Chat Output Tweaks (High Specificity) --- */
.chat-box .bot-message, .chat-box .user-message, .chat-box .message {
    padding: 4px 8px !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
    max-width: 100% !important;
}

.chat-box .bot-message ol,
.chat-box .bot-message ul {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    padding-left: 18px !important;
}

.chat-box .bot-message li {
    margin-bottom: 2px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.chat-box .bot-message p {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.chat-box .bot-message strong, .chat-box .bot-message ::marker {
    margin: 0 !important;
    padding: 0 !important;
}
