/* Design Ideation Analysis Styles */

/* Modal Overlay Styles */
.analysis-modal {
    position: fixed;
    top: 0;
    /* left: 0; */
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

/* Modal Styles */
.design-ideation-modal {
    max-width: 100vw;
    /* width: 90vw; */
    /* max-height: 90vh; */
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0 0 0.5rem 0;
    color: #1976d2;
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-header p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.modal-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-shrink: 0;
}

/* Input Section */
.input-section {
    margin-bottom: 2rem;
}

.input-section label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-section textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.input-section textarea:focus {
    outline: none;
    border-color: #1976d2;
}

/* Preferences Section */
.preferences-section {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.preferences-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
}

.preferences-toggle:hover {
    background: #e9ecef;
}

.preferences-content {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.preference-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.preference-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
    flex: 1;
}

.preference-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.preference-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

/* Modal Buttons */
.cancel-btn {
    padding: 0.75rem 1.5rem;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cancel-btn:hover {
    background: #eeeeee;
    color: #333;
}

.generate-btn {
    padding: 0.75rem 1.5rem;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.generate-btn:hover:not(:disabled) {
    background: #1565c0;
    transform: translateY(-1px);
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Results Overlay Styles */
.design-ideation-results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.design-ideation-results-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    /* max-width: 1200px; */
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Results Styles */
.design-ideation-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.results-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    z-index: 10;
}

.header-left h2 {
    margin: 0 0 0.5rem 0;
    color: #1976d2;
    font-size: 1.8rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.close-results {
    background: none;
    border: none;
    font-size: 32px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-results:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.results-content {
    padding: 32px;
}

.based-on {
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Context Breadcrumb */
.context-breadcrumb {
    background: #fff3e0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #ff9800;
}

.breadcrumb-title {
    font-weight: 500;
    color: #e65100;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    background: none;
    border: none;
    color: #f57c00;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

.breadcrumb-item:hover {
    background: rgba(255, 152, 0, 0.1);
}

.breadcrumb-item.root {
    color: #bf360c;
    cursor: default;
}

.breadcrumb-separator {
    color: #ff9800;
    font-weight: bold;
}

.custom-input-indicator {
    margin-left: 0.25rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.no-options {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    grid-column: 1 / -1;
}

/* Option Cards */
.option-card {
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.option-card:hover {
    border-color: #1976d2;
    box-shadow: 0 8px 25px rgba(25, 118, 210, 0.15);
    transform: translateY(-2px);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.option-header h3 {
    margin: 0;
    color: #1976d2;
    font-size: 1.3rem;
    font-weight: 600;
}

.complexity-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.complexity-badge.simple {
    background: #e8f5e8;
    color: #2e7d32;
}

.complexity-badge.moderate {
    background: #fff3e0;
    color: #f57c00;
}

.complexity-badge.complex {
    background: #fce4ec;
    color: #c2185b;
}

.option-description {
    color: #666;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* HTML Preview */
.html-preview {
    border: 3px solid #e3f2fd;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.html-preview::before {
    content: '🎨 UI Preview';
    position: absolute;
    top: 6px;
    left: 1rem;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.html-preview::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(25, 118, 210, 0.02) 10px,
        rgba(25, 118, 210, 0.02) 20px
    );
    pointer-events: none;
    z-index: 1;
}

.preview-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



.select-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.select-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.select-btn.selected {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-color: #dc2626;
}

.select-btn.selected:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Option card selected state */
.option-card.selected {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

/* Option Actions */
.option-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    position: relative;
}

.option-actions::before {
    content: '🎯 Take Action';
    position: absolute;
    top: -10px;
    left: 1rem;
    background: #f39c12;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 1;
}

.option-custom-input {
    width: 100%;
}

.option-input-field {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f39c12;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-sizing: border-box;
    background: white;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.1);
}

.option-input-field:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
    transform: translateY(-1px);
}

.option-input-field::placeholder {
    color: #f39c12;
    font-style: italic;
    font-weight: 500;
}

/* Next Level Hint */
.next-level-hint {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.next-level-hint p {
    margin: 0;
    color: #2e7d32;
    font-style: italic;
}

/* Journey Controls */
.journey-controls {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.reset-btn {
    padding: 0.75rem 1.5rem;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: #eeeeee;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .analysis-modal {
        padding: 0.5rem;
    }
    
    .design-ideation-modal {
        width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .design-ideation-results-overlay {
        padding: 0.5rem;
    }
    
    .design-ideation-results-container {
        width: 95vw;
        max-height: 95vh;
    }
    
    .results-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .results-content {
        padding: 1rem;
    }
    
    .design-ideation-results {
        padding: 1rem;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .preference-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .breadcrumb-path {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-left h2 {
        font-size: 1.5rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}

/* Loading States */
.options-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    background: #ffebee;
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.error-message p {
    color: #c62828;
    margin: 0;
    font-weight: 500;
}

.error-message button {
    background: none;
    border: none;
    color: #c62828;
    cursor: pointer;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.error-message button:hover {
    background: rgba(196, 40, 40, 0.1);
}

/* Progress Overlay Styles */
.design-ideation-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.progress-container {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.progress-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e3f2fd;
    border-top: 4px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.progress-message {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Custom Input Section */
.custom-input-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.custom-input-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.custom-input-header h3 {
    margin: 0 0 0.5rem 0;
    color: #1976d2;
    font-size: 1.2rem;
    font-weight: 600;
}

.custom-input-header p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.custom-input-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-input-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.custom-input-form textarea:focus {
    outline: none;
    border-color: #1976d2;
}

.custom-input-btn {
    align-self: flex-end;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-input-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Responsive adjustments for custom input */
@media (max-width: 768px) {
    .custom-input-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .custom-input-form {
        gap: 0.75rem;
    }
    
    .custom-input-btn {
        align-self: stretch;
    }
    
    .option-actions {
        gap: 0.5rem;
    }
    
    .option-input-field {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* Download Actions */
.download-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.html-preview:hover .download-actions {
    opacity: 1;
}

.download-btn {
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.download-btn:hover {
    background: #e9ecef;
    border-color: #1976d2;
    color: #1976d2;
    transform: translateY(-1px);
}

.download-image-btn {
    color: #1976d2;
}

.download-code-btn {
    color: #4caf50;
}

.download-image-btn:hover {
    background: #e3f2fd;
    border-color: #1976d2;
}

.download-code-btn:hover {
    background: #e8f5e8;
    border-color: #4caf50;
}

/* Mobile responsive adjustments for download buttons */
@media (max-width: 768px) {
    .download-actions {
        position: static;
        opacity: 1;
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .download-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Version Management Styles */
.recent-versions-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.recent-versions-section h3 {
    margin: 0 0 0.5rem 0;
    color: #1976d2;
    font-size: 1.1rem;
    font-weight: 600;
}

.recent-versions-help {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.recent-versions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.version-item {
    background: white;
    border: 1px solid #e0e7ef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.version-item:hover {
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

.version-info {
    flex: 1;
    min-width: 0;
}

.version-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.version-meta {
    font-size: 0.85rem;
    color: #666;
}

.version-date {
    margin-right: 0.5rem;
}

.version-number {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.version-preview {
    flex: 1;
    margin: 0 1rem;
    min-width: 0;
}

.preview-text {
    color: #666;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.load-version-btn {
    background: #f5f6fa;
    border: 1px solid #e0e7ef;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    color: #4f8cff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.load-version-btn:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
}

/* Mobile responsive adjustments for version management */
@media (max-width: 768px) {
    .recent-versions-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .version-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .version-preview {
        margin: 0;
        width: 100%;
    }
    
    .load-version-btn {
        align-self: flex-end;
    }
}

/* Design Chat Panel Styles */
.design-chat-panel {
    position: fixed;
    bottom: 20px;
    right: 90px;
    width: 420px;
    max-height: 600px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: all 0.3s ease;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideInFromRight 0.4s ease-out;
}

/* Modern Chat Panel Styles */
.design-chat-panel.modern-chat {
    background: #E3F2FD;
    border: 1px solid #BBDEFB;
    box-shadow: 0 20px 60px rgba(0, 100, 200, 0.15);
    width: 500px;
    max-height: 700px;
    /* height: 700px; */
}

.design-chat-panel.modern-chat .fixed-header {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
    background: #E3F2FD;
}

.design-chat-panel.modern-chat .scrollable-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    max-height: 400px;
    min-height: 300px;
    background: #E3F2FD;
}

.design-chat-panel.modern-chat .fixed-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    flex-shrink: 0;
    background: #E3F2FD;
}

/* Chat Panel Footer */
.chat-panel-footer {
    background: #E3F2FD;
    padding: 0.5rem 1.5rem;
    /* border-top: 1px solid #BBDEFB; */
    display: flex;
    justify-content: center;
}

.new-session-footer-btn {
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.new-session-footer-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Improved UX Mentor Response Layout */
.ux-mentor-response {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.ux-mentor-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 0;
}

.ux-mentor-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.ux-mentor-card:hover {
    border-color: #1976d2;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.1);
    transform: translateY(-1px);
}

.ux-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.ux-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.ux-emotion-tag {
    background: #6366f1;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.ux-card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.ux-wireframe-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.wireframe-header {
    background: #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-align: center;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copy-wireframe-btn {
    background: white;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-wireframe-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.wireframe-content {
    padding: 1rem;
    background: #f8f9fa;
    overflow-x: auto;
}

.wireframe-content pre {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #495057;
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.2;
    background: none;
    border: none;
    padding: 0;
    word-break: break-word;
}

.ux-choose-btn {
    width: 100%;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.ux-choose-btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

/* UX Mentor Selection Confirmation */
.ux-mentor-selection-confirmation {
    width: 100%;
}

.selection-confirmation {
    background: #f0f8ff;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 1.5rem;
}

.selection-confirmation h4 {
    color: #1976d2;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.selection-confirmation p {
    color: #333;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.next-steps {
    margin: 1.5rem 0;
}

.next-steps h5 {
    color: #1976d2;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.next-steps ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #666;
}

.next-steps li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

.continue-btn {
    flex: 1;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.continue-btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

.start-over-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.start-over-btn:hover {
    background: #eeeeee;
    color: #333;
    border-color: #bbb;
}

/* Mobile Responsive for UX Mentor Cards */
@media (max-width: 768px) {
    .ux-mentor-card {
        padding: 1rem;
    }
    
    .ux-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .ux-emotion-tag {
        align-self: flex-start;
    }
    
    .wireframe-content pre {
        font-size: 0.7rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .continue-btn,
    .start-over-btn {
        min-width: auto;
    }
}

/* Update existing chat input area to be less prominent for UX Mentor mode */
.modern-chat .chat-input-area.ux-mentor-mode {
    opacity: 0.5;
    pointer-events: none;
}

.modern-chat .chat-input-area.ux-mentor-mode textarea {
    background: #f5f5f5;
    color: #999;
}

.modern-chat .chat-input-area.ux-mentor-mode textarea::placeholder {
    color: #ccc;
}

/* Continue Message Styling */
.continue-message {
    background: #f0f8ff;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 1.5rem;
}

.continue-message h4 {
    color: #1976d2;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.continue-message p {
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.input-prompt {
    background: #ffffff;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.input-prompt p {
    margin: 0 0 0.75rem 0;
}

.input-prompt strong {
    color: #1976d2;
}

.input-prompt ul {
    margin: 0.5rem 0 1rem 1.25rem;
    color: #666;
}

.input-prompt li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.input-prompt .hint {
    color: #1976d2;
    font-style: italic;
    margin: 1rem 0 0 0;
    font-size: 0.95rem;
}

/* UX Mentor Welcome Screen */
.ux-mentor-welcome {
    padding: 1rem;
    text-align: center;
}

.welcome-header {
    margin-bottom: 2rem;
}

.welcome-header h2 {
    color: #1976d2;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.welcome-header p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.ux-mentor-approach-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    padding: 0;
}

.approach-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.approach-card:hover {
    border-color: #1976d2;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.1);
    transform: translateY(-1px);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}

.card-icon.purple {
    background: #6366f1;
}

.card-icon.green {
    background: #10b981;
}

.card-icon.red {
    background: #ef4444;
}

.card-icon .icon {
    font-size: 1.5rem;
    color: white;
}

.card-content {
    flex: 1;
    text-align: center;
}

.card-content h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.card-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.start-btn {
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.start-btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

.new-session-btn {
    margin-top: 1rem;
}


.refresh-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.refresh-icon {
    font-size: 1rem;
}

/* Mobile Responsive for Welcome Screen */
@media (max-width: 768px) {
    .approach-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-icon .icon {
        font-size: 1.25rem;
    }
    
    .card-content h4 {
        font-size: 1rem;
    }
    
    .card-content p {
        font-size: 0.85rem;
    }
    
    .start-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .welcome-header h2 {
        font-size: 1.3rem;
    }
} 

/* Floating Chat Button */
.floating-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(25, 118, 210, 0.4);
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
}

.floating-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(25, 118, 210, 0.6);
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.floating-chat-button.minimized {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    transform: scale(0.9);
}

.floating-chat-button.minimized:hover {
    transform: scale(0.95);
    box-shadow: 0 6px 25px rgba(142, 68, 173, 0.6);
}

.floating-chat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.floating-chat-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #374151;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-chat-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 10px;
    border: 5px solid transparent;
    border-top-color: #374151;
}

.floating-chat-button:hover .floating-chat-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Keep floating chat button visible when chat panel is open */
.design-chat-panel:not(.hidden) ~ .floating-chat-button,
.design-chat-panel:not(.hidden) + .floating-chat-button {
    display: flex;
}

/* Mobile Responsive for Floating Chat Button */
@media (max-width: 768px) {
    .floating-chat-button {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .floating-chat-tooltip {
        font-size: 11px;
        padding: 6px 10px;
    }
} 

/* Selection Tick Mark */
.option-card {
    position: relative;
}

.selection-tick {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: tickAppear 0.3s ease-out;
    z-index: 10;
}

.selection-tick svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 3;
}

@keyframes tickAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive for selection tick */
@media (max-width: 768px) {
    .selection-tick {
        width: 28px;
        height: 28px;
        top: 8px;
        right: 8px;
    }
    
    .selection-tick svg {
        width: 16px;
        height: 16px;
    }
} 

/* UX Mentor Style Cards */
.ux-mentor-response {
    width: 100%;
    max-width: 100%;
}

.ux-response-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1976d2;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.ux-response-question {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 1.5rem 0;
    text-align: center;
    line-height: 1.4;
}

.ux-mentor-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ux-mentor-card {
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ux-mentor-card:hover {
    border-color: #1976d2;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.1);
    transform: translateY(-1px);
}

.ux-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.ux-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.ux-emotion-tag {
    background: #6366f1;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.ux-card-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.ux-wireframe-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

.wireframe-header {
    background: #e9ecef;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-align: center;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wireframe-header::after {
}

.wireframe-content {
    padding: 0.75rem;
    background: #f8f9fa;
}

.wireframe-content pre {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #495057;
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.2;
    background: none;
    border: none;
    padding: 0;
}

.ux-choose-btn {
    width: 100%;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.ux-choose-btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

/* UX Mentor Selection Confirmation */
.ux-mentor-selection-confirmation {
    width: 100%;
}

.selection-confirmation {
    background: #f0f8ff;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 1.5rem;
}

.selection-confirmation h4 {
    color: #1976d2;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.selection-confirmation p {
    color: #333;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.next-steps {
    margin: 1.5rem 0;
}

.next-steps h5 {
    color: #1976d2;
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
}

.next-steps ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #666;
}

.next-steps li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

.continue-btn {
    flex: 1;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.continue-btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

.start-over-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.start-over-btn:hover {
    background: #eeeeee;
    color: #333;
    border-color: #bbb;
}

/* Mobile Responsive for UX Mentor Cards */
@media (max-width: 768px) {
    .ux-mentor-card {
        padding: 1rem;
    }
    
    .ux-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .ux-emotion-tag {
        align-self: flex-start;
    }
    
    .wireframe-content pre {
        font-size: 0.7rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .continue-btn,
    .start-over-btn {
        min-width: auto;
    }
}

/* Update existing chat input area to be less prominent for UX Mentor mode */
.modern-chat .chat-input-area.ux-mentor-mode {
    opacity: 0.5;
    pointer-events: none;
}

.modern-chat .chat-input-area.ux-mentor-mode textarea {
    background: #f5f5f5;
    color: #999;
}

.modern-chat .chat-input-area.ux-mentor-mode textarea::placeholder {
    color: #ccc;
}

/* Continue Message Styling */
.continue-message {
    background: #f0f8ff;
    border: 1px solid #bbdefb;
    border-radius: 12px;
    padding: 1.5rem;
}

.continue-message h4 {
    color: #1976d2;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.continue-message p {
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.input-prompt {
    background: #ffffff;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.input-prompt p {
    margin: 0 0 0.75rem 0;
}

.input-prompt strong {
    color: #1976d2;
}

.input-prompt ul {
    margin: 0.5rem 0 1rem 1.25rem;
    color: #666;
}

.input-prompt li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.input-prompt .hint {
    color: #1976d2;
    font-style: italic;
    margin: 1rem 0 0 0;
    font-size: 0.95rem;
}

/* UX Mentor Welcome Screen */
.ux-mentor-welcome {
    padding: 0.5rem;
    text-align: center;
    width: 100%;
}

.welcome-header {
    margin-bottom: 2rem;
}

.welcome-header h2 {
    color: #1976d2;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.welcome-header p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.ux-mentor-approach-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    padding: 0;
}

.approach-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: center;
}

.approach-card:hover {
    border-color: #1976d2;
    box-shadow: 0 2px 12px rgba(25, 118, 210, 0.1);
    transform: translateY(-1px);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}

.card-icon.purple {
    background: #6366f1;
}

.card-icon.green {
    background: #10b981;
}

.card-icon.red {
    background: #ef4444;
}

.card-icon .icon {
    font-size: 1.5rem;
    color: white;
}

.card-content {
    flex: 1;
    text-align: center;
}

.card-content h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.card-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.start-btn {
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.start-btn:hover {
    background: #1565c0;
    transform: translateY(-1px);
}

.new-session-btn {
    margin-top: 1rem;
}



.refresh-btn:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.refresh-icon {
    font-size: 1rem;
}

/* Mobile Responsive for Welcome Screen */
@media (max-width: 768px) {
    .approach-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-icon .icon {
        font-size: 1.25rem;
    }
    
    .card-content h4 {
        font-size: 1rem;
    }
    
    .card-content p {
        font-size: 0.85rem;
    }
    
    .start-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .welcome-header h2 {
        font-size: 1.3rem;
    }
} 

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Chat Panel Header */
.chat-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

/* Modern Chat Header */
.modern-chat .chat-panel-header {
    background: #E3F2FD;
    padding: 1rem 1.5rem;
}

.modern-chat .chat-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.modern-chat .chat-header-content h3 {
    color: #1565C0;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* Chat Panel Content */
.chat-panel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    background: #fafafa;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    /* padding: 1rem; */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.7);
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: fadeInUp 0.3s ease-out;
}

.user-message {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.user-message .message-content {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    border: none;
    border-radius: 18px 18px 4px 18px;
    padding: 0.75rem 1rem;
    color: white;
    margin-left: auto;
}

.bot-message .message-content {
    background: white;
    border: 1px solid #4285f4;
    width: 500%;
    max-width: 85%;
    border-radius: 18px 18px 18px 4px;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.user-message .message-content p {
    color: white;
}

.bot-message .message-content p {
    color: #374151;
    padding-bottom: 4px;

}

/* Typing Indicator */
.typing-indicator .message-content {
    background: white;
    border: 1px solid #e5e7eb;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.5rem 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingDot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat Input Area */
.chat-input-area {
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.chat-input-container textarea {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.chat-input-container textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-input-container textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

#sendChatMessage {
    color: white;
    border: none;
    border-radius: 12px;
    width: 64px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    background: #1976d2;
}

#sendChatMessage:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: #1565c0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .design-chat-panel {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 70vh;
    }
    
    .chat-panel-header {
        padding: 0.75rem 1rem;
    }
    
    .chat-messages {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .chat-input-area {
        padding: 0.75rem 1rem;
    }
    
    .chat-input-container textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
} 

/* ASCII Preview Styles for Main Design Ideation */
.ascii-preview-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0;
}

.ascii-preview {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    color: #374151;
    overflow-x: auto;
    margin: 0;
    white-space: pre;
    max-height: 400px;
    overflow-y: auto;
}

.ascii-preview:hover {
    background: #f9fafb;
    border-color: #1976d2;
}

.no-preview {
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
}

.no-preview p {
    margin: 8px 0;
}

.preview-desc {
    font-size: 14px;
    color: #64748b;
    font-style: italic;
} 