/* Fullscreen Archive View */
#archive-view {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

#archive-content-wrapper {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: 100vh;
    background-color: var(--card-background);
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.archive-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: #f9fafb;
    flex-shrink: 0;
}

#btn-archive-back {
    width: auto;
    flex-shrink: 0;
    min-width: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.75rem;
    line-height: 40px;
    text-align: center;
}

.archive-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
    flex-grow: 1;
    flex-wrap: wrap; /* In case there are many list types */
}

.archive-tab-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background-color: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.archive-tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.archive-tab-btn:not(.active):hover {
    background-color: #eef2ff;
    border-color: #a5b4fc;
}

.archive-sort-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-sort-btn svg {
    width: 20px;
    height: 20px;
}

#archive-list-container {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 1rem;
    overflow-y: auto;
    padding: 1.5rem;
}

#archive-list-container .loader {
    margin: 2rem auto;
    flex-basis: 100%;
}

#archive-list-container .dashboard-empty-message {
    flex-basis: 100%;
}

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    width: 450px;
    max-width: 100%;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.archive-item:hover {
    background-color: #eef2ff;
    border-color: #a5b4fc;
}


.archive-item-name {
    font-weight: 500;
    word-break: break-all;
    padding-right: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.archive-item-actions .btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-item-actions .btn svg {
    width: 20px;
    height: 20px;
}