@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400&display=swap');
@import url('./themes.css');

#filetree {
    background-color: var(--bg-primary);
    height: 100vh;
    width: 200px;
    transition: width 0.3s ease;
}

#filetree.closed {
    width: 0px;
    overflow: hidden;
}

#filetree-nav {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 5px;
    background-color: var(--bg-tertiary);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    list-style: none;
    border-bottom: 1px solid var(--border-secondary);
}

.filetree-nav-item {
    height: 80%;
    aspect-ratio: 1;
}

.filetree-nav-item:hover {
    background-color: gray;
}

.filetree-nav-item:hover {
    cursor: pointer;
}

#create-note-btn {
    background-image: url('../assets/file.svg');
    background-size: contain;
}

#create-folder-btn {
    background-image: url('../assets/create-folder.svg');
    background-size: contain;
}

#files-container {
    height: calc(100vh - 40px);
    padding: 10px;
    border-right: 1px solid var(--border-secondary);
    overflow-y: auto;
}

.file-card {
    width: 100%;
    height: auto;
    border-radius: 2px;
    cursor: pointer;
    user-select: none;
}

.file-card:hover {
    background-color: var(--bg-tertiary);
}

.file-card.folder {}

.file-card-header {
    height: 28px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}

.file-card-img {
    height: 14px;
    width: 14px;
    opacity: 0.7;
}

.file-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    color: var(--font-primary);
}

.folder-contents {
    display: none;
    flex-direction: column;
    padding-left: 12px;
}

.folder-contents.showing-contents {
    display: flex;
}

.drag-over.file-card {
    background-color: var(--bg-tertiary);
    border-left: 2px solid var(--gold);
}

.temp {}

.temp-card-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gold);
    outline: none;
    font-size: 13px;
    width: 60%;
    color: var(--font-primary);
    caret-color: var(--caret);
}

.right-click-menu {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    padding: 4px;
    min-width: 120px;
    z-index: 100;
}

.rc-menu-item {
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 2px;
    cursor: pointer;
    color: var(--font-primary);
}

.rc-menu-item:hover {
    background-color: var(--bg-tertiary);
}

#rc-delete-btn {
    color: #c0392b;
}

.selected-file {
    background-color: var(--gold-subtle);
    border-left: 2px solid var(--gold);
}

#pinned {
    border-right: 1px solid var(--border-secondary);
    border-bottom: 1px solid var(--border-secondary);
    padding: 10px;
}
