/* General Styles */
body {
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.chat-item {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-item:hover {
    background-color: #e9ecef;
}

.chat-item.active {
    background-color: #e9ecef;
}

/* Chat Area Styles */
.chat-messages {
    background-color: #fff;
    position: relative;
}

.message {
    max-width: 70%;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.message.show {
    opacity: 1;
    transform: translateY(0);
}

.message-user {
    margin-left: auto;
}

.message-agent {
    margin-right: auto;
}

.message-content {
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
}

.message-user .message-content {
    background-color: #007bff;
    color: white;
}

.message-agent .message-content {
    background-color: #e9ecef;
    color: #212529;
}

/* Right Sidebar Styles */
.thread-item {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.thread-item:hover {
    background-color: #e9ecef;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar, .right-sidebar {
        position: fixed;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .right-sidebar {
        right: 0;
        transform: translateX(100%);
    }
    
    .right-sidebar.show {
        transform: translateX(0);
    }
} 

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 16px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    max-width: 350px;
    animation: toast-in 0.3s ease forwards;
    transition: all 0.3s ease;
}

.toast-info {
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    border-left: 4px solid #1d4ed8;
}

.toast-success {
    background: linear-gradient(to right, #10b981, #34d399);
    border-left: 4px solid #059669;
}

.toast-error {
    background: linear-gradient(to right, #ef4444, #f87171);
    border-left: 4px solid #b91c1c;
}

.toast-warning {
    background: linear-gradient(to right, #f59e0b, #fbbf24);
    border-left: 4px solid #d97706;
}

.toast-hide {
    opacity: 0;
    transform: translateX(40px);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 