/* Chat History Modal Styles */
.chat-history-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-history-modal.open {
    opacity: 1 !important;
}

.chat-history-content {
    background: #1a1a1a;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.chat-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-history-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.chat-history-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.chat-history-close:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chat-history-close img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.chat-history-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.chat-history-new-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.chat-history-new-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.chat-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-history-item {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.session-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.session-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.session-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.chat-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.chat-history-empty .empty-icon {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.chat-history-empty p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 8px 0;
}

.chat-history-empty span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}