/* Platform Demo Styles */
.progress-bar {
    transition: width 1.5s ease-in-out;
}

.slide-in-image {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Platform Demo Styles */
.conversation-item {
    transition: all 0.2s ease;
}

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

.conversation-item.active {
    background-color: #e0f2fe;
    border-left: 3px solid #0ea5e9;
}

.conversation-item.active:hover {
    background-color: #e0f2fe;
}

.message-item {
    animation: messageSlideIn 0.5s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Custom scrollbar for messages area */
#messages-area::-webkit-scrollbar {
    width: 6px;
}

#messages-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#messages-area::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#messages-area::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Typing indicator animation */
.typing-indicator {
    display: inline-flex;
    align-items: center;
}

.typing-indicator span {
    height: 4px;
    width: 4px;
    background: #9ca3af;
    border-radius: 50%;
    display: inline-block;
    margin: 0 1px;
    animation: typing 1.4s infinite ease-in-out;
}

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

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

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

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Platform interface responsive adjustments */
@media (max-width: 1024px) {
    .platform-interface {
        height: 500px;
    }

    .conversations-column {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .platform-interface {
        height: 400px;
    }

    .sidebar-column {
        width: 200px;
    }

    .conversations-column {
        width: 240px;
    }
}