/* Sidebar styles */

.sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.new-chat-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.new-chat-btn:hover {
    background: #0056b3;
}

.clear-all-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.clear-all-btn:hover {
    background: #dc3545;
    color: white;
}

.conversations {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.conversation-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-item:hover {
    background: #f8f9fa;
}

.conversation-item.active {
    background: #e3f2fd;
    border-color: #2196f3;
}

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

.conversation-title {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-meta {
    font-size: 12px;
    color: #666;
}

.delete-btn {
    opacity: 0;
    padding: 4px 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: opacity 0.2s;
}

.conversation-item:hover .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: #c82333;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-footer-buttons {
    display: flex;
    gap: 8px;
}

.export-btn, .import-btn {
    flex: 1;
    padding: 10px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.export-btn:hover, .import-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
