@import "../../css/colors.css";
@import "../../css/filters.css";

.modal-content {
    max-width: 600px;
    margin-top: 50px;
}

.body {
    background: $ui-modal-background;
    padding: 1.5rem 2.25rem;
    max-height: calc(100vh - 150px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.extra-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.total-size {

}
.total-size-description {
    font-size: small;
}
.button {
    font: inherit;
    color: inherit;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid $ui-black-transparent;
    font-weight: 600;
    font-size: 0.85rem;
    color: $ui-white;
}
.button:disabled {
    opacity: 0.8;
}
.delete-all-button {
    margin-left: 1rem;
    background-color: $data-primary;
    color: white;
    white-space: nowrap;
}

.error-message {
    font-family: monospace;
    user-select: text;
}

.restore-point-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.restore-point {
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: 2px solid $ui-black-transparent;
    padding: 0.5rem;
    border-radius: 0.5rem;
    gap: 0.5rem;
}
.restore-point:hover {
    border-color: $looks-secondary;
}
.restore-point-title {
    font-weight: bold;
}

.thumbnail-container {
    flex-shrink: 0;
    /* 4:3 */
    width: 100px;
    height: 75px;
}
.thumbnail-image {
    display: block;
    border-radius: 0.25rem;
    width: 100%;
    height: 100%;
}
.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

.restore-point-buttons {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.restore-point-button {
    appearance: none;
    background: none;
    border: none;
    border-radius: 100%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.restore-point-button[disabled] {
    opacity: 0.5;
}
.restore-point-button img {
    display: block;
    width: 75%;
    height: 75%;
    filter: $filter-icon-gray;
}
.restore-point-button:not([disabled]):hover {
    background-color: $ui-black-transparent;
}

.disabled {
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 0, 0, 0.18);
    border: 2px solid rgba(255, 0, 0, 0.568);
    font-weight: bold;
}
