/* Modification UI Specific Styles */

/* Layout & Grid */
.modification-layout {
    display: grid;
    grid-template-columns: 320px 1fr 380px;
    grid-template-rows: auto 1fr;
    height: calc(100vh - 64px);
    /* Full height minus header */
    overflow: hidden;
}

/* Sidebar Styling */
.sidebar-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.history-item {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s;
    cursor: pointer;
}

.history-item:hover {
    background-color: #f9fafb;
}

.history-item.active {
    background-color: #eef2ff;
    border-left: 4px solid #4f46e5;
}

/* Chat Interface */
.chat-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-bubble {
    max-width: 85%;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    line-height: 1.625;
    word-wrap: break-word;
}

.chat-bubble.user {
    background-color: #4f46e5;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.chat-bubble.bot,
.chat-bubble.assistant {
    background-color: #f3f4f6;
    color: #1f2937;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background-color: white;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideInRight 0.3s ease-out forwards;
}

/* Typing Indicator */
.typing-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #9ca3af;
    border-radius: 9999px;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

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

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

/* Scrollbar Customization */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}