@import "./styles.css";

.admin-console-content[content='library'] {
    flex-direction: column;
    justify-content: flex-start;
}


.admin-library-frame {
    display: grid;
    grid-template-areas:
        "header"
        "center"
        "footer";
    grid-template-rows: 0fr 1fr 0fr;
    grid-template-columns: 1fr;
    color: var(--grey800);
    font-weight: 500;
    background-color: var(--grey50);
    width: 100%;
    height: 100%;
    box-shadow: var(--boxShadow);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background: var(--dm3);
}

.admin-library-frame-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 0.4rem;
    padding: 0.8rem;
    /* height: 3rem; */
    color: var(--grey800);
    border-bottom: 1px solid var(--grey900);
}

.admin-library-search {
    grid-area: search;
    display: flex;
    width: 20rem;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--dm5);
    border-radius: 6px;
    padding: 0.4rem;
}

.admin-library-search::before {
    content: "search";
    font-family: "material symbols rounded";
    font-weight: 200;
    font-size: 1.3rem;
    color: var(--grey600);
    margin-right: 0.5rem;
    line-height: 1;
}

.admin-library-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--grey600);
}

.admin-library-frame-header-createBtn {
    grid-area: createBtn;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
    color: var(--grey50);
    background-color: var(--indigo500);
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: var(--boxShadow);
    transition: background-color 0.2s linear, color 0.2s linear, border 0.2s linear, box-shadow 0.2s linear;
}

.admin-library-frame-header-createBtn:hover {
    cursor: pointer;
    box-shadow: none;
    color: var(--indigo500);
    background-color: var(--grey50);
}

.admin-library-frame-center {
    grid-area: center;
    display: grid;
    grid-template-areas:
        'list';
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    overflow: hidden;
}

.admin-library-frame-footer {
    grid-area: footer;
}

.admin-library-frame-center-docList {
    grid-area: list;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    row-gap: 1rem;
    column-gap: 1rem;
    padding: 1rem;
    height: 100%;
    width: 100%;
    overflow: auto;
}

.admin-library-frame-center-docList-bookDiv {
    display: grid;
    grid-template-areas:
        'photo'
        'title'
        'port'
        'description'
        'timestamp';
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto 0fr auto;
    font-weight: 400;
    font-size: 0.7rem;
    row-gap: 0.2rem;
    column-gap: 0.4rem;
    padding: 0.8rem 0.6rem;
    width: 20rem;
    height: 15rem;
    border-radius: 6px;
    box-shadow: var(--boxShadow);
    background-color: var(--grey50);
    border: 1px solid var(--grey50);
    transition: background-color 0.2s linear, color 0.2s linear, border 0.2s linear, box-shadow 0.2s linear;
    position: relative;
}

.admin-library-frame-center-docList-bookDiv:hover {
    cursor: pointer;
    background-color: var(--lightBlue);
    /* border: 1px solid var(--indigo500); */
    box-shadow: none;
}

/* .admin-library-frame-center-docList-bookDiv:hover::after {
    display: flex;
    justify-content: center;
    align-items: center;
    content: 'Edit';
    width: 100%;
    height: 100%;
    color: var(--grey50);
    background-color: var(--indigo500);
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.65;
    overflow: hidden;
    border-radius: 6px;
    position: absolute;
    transition: background-color 0.2s linear, color 0.2s linear, border 0.2s linear, box-shadow 0.2s linear;
} */

.admin-library-frame-center-docList-bookDiv-infoEl {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.admin-library-frame-center-docList-bookDiv-infoEl[ref="title"] {
    font-weight: 500;
    margin-top: 0.4rem;
}

.admin-library-frame-center-docList-bookDiv-infoEl[ref="description"] {
    font-style: italic;
}

.admin-library-frame-center-docList-bookDiv-infoEl[ref="update-timestamp"] {
    font-size: 0.65rem;
    margin-top: 0.4rem;
}

.admin-library-frame-center-docList-bookDiv-photoEl {
    grid-area: photo;
    justify-content: flex-start;
    align-items: flex-start;
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 6px;
    width: 100%;
    overflow: hidden;
    background-color: var(--grey200);
}

.admin-console-modal-frame[content="library-modal-edit"] {
    width: 30%;
    left: 35%;
    height: fit-content;
    top: 30%;
}

.admin-console-modal-frame[content="library-modal-edit"] .admin-console-modal-center {
    display: grid;
    grid-template-areas:
        'editor';
    grid-template-rows: 1fr;
    overflow-y: auto;
}

.admin-console-modal-frame[content="library-modal-edit"] .admin-console-modal-footer {
    font-weight: 500;
    color: var(--grey900);
    font-size: 0.65rem;
}

.admin-library-modal-edit-editor {
    grid-area: editor;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    row-gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    background-color: var(--grey50);
    height: 100%;
    /* border-bottom: 1px solid var(--grey200); */
}

.admin-library-modal-edit-editor-field {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.admin-library-modal-edit-editor-field-title {
    grid-area: title;
}

.admin-library-modal-edit-editor-field-description {}

.admin-library-modal-edit-editor-field-input {
    grid-area: input;
}

.admin-console-modal-frame[content="library-modal-resource-add"] {
    width: 30%;
    left: 35%;
    height: fit-content;
    top: 30%;
}

.admin-console-modal-frame[content="library-modal-resource-add"] .admin-console-modal-center {
    display: grid;
    grid-template-areas:
        'editor';
    grid-template-rows: 1fr;
    overflow: auto;
}

.admin-library-modal-resource-add-editor {
    grid-area: editor;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* row-gap: 0.6rem; */
    padding: 0.8rem 1.2rem;
    background-color: var(--grey50);
    height: 100%;
}

.admin-library-modal-edit-editor-resources-add {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    row-gap: 0.6rem;
    height: 100%;
}

.admin-console-modal-frame[content="library-modal-create"] {
    width: 30%;
    left: 35%;
    height: fit-content;
    top: 30%;
}

.admin-console-modal-frame[content="library-modal-create"] .admin-console-modal-center {
    display: grid;
    grid-template-areas:
        'editor';
    grid-template-rows: 1fr;
    overflow: auto;
}

.admin-library-modal-create-editor {
    grid-area: editor;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    row-gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    background-color: var(--grey50);
    height: 100%;
}

.admin-console-modal-frame[content="library-modal-delete"] {
    width: 30%;
    left: 35%;
    height: fit-content;
    top: 30%;
}

.admin-console-modal-center[content="library-modal-delete"] {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    row-gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    background-color: var(--grey50);
    height: 100%;
}

.admin-library-modal-delete-label {}

.admin-library-modal-delete-input {}

.admin-console-modal-frame[content="library-modal-resource-edit"] {
    width: 30%;
    left: 35%;
    height: fit-content;
    max-height: 90%;
    top: 5%;
}

.admin-console-modal-center[content="library-modal-resource-edit"] {
    display: grid;
    grid-template-areas:
        'editor';
    grid-template-rows: 1fr;
    overflow: auto;
}

.admin-library-modal-resource-edit-resources {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: var(--grey50);
    height: 100%;
}

.admin-library-modal-resource-edit-resources-resourceDiv:not(:last-child) {
    border-bottom: 1px solid var(--grey200);
}

.admin-library-modal-resource-edit-resources-resourceDiv {
    display: grid;
    grid-template-areas:
        'editor editor'
        'deleteBtn saveBtn';
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto;
    column-gap: 1rem;
    row-gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    background-color: var(--grey50);
    height: 100%;
}

.admin-library-modal-resource-edit-resources-resourceDiv-editor {
    grid-area: editor;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    row-gap: 0.6rem;
    /* padding: 0.8rem 1.2rem; */
    /* background-color: var(--grey50); */
    height: 100%;
}

.admin-library-modal-resource-edit-resources-resourceDiv-saveBtn {
    grid-area: saveBtn;
    margin-left: auto;
}

.admin-library-modal-resource-edit-resources-resourceDiv-deleteBtn {
    grid-area: deleteBtn;
    margin-left: auto;
    /* opacity: 0.75; */
}