/* Custom Styles for AI + GGB Fusion */

/* GGB Container Styles */
#ggb-container {
    min-height: 400px;
    background-color: #f8f9fa;
    position: relative;
    width: 100% !important;
    height: 100% !important;
}

.app-nav-item {
    color: #64748b;
    transition: all 0.2s;
}

.app-nav-item:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.app-nav-item.active {
    background-color: #eff6ff;
    color: #2563eb;
}

/* Chat Styles */
#chat-messages {
    background-color: #fcfcfd;
}

.message-appear {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scrollbar Styles */
#chat-messages::-webkit-scrollbar {
    width: 4px;
}
#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
#chat-messages::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}
#chat-messages::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Helper classes for layout fixing */
.min-width-0 {
    min-width: 0;
}

.assistant-content pre {
    max-width: 100%;
    overflow-x: auto;
}

.assistant-content code {
    white-space: pre-wrap;
    word-break: break-all;
}


/* GGB specific overrides */
canvas {
    outline: none !important;
}

#ggb-container iframe {
    border: none !important;
}

/* Custom Modal Animation */
#confirm-modal.active #confirm-modal-content {
    transform: scale(1);
    opacity: 1;
}

#confirm-modal.active .bg-gray-900\/40 {
    opacity: 1;
}
