/*
===============================================================================
INTERACTIVE COMPONENTS AND UI ELEMENTS
===============================================================================

PURPOSE:
Buttons, forms, inputs, chat, whiteboard, and interactive components

WHEN TO USE THIS FILE:
- When adding/modifying interactive components and ui elements
- When working with foundational styling elements
- When buttons, forms, inputs, chat, whiteboard, and interactive components

LOAD ORDER: This file loads in position 3 of 6
- Loaded after: base, layout
- Loaded before: auth, pages, utilities

DEPENDENCIES:
- Requires: base.css variables (if not base.css itself)
- Required by: All subsequent CSS files

Generated: 2025-09-04 16:59:11
Original file: common.css (119677 bytes)
===============================================================================

CSS ARCHITECTURE RULES:
- This file contains COMMON rules used by both mobile AND desktop
- Mobile-specific rules are in mobile.css (max-width: 1339px)
- Desktop-specific rules are in desktop.css (min-width: 1340px)
- Rule migration logic:
  * If common rule exists + mobile rule exists + desktop rule missing → Copy common to desktop, remove from common
  * If common rule exists + desktop rule exists + mobile rule missing → Copy common to mobile, remove from common  
  * If common rule exists + both mobile and desktop rules exist → Remove from common
  * If common rule exists + neither mobile nor desktop rules exist → Keep in common
- Mobile and desktop rules never overlap due to media queries, avoiding inheritance issues

PROPERTY-LEVEL MIGRATION:
- When moving rules from common to mobile/desktop, verify ALL CSS properties are accounted for
- Compare each property: common vs mobile vs desktop
- Copy missing properties from common to target file(s)
- Only remove common rule after all properties are properly migrated
- If conflicting values exist, keep the specific (mobile/desktop) value
- Merge properties into existing rules, don't create duplicate rules
*/

.auth-form {
    display: flex;
    align-items: center;
}

.auth-form .input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form h2 {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
}

.auth-form input {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.75rem;
    background: var(--background-color);
    color: var(--text-primary);
    height: 28px;
    width: 100px;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    height: 28px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.btn-primary {
    background: #34495e;
    color: white;
}

.btn-primary:hover {
    background: #1a252f;
}

.personality-select-button {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1E6BB8; /* Match Chat/Whiteboard heading color */
    text-decoration: underline; /* Add underline */
    display: inline-block;
    vertical-align: middle;
    padding: 4px 8px;
    height: 28px;
    line-height: 20px;
    background: linear-gradient(135deg, rgba(71, 163, 243, 0.06), rgba(30, 107, 184, 0.03));
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#personality-select {
    padding-top: 14px; /* Further increased vertical alignment fix */
}

.personality-select-button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

#personality-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
    padding-right: 2rem;
    height: 28px;
}

.chat-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-container h2 {
    display: block; /* Show by default for consistent alignment */
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #47a3f3, #1E6BB8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.2; /* Consistent line height */
}

.chat-header-container .btn {
    color: #1E6BB8;
    text-decoration: underline;
    font-weight: 600;
    background-color: rgba(71, 163, 243, 0.06); /* Very light blue background */
    border-radius: 4px;
    padding: 4px 10px;
}

.whiteboard-container {
    width: 33.33%;
    background: linear-gradient(135deg, rgba(71, 163, 243, 0.06), rgba(30, 107, 184, 0.03));
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    /* MOVED: Fixed height rules moved to desktop.css for desktop-specific calculations */
    position: relative;
    box-sizing: border-box;
}

.whiteboard-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.whiteboard-header-container h2 {
    display: block; /* Show by default for consistent alignment */
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #47a3f3, #1E6BB8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.2; /* Consistent line height */
}

.whiteboard-header-container .btn {
    color: #1E6BB8;
    text-decoration: underline;
    font-weight: 600;
    background-color: rgba(71, 163, 243, 0.06); /* Very light blue background */
    border-radius: 4px;
    padding: 4px 10px;
}

.whiteboard-input-wrapper {
    display: flex;
    flex-direction: column;
}

.whiteboard-sections-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--spacing-md);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.whiteboard-input {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(71, 163, 243, 0.06), rgba(30, 107, 184, 0.03)); /* Match whiteboard container background */
    border-radius: 0;
    height: auto; /* Allow height to adjust based on content */
    min-height: 52px; /* Minimum height */
    align-items: flex-end; /* Align items to the bottom */
    margin: 0;
    box-shadow: none;
    position: relative; /* Needed for proper positioning */
}

.whiteboard-input button {
    height: 36px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    color: white !important;
    font-size: 0.8rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.whiteboard-input button:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px);
}

.whiteboard-input select {
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    line-height: 1.2;
    padding: 8px 12px;
}

.chat-messages {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    overflow-x: hidden;
    width: 100%;
}

.chat-messages li {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    max-width: 75%;
    animation: fadeIn var(--transition-normal);
    line-height: 1.6;
    position: relative;
    margin-bottom: var(--spacing-md);
}

.chat-messages li.helper-message {
    background-color: var(--chat-bg);
    align-self: flex-start;
    border-bottom-left-radius: var(--radius-sm);
    padding-left: 65px;
}

.chat-messages li.user-message {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: var(--radius-sm);
    padding-right: 65px;
}

.chat-messages li.whiteboard-activity-message {
    align-self: center;
    background: none;
    border: none;
    padding: 4px 16px;
    margin: 2px auto;
    max-width: 60%;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    background: linear-gradient(135deg, #47a3f3, #1E6BB8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    animation: fadeIn var(--transition-normal);
}

.chat-messages li.whiteboard-activity-message .timestamp {
    display: none;
}

.chat-messages li:first-child {
    margin-top: 12px;
}

.input-container:focus-within {
    box-shadow: var(--shadow-lg);
}

.input-container textarea {
    flex: 1;
    padding: 6px 8px; /* Match the whiteboard input padding exactly */
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    resize: none;
    font-size: 0.9375rem;
    line-height: 1.5;
    height: 32px; /* Match the whiteboard input height */
    min-height: 32px; /* Ensure minimum height */
    overflow-y: auto;
    transition: all var(--transition-fast);
    display: block;
    box-sizing: border-box;
    margin: 0;
    font-family: inherit;
}

.input-container textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(124, 93, 250, 0.1);
}

.whiteboard-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(124, 93, 250, 0.1);
}

.input-container textarea::placeholder {
    color: var(--text-light);
    opacity: 0.8;
    line-height: 1.6;
}


.chat-input-wrapper, .whiteboard-input-wrapper, .chat-box, .whiteboard-sections-container {
    max-width: 100%;
    box-sizing: border-box;
}

.chat-messages li, .whiteboard-item, .chat-placeholder, .whiteboard-placeholder {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.input-container, .whiteboard-input {
    max-width: 100%;
    box-sizing: border-box;
}

.input-container textarea, .whiteboard-input input, .whiteboard-input select {
    max-width: 100%;
    box-sizing: border-box;
}

.input-container {
        flex-shrink: 0;
        padding: 12px 16px;
        background-color: var(--background-color);
        border-top: 1px solid var(--border-color);
        /* display: flex; - Removed to prevent overriding inline style="display:none" */
        gap: 8px;
        align-items: flex-end;
        position: relative;
        bottom: 0;
        margin-bottom: 20px; /* Reduced bottom margin to prevent expanding downward */
        /* Ensure input container is properly positioned for scroll calculations */
        scroll-margin-bottom: 20px; /* Help browser position this element correctly when scrolling */
    }

.input-container textarea {
        flex: 1;
        min-height: 48px; /* Increased from 44px */
        max-height: 120px;
        scroll-margin-bottom: 40px;
        resize: none;
        border-radius: 12px;
        padding: 12px 16px;
        border: 1px solid var(--border-color);
        font-size: 1rem;
    }

.input-container button {
        flex-shrink: 0;
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
        border-radius: 12px;
        white-space: nowrap;
    }


.chat-placeholder-container {
        padding: 16px;
        height: auto !important; /* Override desktop height constraint */
        max-height: none; /* Remove height restriction */
        overflow: visible; /* No scrollbars, expand down */
        position: relative !important; /* Override absolute positioning */
        top: auto !important;
        left: auto !important;
        width: auto !important;
    }

.chat-placeholder-container .chat-box {
        height: auto !important; /* Allow chat placeholder box to expand */
        min-height: auto !important;
        overflow: visible !important;
    }

.chat-placeholder-container {
        height: auto !important;
        max-height: none !important;
        min-height: auto !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 12px !important;
        display: none;
    }

.chat-container.chat-active {
        /* FIX: Maintain fixed height for regular chat to enable scrolling */
        height: auto; /* Use default height behavior */
        max-height: none; /* Allow natural height */
        min-height: 0; /* Allow flex shrinking */
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 12px !important;
        display: none;
    }


.whiteboard-container {
        display: none;
    }


.chat-placeholder-container:not([style*="display: none"]) {
        /* FIX: Ensure proper positioning and expansion */
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        z-index: 1 !important; /* Lower z-index to prevent overlay */
        /* FIX: Center content properly with even padding */
        padding: 16px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

.chat-placeholder {
        /* FIX: Center content properly with even padding */
        padding: 12px !important;
        margin: 0 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

.chat-starters {
        /* FIX: Center content properly with even padding */
        padding: 8px !important;
        margin: 0 !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

.chat-placeholder-two-columns {
        gap: 16px;
    }

.chat-placeholder-right-column {
        width: 100% !important;
        max-width: 100% !important;
        padding-top: 0 !important; /* Remove top padding that causes spacing */
        margin-top: 0 !important; /* Remove top margin */
    }

.chat-personality-container {
        margin-bottom: 16px;
    }

.chat-personality-label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

.chat-new-conversation-button {
        width: auto;
        max-width: 300px;
        padding: 12px 16px;
        font-size: 1rem;
        margin: 0 auto var(--spacing-md) auto; /* Center the button and add bottom margin */
    }

.chat-starters {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

.btn, .auth-form input, .auth-form select {
        min-height: 44px;
        height: 44px;
        padding: 12px 16px;
        font-size: 1rem;
    }

.input-container textarea {
        min-height: 48px; /* Increased from 44px */
        padding: 12px 16px;
        font-size: 1rem;
    }

.whiteboard-input {
        gap: 6px !important; /* Reduce gap between elements */
        padding: 8px 12px !important; /* Reduce padding */
        min-height: 50px !important; /* Slightly reduce height */
    }

.whiteboard-input button {
        min-height: 40px; /* Reduce from 44px to 40px */
        height: 40px;
        font-size: 0.875rem; /* Slightly smaller font */
    }

.whiteboard-input select {
        min-width: 90px !important; /* Reduce dropdown width */
        max-width: 110px !important; /* Set max width */
        padding: 8px 20px 8px 8px !important; /* Compact padding */
        font-size: 0.8rem !important; /* Smaller font for dropdown */
    }

.whiteboard-input input {
        flex: 1;
        padding: 8px 10px !important; /* More compact padding */
        font-size: 0.875rem !important;
    }

.whiteboard-input button {
        min-width: 50px !important; /* Reduce button width */
        max-width: 60px !important; /* Set max width */
        padding: 8px 10px !important; /* Compact padding */
        font-size: 0.75rem !important; /* Smaller font */
        border-radius: 6px !important; /* Slightly smaller radius */
    }

.chat-starter-button {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 1rem;
        margin-bottom: 8px;
    }

.whiteboard-item {
        min-height: 44px;
        padding: 12px 16px;
        margin-bottom: 8px;
    }

.whiteboard-item-controls button {
        min-height: 44px;
        min-width: 44px;
        padding: 12px;
    }


.cl-userButtonTrigger {
        display: flex !important;
        align-items: center !important;
    }

.cl-userButtonAvatarBox {
        display: flex !important;
    }

.checkout-modal button {
        min-height: 44px;
        font-size: 1rem;
        padding: 12px 16px;
    }

.checkout-modal button:not(.checkout-modal-close) {
        margin-top: 16px;
        width: 100%;
    }

.chat-box, .whiteboard-sections-container {
        /* Improve scrolling performance */
        will-change: scroll-position;
    }

.whiteboard-item, .chat-starter-button {
        touch-action: manipulation;
    }

.whiteboard-input input {
    padding: var(--spacing-sm);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    height: 36px;
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 93, 250, 0.1); /* Match the chat input shadow */
}

.whiteboard-input select {
    min-width: 120px;
    padding: 8px 24px 8px 12px; /* Increased padding */
    height: 36px; /* Taller to prevent text cutting */
    line-height: 1.2; /* Better line height */
    text-overflow: ellipsis;
    font-size: 0.8rem;
    background-position: right 0.25rem center;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1em;
    border: 2px solid var(--primary-color) !important; /* Force same border as chat */
    outline: none;
}

.whiteboard-input input {
    flex: 1;
    padding: 6px 8px; /* Exactly match chat textarea padding */
    border: 2px solid var(--primary-color); /* Use exact same border as chat */
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    height: 36px; /* Match height */
    box-sizing: border-box;
    outline: none;
}

.whiteboard-input button {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    height: 28px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    color: white !important;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.whiteboard-input button:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px);
}

.whiteboard-section {
    display: none; /* Hidden by default, shown when items exist */
    background: linear-gradient(135deg, rgba(71, 163, 243, 0.06), rgba(30, 107, 184, 0.03)); /* Light blue background */
}

.whiteboard-section.has-items {
    display: block;
}

.whiteboard-section h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 var(--spacing-sm) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.whiteboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.whiteboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 50px; /* Added left padding for avatar */
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-sm);
    background-color: rgba(124, 93, 250, 0.15); /* Light purple background like language selector selected item */
    font-size: 0.875rem;
    position: relative; /* For avatar positioning */
}

.whiteboard-avatar-container {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    box-shadow: 0 0 0 2px var(--primary-color); /* Same as Therapybot heading color */
}

.whiteboard-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whiteboard-item.user-generated .whiteboard-avatar-container {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.whiteboard-item-goal {
    border-left: 3px solid #4CAF50; /* Green for goals */
}

.whiteboard-item-insight {
    border-left: 3px solid #2196F3; /* Blue for insights */
}

.whiteboard-item-next-step {
    border-left: 3px solid #FF9800; /* Orange for next steps */
}

.whiteboard-item-controls {
    display: flex;
    align-items: center;
    gap: 12px; /* Increased from var(--spacing-xs) to add more space between controls */
    margin-left: 8px;
}

.whiteboard-item-controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem; /* Increased from 0.875rem to make icons bigger */
    padding: var(--spacing-xs);
    color: var(--text-secondary);
}

.whiteboard-item-controls button:hover {
    color: var(--text-primary);
}

.whiteboard-item.dragging {
    opacity: 0.5;
}

.whiteboard-item.focused {
    border-left: 4px solid var(--accent);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: rgba(124, 93, 250, 0.15); /* Keep light purple background for focused items too */
    opacity: 1;
}

.whiteboard-item.unfocused {
    opacity: 0.7;
}

.whiteboard-item-focus {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.whiteboard-item-focus:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.05);
}

.whiteboard-item.unfocused:hover {
    opacity: 0.9;
}

.whiteboard-status-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    animation: statusSlideIn 0.3s ease;
    opacity: 0.95;
    max-width: 300px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
}

.whiteboard-status-indicator::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.whiteboard-status-indicator.saving {
    background: linear-gradient(135deg, #47a3f3, #1E6BB8);
}

.whiteboard-status-indicator.saving::before {
    background-color: white;
    animation: pulse 1.2s infinite;
}

.whiteboard-status-indicator.success {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    animation: statusSlideIn 0.3s ease, fadeOut 0.5s ease 2s forwards;
}

.whiteboard-status-indicator.success::before {
    background-color: white;
    clip-path: polygon(0% 50%, 40% 80%, 100% 20%, 80% 0%, 40% 50%, 20% 30%);
}

.whiteboard-status-indicator.error {
    background-color: var(--error-color);
}

.whiteboard-status-indicator.error::before {
    background-color: white;
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
}

.whiteboard-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: var(--spacing-lg);
    background-color: transparent;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.whiteboard-placeholder-heading {
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    text-align: center;
}

.whiteboard-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px; /* Match chat placeholder width */
}

.whiteboard-placeholder-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.whiteboard-placeholder p {
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 80%;
    line-height: 1.5;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.whiteboard-placeholder-button {
    margin-top: auto; /* Push buttons to bottom of container */
    margin-bottom: var(--spacing-lg);
    /* Ensure consistent button styling */
    cursor: pointer;
    color: white;
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: var(--primary-color);
    border: none;
    transition: all var(--transition-normal);
    width: auto; /* Let buttons size to content */
    min-width: 200px; /* Ensure minimum consistent width */
}

.whiteboard-placeholder-button {
    margin-top: auto; /* Push buttons to bottom of container */
    margin-bottom: var(--spacing-lg);
    /* Ensure consistent button styling */
    cursor: pointer;
    color: white;
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: var(--primary-color);
    border: none;
    transition: all var(--transition-normal);
    width: auto; /* Let buttons size to content */
    min-width: 200px; /* Ensure minimum consistent width */
}

.whiteboard-placeholder-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.whiteboard-placeholder-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    position: relative;
    min-height: 300px; /* Ensure minimum height for proper button alignment */
}

.chat-placeholder {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 100%;
    text-align: center;
    background-color: transparent;
    border-radius: var(--radius-lg);
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    padding: var(--spacing-lg);
    box-sizing: border-box;
}

.chat-placeholder p, .chat-placeholder-heading {
    margin-bottom: var(--spacing-lg);
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 80%;
    line-height: 1.5;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.chat-new-conversation-button {
    margin: 0 auto var(--spacing-lg) auto; /* Center the button and add bottom margin */
}

.chat-new-conversation-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.chat-starters {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md); /* Increased from var(--spacing-sm) */
    width: 100%;
    max-width: 400px;
    margin-bottom: var(--spacing-md);
}

.chat-placeholder-two-columns {
    display: flex;
    width: 100%;
    gap: var(--spacing-xl); /* Increased from var(--spacing-lg) */
    justify-content: center;
}

.chat-placeholder-right-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48%;
    max-width: 450px;
    position: relative; /* Add position for alignment */
    min-height: 300px; /* Ensure minimum height for proper button alignment */
}

.chat-new-conversation-button {
    cursor: pointer;
    color: white;
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: var(--primary-color);
    border: none;
    transition: all var(--transition-normal);
    margin: 0 auto var(--spacing-lg) auto; /* Center the button and add bottom margin */
    width: auto;
    max-width: 300px;
}

.whiteboard-placeholder-button {
    cursor: pointer;
    color: white;
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background-color: var(--primary-color);
    border: none;
    transition: all var(--transition-normal);
    margin-top: auto; /* Push to bottom of flex container */
    margin-bottom: var(--spacing-lg);
}

.whiteboard-container {
    opacity: 1;
    visibility: visible;
}

.cl-userButtonPopup {
    z-index: 100;
}

.personality-select-wrapper {
    position: relative;
    display: inline-block;
}

.personality-select-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
    font-size: 0.9rem;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: left;
    min-height: 80px;
}

.personality-select-button:hover {
    border-color: var(--primary-color);
}

.personality-select-button .personality-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.personality-select-button .personality-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personality-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    width: 260px;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-color);
    display: none;
    padding: 4px;
    margin-top: 4px;
}

.personality-dropdown.active {
    display: block;
    border: 1px solid var(--border-color);
}

.personality-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    min-height: 80px;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.personality-option:hover {
    background-color: var(--chat-bg);
    border: 1px solid var(--primary-color);
}

.personality-option.selected {
    background-color: rgba(124, 93, 250, 0.1);
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

.personality-select-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border: 1px solid var(--primary-color);
}

.personality-option .personality-avatar {
    width: 60px;
    height: 60px;
}

.personality-horizontal-wrapper ~ .personality-select-wrapper {
    display: none !important;
}

.personality-horizontal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.personality-avatars-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 8px;
    margin-bottom: 12px;
    width: 300px; /* 2 avatars * 140px + 20px gap */
}

.personality-avatar-wrapper {
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 140px; /* Same width as name wrapper */
    width: 140px; /* Match name wrapper exactly */
    height: 70px; /* For alignment */
    display: flex;
    justify-content: center;
    align-items: center;
}

.personality-avatar-wrapper:hover .personality-avatar {
    transform: translateY(-2px);
    border-color: rgba(124, 93, 250, 0.3);
}

.personality-avatar-wrapper.selected .personality-avatar {
    border-color: #7c5dfa;
    box-shadow: 0 0 0 2px rgba(124, 93, 250, 0.2);
}

.personality-avatar-wrapper:focus .personality-avatar {
    outline: none;
    border-color: #7c5dfa;
    box-shadow: 0 0 0 2px rgba(124, 93, 250, 0.4);
}

.personality-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.personality-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personality-names-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 8px;
    margin-top: 8px;
    width: 300px; /* 2 names * 140px + 20px gap */
}

.personality-name-wrapper {
    text-align: center;
    flex: 0 0 140px; /* Wider to accommodate text better */
    width: 140px; /* Wider to accommodate text better */
    word-break: normal; /* Allow natural word breaks */
    hyphens: none; /* Disable hyphenation to prevent unwanted breaks */
    line-height: 1.2;
}

.personality-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
    display: block;
    line-height: 1.3;
    white-space: pre-line; /* Preserve line breaks from translation files */
    text-align: center !important; /* Force center alignment */
}

.personality-name-wrapper.selected .personality-name {
    color: #7c5dfa;
    font-weight: 700;
}

.personality-description-container {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    min-height: 2.8em;
    opacity: 1;
    transition: opacity 0.3s ease;
    max-width: 100%;
    padding: 0 10px;
}

.chat-personality-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-md);
    width: 100%;
    max-width: 400px;
}

.personality-horizontal-wrapper .auth-form {
    display: block !important;
    width: 100%;
}

.personality-select-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
    font-size: 0.9rem;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: left;
    min-height: 80px;
}

.personality-select-button:hover {
    border-color: var(--primary-color);
}

.personality-select-button .personality-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.personality-select-button .personality-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personality-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    width: 260px;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-color);
    display: none;
    padding: 4px;
    margin-top: 4px;
}

.personality-dropdown.active {
    display: block;
    border: 1px solid var(--border-color);
}

.personality-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
    min-height: 80px;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.personality-option.selected {
    background-color: rgba(124, 93, 250, 0.1);
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

.personality-select-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border: 1px solid var(--primary-color);
}

.personality-option .personality-avatar {
    width: 50px;
    height: 50px;
}

.personality-horizontal-wrapper ~ .personality-select-wrapper {
    display: none !important;
}

.cl-userButtonTrigger {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Align items to the start */
    background: linear-gradient(135deg, rgba(71, 163, 243, 0.06), rgba(30, 107, 184, 0.03)) !important;
    border-radius: var(--radius-md) !important;
    padding: 0px 8px 4px 8px !important;
    margin-top: 6px !important;
    height: 38px !important;
    transition: all 0.2s ease !important;
    gap: 8px !important; /* Add spacing between avatar and text */
}

.cl-userButtonTrigger:hover {
    background-color: rgba(71, 163, 243, 0.15) !important;
    transform: translateY(-1px) !important;
}

.cl-userButtonAvatarBox {
    border: none !important;
    box-shadow: 0 0 0 2px var(--primary-color) !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Adjust sizing to fit the new container */
    transform: scale(1.2) !important;
    margin-right: 4px !important;
}

.cl-userButtonAvatarImage {
    padding: 2px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    transform: scale(1.5) translateY(0) !important; /* Adjusted to remove any vertical offset */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cl-userButtonAvatarImage img {
    border-radius: 50% !important;
    transform: scale(0.95) !important;
}

.cl-userButtonText {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #1E6BB8 !important;
    text-decoration: underline !important;
    line-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.language-select-wrapper {
  position: relative;
  display: inline-block;
}

.language-option.selected {
  background-color: rgba(124, 93, 250, 0.15);
  font-weight: 600;
  color: var(--primary-color);
}

.chat-personality-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-md);
    width: 100%;
    max-width: 450px;
}

.chat-placeholder-left-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all components horizontally */
    justify-content: center; /* Center components vertically within the column */
    width: 100%;
    gap: var(--spacing-md);
}

.chat-personality-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #47a3f3, #1E6BB8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.chat-placeholder .auth-form {
    display: flex;
    justify-content: center;
    width: 100%;
}

.chat-placeholder #personality-dropdown {
    display: block !important;
    /* margin-bottom: var(--spacing-md); */
}

.chat-placeholder-heading {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.5;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
    text-align: center;
}

.chat-placeholder-two-columns {
    display: flex;
    width: 100%;
    gap: var(--spacing-xl); /* Increased from var(--spacing-lg) */
    justify-content: center;
}

.chat-placeholder-right-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
    max-width: 320px;
}

.chat-starter-button {
    padding: var(--spacing-md) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    background: linear-gradient(135deg, rgba(71, 163, 243, 0.06), rgba(30, 107, 184, 0.03)) !important;
    color: var(--text-primary) !important;
    font-size: 1rem !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    display: block !important;
    width: 100% !important;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    /* Override any button resets */
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.chat-starter-button:hover {
    background-color: var(--chat-bg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.chat-new-conversation-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.chat-placeholder-container {
    position: relative !important; /* FIX: Use normal document flow instead of absolute */
    top: auto !important;
    left: auto !important;
    width: 100%;
    height: auto; /* Allow expanding down instead of fixed height */
    min-height: auto !important; /* FIX: Remove min-height constraint */
    z-index: 10;
    background-color: #fff;
    overflow: visible; /* No scrollbars, expand down */
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Prevent interaction when fading */
    display: flex;
    flex-direction: column;
}

.chat-placeholder-container.visible {
    opacity: 1;
    pointer-events: auto; /* Allow interaction when visible */
}

.checkout-button {
    width: 100%;
    font-size: 1.1rem;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--secondary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
}

.gdpr-actions .btn {
    min-width: 150px;
}

/* Summary modal content styling - base styles */
.summary-content {
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.summary-section {
    margin-bottom: 1.5rem;
}

.summary-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.summary-section ul {
    margin: 0;
    padding-left: 1.2rem;
}

.summary-section li {
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

/* Conversation messages styling */
.conversation-messages {
    margin-top: 1rem;
}

.conversation-message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid #ddd;
}

.conversation-message.user {
    background-color: #f8f9fa;
    border-left-color: #2c5aa0;
}

.conversation-message.assistant {
    background-color: #e8f4fd;
    border-left-color: #28a745;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.message-role {
    font-weight: bold;
    color: #555;
}

.message-timestamp {
    color: #666;
    font-size: 0.8rem;
}

.message-content {
    line-height: 1.5;
}

.summary-text {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.summary-formatted-text {
    line-height: 1.6;
}

.summary-formatted-text p {
    margin: 0.5rem 0;
}

.summary-formatted-text ul {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.summary-formatted-text li {
    margin: 0.3rem 0;
}

.summary-actions {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.summary-loading, .summary-error {
    text-align: center;
    padding: 2rem;
}

.summary-meta {
    text-align: center;
    color: var(--text-light);
    margin-top: 1rem;
}

.summary-whiteboard-heading {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}


.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .btn {
    flex: 1;
    min-width: 140px;
    text-decoration: none;
}

.login-button {
    font-size: 1.1rem;
    padding: var(--spacing-md) var(--spacing-xl);
    min-width: 200px;
}

/* Ensure login button is centered on premium page */
.premium-container .login-button {
    margin: 0 auto !important;
    display: block !important;
    text-align: center;
}

.payment-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.payment-option.selected .option-details {
    color: white;
    font-weight: 600;
}

.payment-option.selected .duration {
    color: white;
    font-weight: 600;
}

.checkout-button.disabled {
    background-color: var(--text-light) !important;
    color: var(--bg-primary) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.checkout-button.disabled:hover {
    background-color: var(--text-light) !important;
    transform: none !important;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-buttons .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    display: inline-block;
    text-align: center;
}

.chat-container:not(.chat-active) .input-container {
    scroll-margin-top: 0 !important;
    scroll-padding-top: 0 !important;
}

.input-container {
    scroll-margin-top: 0 !important;
    scroll-padding-top: 0 !important;
}

.chat-placeholder-container {
    position: relative !important; /* Use normal document flow */
    top: auto !important;
    left: auto !important;
    width: 100%;
    height: auto !important; /* Allow natural height */
    z-index: 10;
    background-color: #fff;
    overflow: visible; /* No scrollbars, expand down */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.chat-placeholder-container.visible {
    opacity: 1;
    pointer-events: auto;
}

.welcome-button {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 36px;
}

.welcome-button-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    font-weight: bold;
}

.welcome-button-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.welcome-button-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.welcome-button-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.chat-placeholder {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: transparent;
    border-radius: var(--radius-lg);
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    padding: var(--spacing-lg);
    box-sizing: border-box;
}


.trial-expired-modal .modal-content {
    max-width: 500px;
    width: 90%;
}

.trial-expired-modal .modal-body {
    text-align: center;
    padding: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group label.required::after {
    content: " *";
    color: #e74c3c;
}

.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    background-color: #fff;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 93, 250, 0.1);
}

.form-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 93, 250, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    background-color: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 93, 250, 0.1);
}

/* Feedback message styles */
.feedback-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: opacity 0.3s ease;
}

.feedback-message-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.feedback-message-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.chat-placeholder-container:not([style*="display: none"]) .chat-input-wrapper {
    height: auto !important; /* Allow chat placeholder wrapper to expand */
    min-height: auto !important;
    overflow: visible !important;
}

.chat-container.chat-active .chat-input-wrapper {
    height: auto !important; /* Use natural height */
    min-height: 0 !important; /* Allow flex shrinking */
    overflow: hidden !important; /* Hide overflow to enable proper chat layout */
}

.chat-placeholder-container .chat-input-wrapper {
    height: auto !important; /* Allow chat placeholder wrapper to expand */
    min-height: auto !important;
    overflow: visible !important;
}

.chat-container.chat-active .chat-input-wrapper {
    height: auto !important; /* Use natural height */
    min-height: 0 !important; /* Allow flex shrinking */
    overflow: hidden !important; /* Hide overflow to enable proper chat scrolling */
}

.chat-placeholder-container .chat-box {
    height: auto !important; /* Allow chat placeholder box to expand */
    min-height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Hide input field when chat placeholder is visible */
.chat-input-wrapper:has(.chat-placeholder-container:not([style*="display: none"])) .input-container {
    display: none !important;
}

.chat-input-wrapper:has(.chat-placeholder-container.visible) .input-container {
    display: none !important;
}


#clear-whiteboard-form {
    display: none; /* Hidden by default, shown when logged in via JS */
}

/* Founder quote styling */
.founder-quote {
    margin: 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(71, 163, 243, 0.05), rgba(30, 107, 184, 0.02));
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-style: italic;
    position: relative;
}

.founder-quote-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.founder-quote-text::before {
    content: '"';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.founder-quote-text::after {
    content: '"';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.founder-quote-attribution {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: right;
    font-style: normal;
    font-weight: 600;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(30, 107, 184, 0.1);
}

