/* Archived Chats Modal Styles */
.archived-chats-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.archived-chats-overlay.open {
    opacity: 1;
    visibility: visible;
}

.archived-chats-modal {
    background-color: var(--background);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.archived-chats-overlay.open .archived-chats-modal {
    transform: scale(1);
}

.archived-chats-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.archived-chats-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-color-secondary);
    transition: background-color 0.15s ease, color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .archived-chats-close:hover {
        background-color: var(--hover);
        color: var(--text-color);
    }
}

.archived-chats-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 200px;
}

.archived-chats-loading,
.archived-chats-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 12px;
    color: var(--text-color-tertiary);
}

.archived-chats-loading p,
.archived-chats-empty p {
    font-size: 14px;
    margin: 0;
}

.archived-chats-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spinTo360 0.8s linear infinite;
}

.archived-chats-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.archived-chat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .archived-chat-item:hover {
        background-color: var(--hover);
        border-color: var(--border-color-hover, var(--border-color));
    }
}

.archived-chat-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.archived-chat-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.archived-chat-date {
    font-size: 12px;
    color: var(--text-color-tertiary);
    margin: 0;
}

.archived-chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.archived-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.archived-chat-btn.unarchive {
    background-color: var(--accent-color);
    color: white;
}

@media (hover: hover) and (pointer: fine) {
    .archived-chat-btn.unarchive:hover {
        background-color: var(--accent-color-hover, var(--accent-color));
        opacity: 0.9;
    }
}

.archived-chat-btn.unarchive:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.archived-chat-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .archived-chats-modal {
        width: 95%;
        max-height: 85vh;
        margin: 20px;
    }

    .archived-chats-header {
        padding: 14px 16px;
    }

    .archived-chats-title {
        font-size: 16px;
    }

    .archived-chat-item {
        padding: 10px 12px;
    }

    .archived-chat-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .archived-chat-btn span {
        display: none;
    }

    .archived-chat-btn svg {
        width: 18px;
        height: 18px;
    }
     }
