/* Logo-Container */
.logo-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Logo-Bild */
.logo-container .logo {
    max-width: 80px;  /* Passe die Größe des Logos an */
    height: auto;
}

/* CSS Customization Section */
.customization-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.option-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option-card h4 {
    color: #007bff;
    margin-bottom: 10px;
}

.option-card pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.9em;
}

.option-card code {
    font-family: 'Courier New', monospace;
}
/* Allgemeine Container-Stile für das Admin-Panel */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px 20px 20px 20px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    margin-top: 86px;
}
.admin-container2 {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    margin-top: 120px;
}
.admin-container-inner {
    max-width: 40%;
    margin: 20px 0 20px 0; /* Abstand oben und unten beibehalten */
    padding: 20px;
    border-radius: 8px;
    background-color: #ebefe2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    align-self: flex-start; /* Position innerhalb eines flexiblen Containers */
}


h1 {
    text-align: center;
    color: #007bff;
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 700 !important;
}

h2 {
    font-weight: 600 !important;
}

/* Nachrichten-Container */
.messages-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Einzelne Nachricht */
.message-item {
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #e9f2ff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-item p {
    margin: 5px 0;
    color: #333;
}

.message-item strong {
    color: #333;
}

/* Buttons für Aktionen */
.message-item button {
    padding: 8px 12px;
    margin-right: 5px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

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

/* Trennlinie */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 10px 0;
}
/* Burger Menu Button on the Right */
.menu-button {
    display: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
    z-index: 1100;
}

/* Burger Menu (Positioned on the Right) */
.burger-menu {
    position: fixed;
    top: 0;
    right: 0;  /* Moved to the right */
    width: 250px;
    height: 100%;
    background-color: #333;
    color: white;
    transform: translateX(100%);  /* Initially hidden off-screen to the right */
    transition: transform 0.3s ease;
    z-index: 1000;
}

.burger-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 60px;
}

.burger-menu ul li {
    padding: 15px 20px;
}

.burger-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.burger-menu ul li a:hover {
    color: #007bff;
}

/* Show Menu */
.burger-menu.show {
    transform: translateX(0);  /* Slide in from the right */
}

/* Darken overlay when menu is open */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.collection-action-btn {
    border: 1px solid #d0d0d0;
    background: #f9f9f9;
    color: #333;
    padding: 4px 10px;
    margin-right: 6px;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.collection-action-btn:hover {
    background: #ececec;
}

.collection-action-btn.danger {
    border-color: #f5b5b5;
    color: #b30000;
    background: #fff5f5;
}

.collection-action-btn.danger:hover {
    background: #ffe5e5;
}

.collection-action-btn--icon {
    border: none;
    background: transparent;
    color: #555;
    font-size: 1.1em;
    padding: 0 6px;
    box-shadow: none !important;
    outline: none;
}

.collection-action-btn--icon:hover {
    background: transparent;
    color: #222;
    box-shadow: none !important;
    outline: none;
}

.collection-search-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.collection-search-modal__dialog {
    width: min(900px, 95vw);
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    resize: both;
    overflow: hidden;
    min-width: 400px;
    min-height: 320px;
    position: relative;
}

.collection-search-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.collection-search-modal__close {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.collection-search-modal__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
    align-items: end;
}

.collection-search-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.collection-search-modal__field label {
    font-size: 0.85em;
    font-weight: 600;
    color: #333;
}

.collection-search-modal__submit {
    align-self: stretch;
    margin-top: 24px;
}

.collection-search-results {
    margin-top: 15px;
    max-height: 320px;
    overflow-y: auto;
}

.collection-search-results__item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
}

.collection-search-results__meta {
    font-size: 0.85em;
    color: #666;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.collection-search-highlight {
    background: #fff1a8;
    padding: 0 2px;
    border-radius: 2px;
}
.overlay.show {
    display: block;
}
/* Stile für das Submenü */
.burger-menu ul .submenu {
    display: block; /* Immer sichtbar */
    list-style: none;
    padding: 0; /* Kein zusätzlicher Abstand */
    margin: 0; /* Kein Margin */
}

.burger-menu ul .submenu li {
    padding: 7px 20px; /* Weniger Padding, damit kein zusätzlicher Abstand vor dem ersten Element ist */
}

.burger-menu ul .submenu li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    display: block; /* Volle Breite für besseren Klickbereich */
}

.burger-menu ul .submenu li a:hover {
    color: #007bff;
}

/* Entfernt farbliche Hinterlegung des Submenüs */
.burger-menu ul .submenu {
    background: none !important;
}

/* Falls das Hauptmenü farblich hinterlegt ist, aber nicht das Submenü */
.burger-menu ul > li {
    background-color: #333; /* Falls Hauptmenü farblich hinterlegt ist */
}

.burger-menu ul > li .submenu li {
    background: none !important;
}

/* Regular message styling */
.message-item {
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Styling for flagged messages */
.flagged {
    background-color: #ffcccc; /* Light red background for flagged messages */
    border-color: #ff0000; /* Red border for emphasis */
}

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

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

.register-container {
    background-color: #ffffff;
    padding: 30px;
    width: 90%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.register-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.register-container label {
    display: block;
    margin: 10px 0 5px;
    color: #555;
    text-align: left;
}

.register-container input[type="text"],
.register-container input[type="email"],
.register-container input[type="tel"],
.register-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.register-container button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

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

.register-container p {
    margin-top: 15px;
    color: #666;
}

.register-container a {
    color: #007bff;
    text-decoration: none;
}

.register-container a:hover {
    text-decoration: underline;
}

/* Centering container */
.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full viewport height */
}

/* Styling for the form box */
.form-box {
    width: 100%;
    max-width: 400px; /* Adjust width as needed */
    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;
}
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;
}

.invalid-mename {
    border-color: #dc3545;
    background-color: #fff;
}

.valid-mename {
    border-color: #28a745;
    background-color: #fff;
}

.validation-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.validation-message.error {
    color: #dc3545;
}

     .modal-content {
        padding: 25px;
        max-width: 600px;
        border-radius: 8px;
     }
     
     .message-box {
        background: #f5f5f5;
        padding: 15px;
        border-radius: 6px;
        margin: 15px 0;
     }
     
     .user-text {
        font-style: italic;
        margin-top: 8px;
     }
     
     .response-box {
        margin: 20px 0;
     }
     
     textarea {
        width: 90%;
        min-height: 100px;
        padding: 10px;
        margin: 8px 0;
        border-radius: 4px;
        font-family: Arial, sans-serif;
     }
     
     button {
        background: #4CAF50;
        color: white;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
     }
     
     .guidelines-box {
        background: #fff3cd;
        padding: 15px;
        border-radius: 6px;
        margin-top: 20px;
        font-family: Arial, sans-serif;
     }
     
     .copy-btn {
        background: #6c757d;
        font-size: 0.9em;
        padding: 5px 10px;
        margin-top: 10px;
     }

/* Modal Overlay (Hintergrund) */
.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 */
    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;
    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-1,
#quickstart-step-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    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;
    }
}


    
    .message-box {
        background: #f5f5f5;
        padding: 15px;
        border-radius: 6px;
        margin: 15px 0;
    }
    
    #suggestion-container {
        background: #f2efeb;
        padding: 15px;
        border-radius: 6px;
        margin-top: 20px;
        max-height: 300px;
        overflow-y: auto;
    }
    
    #suggestion-text {
        white-space: pre-wrap;
        word-break: break-word;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    #admin-response {
        width: 100%;
        min-height: 120px;
        padding: 12px;
        margin: 10px 0;
        border: 1px solid #ddd;
        border-radius: 4px;
        resize: vertical;
        font-family: inherit;
    }
    
    .copy-btn {
        background: #6c757d;
        color: white;
        padding: 8px 15px;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        font-size: 0.9em;
        margin-top: 10px;
    }
    
    .copy-btn:hover {
        background: #5a6268;
    }
    /* Footer */
.footer {
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    width: 100%;
}

.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;
}

/* Free tier button styling */
.free-tier-button {
    background: linear-gradient(135deg, #f783ac 0%, #e64980 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.free-tier-button:hover {
    background: linear-gradient(135deg, #e64980 0%, #d63384 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 73, 128, 0.3);
}

.free-tier-button:active {
    transform: translateY(0);
}

/* Subscription status styling */
.text-success {
    color: #28a745 !important;
    font-weight: 600;
}

.subscription-actions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #0070ba;
}

.subscription-actions p {
    margin: 8px 0;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Responsive grid */
.subscription-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .subscription-options {
        grid-template-columns: 1fr;
    }
}

/* Language Switcher (Inside Burger Menu) */
.burger-menu .language-switcher {
    padding: 15px 20px; /* Match other menu items */
    text-align: left; /* Align content to the left */
    font-size: 16px;
    color: white; /* Match text color */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Optional separator */
}

.burger-menu .language-switcher label {
    display: inline-block;
    margin-bottom: 5px; /* Space between label and dropdown */
    color: white; /* Match label color to menu text */
    font-size: 14px;
}

.burger-menu .language-switcher select {
    width: 100%; /* Ensure it spans the full width */
    padding: 8px;
    font-size: 16px;
    border: 1px solid #444; /* Subtle border for dropdown */
    border-radius: 4px;
    background-color: #555; /* Match dropdown background with menu */
    color: white; /* Dropdown text color */
    outline: none;
    appearance: none; /* Remove default dropdown styles for consistency */
    cursor: pointer;
}

.burger-menu .language-switcher select:hover {
    background-color: #666; /* Slight highlight on hover */
}

/* 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%;
    }
}
.tooltip-icon {
    display: inline-block;
    position: relative;
    cursor: pointer;
    vertical-align: text-bottom; /* Align with text baseline */
    margin-bottom: 1px; /* Fine-tune vertical alignment */
    margin-left: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tooltip-icon:hover {
    opacity: 1;
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -140px; /* Adjusted for larger icon */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 12px 16px; /* Increased padding */
    border-radius: 6px; /* Increased border radius */
    font-size: 16px; /* Increased font size */
    font-weight: normal;
    white-space: normal;
    z-index: 10;
    min-width: 300px; /* Increased minimum width */
    max-width: 500px; /* Increased maximum width */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    line-height: 1.5; /* Increased line height */
}

.tooltip-icon:hover::before {
    content: '';
    position: absolute;
    top: -10px; /* Tooltip arrow positioning */
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid transparent;
    border-bottom-color: #333; /* Tooltip arrow color */
    z-index: 10;
}

.tooltip-icon::after, .tooltip-icon::before {
    opacity: 0;
    visibility: hidden;
}
/* Delete Button Styling */
.delete-button {
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 2px 10px;
    font-size: 0.7em;
    font-weight: normal;
    cursor: pointer;
    margin-left: 8px;
    margin-top: 0;
    margin-bottom: 0;
    display: inline-block;
    width: auto;
    transition: background 0.2s;
    line-height: 1.2;
}
.delete-button:hover {
    background-color: #b52a37;
}
@media (max-width: 900px) {
    .delete-button {
        width: auto !important;
        display: inline-block !important;
    }
}
.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;
}

#recent-activity {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style the table for better readability */
#activityTable, #browserTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;  /* Smaller font for better readability */
}

#activityTable th, #activityTable td, #browserTable th, #browserTable td {
    border: 1px solid #ccc;  /* More visible row boundaries */
    padding: 8px;
    text-align: left;
}

#activityTable th, #browserTable th {
    background-color: #007bff;
    color: white;
    font-size: 10px;
}

/* Alternate row colors for better distinction */
#activityTable tr:nth-child(even), #browserTable tr:nth-child(even) {
    background-color: #f2f2f2;
}

#activityTable tr:hover,#browserTable tr:hover  {
    background-color: #dbe9ff;  /* Highlight row on hover */
    transition: background-color 0.3s ease-in-out;
}
.low-credits {
    color: red;
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
}

.credit-warning {
    background-color: #ffe6e6;
    color: #b30000;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    font-family: Arial, sans-serif;
    border: 1px solid #ff6666;
}

.recharge-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: #ff4d4d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 5px;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.recharge-link:hover {
    background-color: #cc0000;
}

.message-container {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.user-message {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}
.timestamp, .browser-id {
    font-size: 12px;
    color: gray;
    cursor: pointer;
}
.browser-id:hover {
    text-decoration: underline;
    color: blue;
}
.metric-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}
.metric {
    padding: 5px 10px;
    border-radius: 5px;
}
.metric.highlight {
    color: white;
    padding: 5px;
    border-radius: 5px;
}
.response {
    margin-top: 5px;
    padding: 8px;
    background-color: #f4f4f4;
    border-radius: 5px;
    font-size: 14px;
}
.action-buttons {
    margin-top: 5px;
}
#reset-filter {
    display: none;
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
#reset-filter:hover {
    background-color: #0056b3;
}
.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;
    cursor: pointer !important;
    color: white;
    text-decoration: none;
    border-radius: 9999px; /* Fully rounded */
    height: 50px; /* Consistent height */
    padding: 0 30px; /* Adjust padding for better balance */
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.24px;
    white-space: nowrap;
    min-width: 200px; /* Ensure button has a minimum width */
    background: linear-gradient(-4deg, #fb00ff, #8078FD);
    transition: all 0.3s ease;
}

.button-rounded:hover {
    filter: brightness(1.1);
}

.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;
}
.warning-message {
    font-size: 14px;
    margin-top: 5px;
}

.input-error {
    border: 2px solid red;
}

.input-success {
    border: 2px solid green;
}
/* Container for MeBot link & copy button */
.mebot-link-container {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 10px 0;
}

/* MeBot link */
.mebot-link {
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
}

.mebot-link:hover {
    text-decoration: underline;
}

/* Center the container */
.mebot-link-container {
    display: flex;
    align-items: center;  /* Ensures both elements are aligned */
    justify-content: center;
    gap: 6px;  /* Adjust spacing between link and copy icon */
    padding: 10px 0;
}

/* Style the MeBot link */
.mebot-link {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.mebot-link:hover {
    text-decoration: underline;
}

/* Fix Copy Button Alignment */
.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    top: -4px;
    display: flex;
    align-items: center;
    padding: 0;
    transition: transform 0.2s ease-in-out;
}

/* Adjust Copy Icon Size */
.copy-btn svg {
    width: 18px;  /* Matches font size */
    height: 18px;
    color: black;
}

/* Tooltip for "Copied!" */
.tooltip {
    position: absolute;
    background-color: black;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 5px;
}
.upload-status {
    font-size: 14px;
    color: gray;
    margin-top: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.respond-button, .takeover-button {
    padding: 8px 12px;
    border: none;
    color: white;
    background-color: #28a745;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    flex: 1; /* Damit beide Buttons gleich groß sind */
    max-width: 120px; /* Begrenzung der Breite */
}

.respond-button {
    background-color: #28a745;
}

.respond-button:hover {
    background-color: #28a745;
}

.takeover-button {
    background-color: #28a745;
}

.takeover-button:hover {
    background-color: #218838;
}

.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 Info Bar Styles */
.admin-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    z-index: 1000;
    padding: 0; /* Remove horizontal padding, handled by inner */
    margin-bottom: 72px;
}

.admin-info-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 8px 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.admin-info-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    height: 48px;
    box-sizing: border-box;
}

.admin-info-items {
    display: flex;
    width: 100%;
    gap: 20px;
    align-items: center;
}

.admin-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    box-sizing: border-box;
}

.admin-info-item i {
    color: #666;
    font-size: 1em;
}

.mebot-link {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.mebot-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.bot-selector select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9em;
    cursor: pointer;
    transition: border-color 0.2s;
}

.bot-selector select:hover {
    border-color: #007bff;
}

/* Settings page specific styles */
.settings-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 15px;
}

.settings-form {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
}

.preview-section {
    flex: 0 0 320px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-container {
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-container img {
    max-width: 100%;
    height: auto;
}

/* Form improvements */
input[type="text"],
input[type="file"],
select,
textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.tooltip-icon {
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

.tooltip-icon img {
    width: 16px;
    height: 16px;
    display: block;
}

button[type="submit"] {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.validation-message {
    margin-top: 5px;
    font-size: 0.9em;
}

.validation-message.error {
    color: #dc3545;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .preview-section {
        order: -1;
        flex: 1 1 auto;
        margin-bottom: 20px;
        margin-top: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        background: #f4f4f9;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .settings-form {
        width: 100%;
    }

    .admin-container {
        margin: 10px;
        padding: 15px;
    }

    .admin-container2 {
        margin: 10px;
        margin-top: 100px;
        padding: 15px;
    }

    .admin-container-inner {
        max-width: 100%;
        margin: 10px 0;
    }

    input[type="text"],
    input[type="file"],
    select,
    textarea {
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
        padding: 8px;
        box-sizing: border-box;
    }

    .form-group {
        margin-bottom: 20px;
    }

    label {
        display: block;
        margin-bottom: 8px;
    }

    .tooltip-icon {
        display: inline-block;
        margin-left: 5px;
        vertical-align: middle;
    }

    .tooltip-icon img {
        width: 24px;
        height: 24px;
        display: block;
    }

    .preview-container {
        margin: 10px 0;
        padding: 15px;
    }

    button[type="submit"] {
        width: 100%;
        padding: 12px;
        margin-top: 20px;
    }

    .validation-message {
        margin-top: 5px;
        font-size: 0.9em;
    }
    /* Improve mobile menu */
    .burger-menu {
        width: 100%;
        max-width: 300px;
    }

    .burger-menu ul li {
        padding: 12px 20px;
    }

    /* Improve mobile tables */
    #activityTable, #browserTable {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Improve mobile buttons */
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .respond-button, .takeover-button {
        width: 100%;
    }
}

/* Modern button styling */
button, .button {
  background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7em 1.5em;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30,64,175,0.08);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  margin: 0.25em 0.5em 0.25em 0;
  display: inline-block;
}
button:hover, .button:hover {
  background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
  box-shadow: 0 4px 16px rgba(30,64,175,0.15);
  transform: translateY(-2px) scale(1.03);
}
button:active, .button:active {
  background: #1e40af;
  box-shadow: 0 1px 4px rgba(30,64,175,0.10);
  transform: scale(0.98);
}
button:disabled, .button:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

/* Responsive button and form layout */
@media (max-width: 768px) {
  button, .button {
    width: 100%;
    min-width: 0;
    margin: 0.5em 0;
    font-size: 1.1rem;
    padding: 1em 0.5em;
  }
  .settings-form form,
  .admin-container form {
    width: 100%;
    min-width: 0;
    padding: 0;
  }
  .settings-form,
  .admin-container {
    padding: 0.5em;
  }
}

/* Add spacing between stacked buttons */
.button + .button,
button + button {
  margin-left: 0.5em;
}
@media (max-width: 768px) {
  .button + .button,
  button + button {
    margin-left: 0;
    margin-top: 0.5em;
  }
}

/* Responsive form elements */
.full-width-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    height: 48px;
    margin-bottom: 0;
}

.full-width-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

@media (max-width: 768px) {
    .admin-container {
        margin: 10px;
        margin-top: 100px;
        padding: 15px;
    }

    .full-width-input,
    .full-width-textarea {
        font-size: 16px; /* Prevent zoom on mobile */
    }

    button {
        width: 100%;
        margin-top: 10px;
    }
}

.input-compact {
    width: auto;
    min-width: 100px;
    max-width: 250px;
    display: inline-block;
    box-sizing: border-box;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.input-row output {
    margin-left: 8px;
    margin-right: 8px;
    font-size: 1.1em;
    line-height: 1;
    height: 24px;
    display: flex;
    align-items: center;
    padding-bottom: 2px;
}
.input-row .tooltip-icon {
    margin-left: 4px;
    margin-bottom: 2px;
}

.input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 1em;
}

.input-group input[type="text"],
.input-group .full-width-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    padding: 0 16px;
    height: 48px;
    box-sizing: border-box;
    margin-bottom: 0;
}

.input-group button[type="submit"] {
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border: none;
    padding: 0 32px;
    height: 48px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group button[type="submit"]:hover {
    background: linear-gradient(90deg, #1e40af 0%, #2563eb 100%);
}

.input-group .tooltip-icon {
    margin-left: 8px;
    align-self: center;
}

/* Remove old .input-button-row rules if present */
.input-button-row { display: none !important; }

.instructions-section {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 2em;
}
.instructions-left {
    flex: 1 1 300px;
    min-width: 250px;
}
.instructions-right {
    flex: 2 1 400px;
    min-width: 300px;
}
@media (max-width: 900px) {
    .instructions-section {
        flex-direction: column;
        gap: 16px;
    }
    .instructions-left, .instructions-right {
        min-width: 0;
        width: 100%;
    }
}

.align-with-button {
    /* No extra flex or height here, let .input-group control it */
    font-size: 16px;
    border-radius: 8px 0 0 8px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
  .admin-container {
    padding-top: 110px;
  }
}
@media (min-width: 901px) {
  .admin-container {
    padding-top: 40px;
  }
}

.button.is-primary.is-light {
   background: #f0f6ff !important;
   color: #2563eb !important;
   border: 1px solid #2563eb !important;
   box-shadow: none !important;
}
.integration-logos img {
    height: 30px !important;
    width: auto !important;
}

.tab-submit-btn {
    margin-top: 15px;
}

/* Modern Table Styling */
.modern-table-container {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    overflow: hidden; /* Ensures the border-radius is respected by the table */
}

.modern-table thead th {
    background-color: #f3f4f6; /* Lighter gray for the header */
    color: #374151; /* Darker text for header */
    font-weight: 600; /* Bolder header text */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 24px;
}

.modern-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.modern-table tbody tr:nth-child(even) {
    background-color: #f9fafb; /* Light gray for alternating rows */
}

.modern-table tbody tr:hover {
    background-color: #f0f4ff; /* A light blue for hover */
}

.modern-table td {
    padding: 12px 24px;
    border-top: 1px solid #e5e7eb;
}


@media (max-width: 768px) {
    .field.has-addons {
        display: flex;
    }
    .field.has-addons .control {
        width: 100%;
    }
    .field.has-addons .button {
        margin-top: 8px;
        width: 100%;
    }
}

/* Spacing after the admin header bar */
.admin-info-bar {
    margin-bottom: 72px;
}

@media (max-width: 768px) {
  .input-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .input-group input,
  .input-group button {
    width: 100%;
    min-width: 0;
  }
  .input-group .tooltip-icon {
    align-self: flex-end;
    margin-top: 4px;
  }
}
.collection-search-modal__resizer {
    position: absolute;
    bottom: 2px;
    right: 6px;
    cursor: nwse-resize;
    font-size: 0.9em;
    color: #aaa;
    user-select: none;
}

.collection-search-modal__resizer:hover {
    color: #666;
}

.collection-action-confirm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6000;
}

.collection-action-confirm-modal[aria-hidden="true"] {
    display: none;
}

.collection-action-confirm-modal__dialog {
    background: #fff;
    border-radius: 10px;
    padding: 20px 24px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.collection-action-confirm-modal__dialog h4 {
    margin: 0 0 10px;
    color: #222;
}

.collection-action-confirm-modal__dialog p {
    margin: 0 0 20px;
    color: #555;
    line-height: 1.4;
}

.collection-action-confirm-modal__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.collection-action-confirm-modal .btn {
    min-width: 90px;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}

.collection-action-confirm-modal .btn-ghost {
    background: #f1f1f1;
    color: #333;
}

.collection-action-confirm-modal .btn-danger {
    background: #e03131;
    color: #fff;
}

.collection-action-confirm-modal .btn-danger:hover {
    background: #c32b2b;
}
