:root {
    /* Cognigy Webchat Colors */
    --cognigy-chat-color-surface: #ffffff;
    --cognigy-chat-color-surface-secondary: #f4f4f4;
    --cognigy-chat-color-on-surface: #000000;
    --cognigy-chat-color-primary: #6366f1;
    --cognigy-chat-color-on-primary: #ffffff;
    --cognigy-chat-color-bot-message: #f4f4f4;
    --cognigy-chat-color-user-message: #6366f1;
    --cognigy-chat-color-error: #e32f45;

    /* Additional Custom Colors */
    --background-color: #f9fafb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --success-color: #10b981;
    --border-color: #e5e7eb;
    --json-bg: #1e293b;
    --json-text: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.5;
}

.container {
    display: flex;
    height: 100vh;
    max-width: 1920px;
    margin: 0 auto;
    padding: 1rem;
    gap: 1rem;
}

/* Left Sidebar - Chat Interface */
.left-sidebar {
    flex: 1;
    background: var(--cognigy-chat-color-surface);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    padding: 1rem;
    background-color: var(--cognigy-chat-color-surface);
    border-bottom: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--cognigy-chat-color-primary);
}

.user-info h3 {
    color: var(--cognigy-chat-color-on-surface);
    font-size: 1.1rem;
    font-weight: 600;
}

.status {
    color: var(--success-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--cognigy-chat-color-surface);
}

/* Message Container */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    scroll-behavior: smooth;
}

/* Message Styles */
.message {
    display: flex;
    margin: 15px 0;
    align-items: flex-start;
    animation: slideIn 0.3s ease-out;
    max-width: 85%;
    transition: all 0.3s ease;
}

.message:hover {
    transform: translateX(5px);
}

.message.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message.bot {
    margin-right: auto;
}

.message-content {
    padding: 16px;
    border-radius: 16px;
    position: relative;
    max-width: calc(100% - 60px);
    transition: all 0.3s ease;
}

.message-content:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.message.user .message-content {
    margin-right: 12px;
    border-top-right-radius: 4px;
}

.message.bot .message-content {
    margin-left: 12px;
    border-top-left-radius: 4px;
}

/* Message Header */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.message.user .message-header {
    color: rgba(255, 255, 255, 0.9);
}

.message.bot .message-header {
    color: #4b5563;
}

.sender-name {
    font-weight: 600;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Message Text */
.message-text {
    line-height: 1.5;
    word-wrap: break-word;
    font-size: 0.95rem;
}

.message.user .message-text {
    color: white;
}

.message.bot .message-text {
    color: #1f2937;
}

/* Message Data */
.message-data {
    margin-top: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9em;
    white-space: pre-wrap;
    overflow-x: auto;
}

.message.user .message-data {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.message.bot .message-data {
    background: rgba(0, 0, 0, 0.03);
    color: #4b5563;
}

/* Avatar Styles */
.avatar-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 12px;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite ease-in-out;
    transition: transform 0.3s ease;
    position: relative;
    overflow: visible;
}

.avatar-container::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        #4f46e5, #6366f1, #7c3aed, #8b5cf6, 
        #2563eb, #3b82f6, #0891b2, #06b6d4);
    background-size: 400% 400%;
    z-index: -1;
    animation: borderGradient 4s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-container:hover::after {
    opacity: 1;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s ease;
}

.avatar-container:hover img {
    transform: scale(1.1) rotate(5deg);
}

.avatar-container:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Avatar Change Button */
.avatar-change-button {
    background: #4f46e5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
    position: relative;
    overflow: hidden;
}

.avatar-change-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.avatar-change-button:hover::before {
    transform: translate(-50%, -50%) scale(2);
}

.avatar-change-button:hover {
    transform: scale(1.05);
    background: #4338ca;
}

.avatar-change-button:active {
    transform: scale(0.95);
}

.avatar-change-button i {
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

/* Quick Reply Buttons */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    animation: fadeIn 0.5s ease-out;
}

.quick-reply-button {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-reply-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Loading Animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px;
    animation: fadeIn 0.3s ease-out;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 50%;
    animation: bounce 1s infinite;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Chat Input Styles */
.chat-input {
    padding: 16px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 24px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    background: white;
    box-shadow: 0 0 0 2px #4f46e5, 0 4px 12px rgba(79, 70, 229, 0.1);
}

#messageInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 1rem;
    color: #1f2937;
    outline: none;
}

#messageInput::placeholder {
    color: #9ca3af;
}

.send-button {
    position: relative;
    background: #4f46e5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.send-button:hover {
    transform: scale(1.05);
    background: #4338ca;
}

.send-button:active {
    transform: scale(0.95);
}

.send-button i {
    font-size: 1rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.send-button:hover i {
    transform: translateX(3px) translateY(-3px);
}

.send-button-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: 1;
}

.send-button:hover .send-button-effect {
    transform: translate(-50%, -50%) scale(2);
}

/* Disable button styles */
.send-button:disabled {
    background: #e5e7eb;
    cursor: not-allowed;
    transform: none;
}

.send-button:disabled i {
    color: #9ca3af;
    transform: none;
}

/* Right Sidebar - JSON Monitor */
.right-sidebar {
    width: 400px;
    background: var(--json-bg);
    border-radius: 1rem;
    color: var(--json-text);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.json-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.json-header h3 {
    margin-bottom: 1rem;
    color: var(--cognigy-chat-color-on-primary);
}

.toggle-buttons {
    display: flex;
    gap: 0.5rem;
}

.toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--json-text);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toggle-btn.active {
    background: var(--cognigy-chat-color-primary);
    border-color: var(--cognigy-chat-color-primary);
}

.json-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.json-panel {
    display: none;
}

.json-panel.active {
    display: block;
}

.json-panel h4 {
    margin-bottom: 0.5rem;
    color: var(--json-text);
    opacity: 0.8;
}

pre {
    font-family: 'Fira Code', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
}

/* Cognigy Quick Reply Buttons */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-reply-button {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #4f46e5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply-button:hover {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

/* Disclaimer Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.popup.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: var(--cognigy-chat-color-surface);
    width: 90%;
    max-width: 600px;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: slideIn 0.3s ease-out;
}

.popup-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    margin: 0;
    color: var(--cognigy-chat-color-on-surface);
    font-size: 1.5rem;
    font-weight: 600;
}

.close-button {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.close-button:hover {
    background: var(--cognigy-chat-color-surface-secondary);
    color: var(--text-primary);
}

.popup-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

.popup-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.popup-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.popup-body li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.popup-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.checkbox-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.accept-button {
    background: var(--cognigy-chat-color-primary);
    color: var(--cognigy-chat-color-on-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.accept-button:active {
    transform: scale(0.98);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .right-sidebar {
        width: 100%;
        height: 300px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .message {
        animation: none;
    }
}

/* Configuration Panel Styles */
.config-panel {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--cognigy-chat-color-surface);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 400px;
    transform: translateX(calc(100% + 1rem));
    transition: transform 0.3s ease-in-out;
    z-index: 900;
}

.config-panel.show {
    transform: translateX(0);
}

.config-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--cognigy-chat-color-on-surface);
}

.toggle-config-btn {
    position: absolute;
    left: -3rem;
    top: 0.5rem;
    background: var(--cognigy-chat-color-primary);
    color: var(--cognigy-chat-color-on-primary);
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toggle-config-btn:hover {
    filter: brightness(1.1);
}

.config-content {
    padding: 1rem;
}

.config-group {
    margin-bottom: 1rem;
    position: relative;
}

.config-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.config-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--cognigy-chat-color-surface);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.config-group input:focus {
    outline: none;
    border-color: var(--cognigy-chat-color-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.config-group input::placeholder {
    color: var(--text-secondary);
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 2.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.toggle-password:hover {
    color: var(--text-primary);
}

.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.reset-btn {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--cognigy-chat-color-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: var(--cognigy-chat-color-surface-secondary);
}

.apply-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--cognigy-chat-color-primary);
    color: var(--cognigy-chat-color-on-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.apply-btn:hover {
    filter: brightness(1.1);
}

.apply-btn:active,
.reset-btn:active {
    transform: scale(0.98);
}

/* Adaptive Card Styles */
.adaptive-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 12px 0;
    animation: slideIn 0.3s ease-out;
}

.card-header {
    padding: 16px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.card-body {
    padding: 16px;
}

.card-field {
    margin-bottom: 16px;
}

.card-field:last-child {
    margin-bottom: 0;
}

.card-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #4b5563;
}

.card-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.card-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.card-select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.card-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.card-checkbox-item:hover {
    background-color: #f3f4f6;
}

.card-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.card-radio-item:hover {
    background-color: #f3f4f6;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.card-button {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-button.primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
}

.card-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.card-button.secondary {
    background: white;
    border: 2px solid #e5e7eb;
    color: #4b5563;
}

.card-button.secondary:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

/* Vibrant Theme Colors */
.theme-blue .card-header {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.theme-purple .card-header {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.theme-green .card-header {
    background: linear-gradient(135deg, #059669, #10b981);
}

.theme-orange .card-header {
    background: linear-gradient(135deg, #ea580c, #f97316);
}

.theme-pink .card-header {
    background: linear-gradient(135deg, #db2777, #ec4899);
}

/* Card Animations */
@keyframes cardHover {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

.adaptive-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adaptive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    margin: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-icon {
    font-size: 24px;
}

.modal-header h2 {
    margin: 0;
    flex-grow: 1;
    font-size: 1.5rem;
    font-weight: 600;
}

.hide-disclaimer {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.hide-disclaimer:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
}

.developer-info {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.developer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4f46e5;
    padding: 2px;
}

.developer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.developer-details h3 {
    margin: 0 0 10px 0;
    color: #1f2937;
}

.developer-details p {
    margin: 5px 0;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.developer-details i {
    color: #4f46e5;
    width: 20px;
}

.disclaimer-text {
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
}

.disclaimer-text h3 {
    margin: 0 0 12px 0;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer-text p {
    margin: 0 0 16px 0;
    color: #4b5563;
    line-height: 1.6;
}

.disclaimer-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.disclaimer-text li {
    margin: 8px 0;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer-text li i {
    color: #10b981;
}

.modal-footer {
    padding: 16px 24px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e5e7eb;
}

.dont-show-again {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    cursor: pointer;
}

.dont-show-again input {
    width: 16px;
    height: 16px;
}

.accept-button {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.accept-button:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.accept-button:active {
    transform: translateY(1px);
}

/* Show Disclaimer Button */
.show-disclaimer-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4f46e5;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 100;
}

.show-disclaimer-button.visible {
    display: flex;
    animation: slideIn 0.3s ease;
}

.show-disclaimer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.show-disclaimer-button:active {
    transform: translateY(1px);
}

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

/* Microphone Button */
.mic-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 50%;
    margin-right: 8px;
    display: none; /* Hidden by default, will be shown if speech recognition is supported */
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.mic-button:hover {
    color: var(--cognigy-chat-color-primary);
    background-color: rgba(99, 102, 241, 0.1);
}

.mic-button.recording {
    color: var(--cognigy-chat-color-error);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        background-color: rgba(227, 47, 69, 0.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Adjust input group for mic button */
.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
