::-webkit-scrollbar {
	width: 16px;
	background-color: #0001;
}

:not([no-y-overflow])::-webkit-scrollbar-thumb {
	border-radius: 16px;
	border: 7px solid #0000;
	background-clip: content-box;
	background-color: #888;
}

::-webkit-scrollbar-thumb {
	border-radius: 16px;
	border: 7px solid #0000;
	background-clip: content-box;
	background-color: #ababab;
}

::-webkit-scrollbar-thumb:hover {
	border-radius: 16px;
    border: 5px solid #0000;
	background-color: #666;
}

body, html {
    font-family: "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC", sans-serif;
    font-size: 16px;
    background-color: #fff;
    background-image: url(../img0.jpg);
    background-size: cover;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
}

body>div.background-backdrop {
    backdrop-filter: blur(100px);
    height: calc(100% + 2px);
    transition: 0.5s;
}

.fullscreen_cover {
    position: fixed;
    top: 90px;
    left: 0;
    width: calc(100% - 16px);
    height: calc(100% - 106px);
    background-color: #0b22db6b;
    border: dashed 8px #fff8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen_cover span {
    color: white;
    font-size: max(5vw, 5vh);
}

.top-bar {
    height: 90px;
}

.side-filetree {
    border-right: 0.5px solid #9999;
    width: 200px;
    padding-top: 10px;
    overflow-y: auto;
}

.file-list {
    height: 100%;
    overflow: auto;
    flex-grow: 1;
    padding: 6px;
    padding-right: 20px;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;
}

.main-content {
    height: calc(100% - 92px);
    max-height: calc(100% - 92px);
    overflow: hidden;
    background-color: #FFFE;
    display: flex;
}

@media screen and (max-width: 700px) {
    .side-filetree {
        display: none;
    }
}

.top-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #EEEB;
    backdrop-filter: saturate(1.5);
}

.path-column {
    display: flex;
    align-items: center;
    height: 50px;
    min-height: 50px;
    gap: 4px;
    margin: 0 8px;
}

.tool-column {
    display: inline-flex;
    align-items: center;
    padding: 5px;
    background-color: #FFF;
    box-shadow: 0px -3px 8px -5px #0009;
    border-radius: 8px 8px 0 0;
}

.path-item {
    display: flex;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    transition: .125s;
}

.path-item:hover {
    background-color: #0001;
}

.path-item:active {
    background-color: #0002;
}

.tool-item {
    display: flex;
    margin: 0 2px;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    transition: .125s;
}

.tool-item:hover {
    background-color: #0001;
}

.tool-item:active {
    background-color: #0002;
}

.path-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.tool-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.path-name {
    font-size: 16px;
    font-weight: 500;
    margin-left: 4px;
    color: #555;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    display: none;
}

.tool-name {
    font-size: 16px;
    font-weight: 500;
    margin-left: 4px;
    color: #555;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
}

.path-line {
    display: inline-block;
    flex-grow: 1;
    height: 36px;
    position: relative;
}

.path-input {
    width: 100%;
    padding: 5px 10px;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    background-color: #FFFA;
    letter-spacing: 0.5px;
    outline: none;
    transition: .125s;
    height: 36px;
    box-sizing: border-box;
    position: relative;
}

.path-input:hover {
    background-color: #FFFB;
}

.path-input:focus {
    background-color: #FFF;
}

.path-breadcrums {
    position: absolute;
    top: 5px;
    left: 10px;
    height: 26px;
    max-height: 26px;
    max-width: calc(100% - 20px);
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
}

.path-breadcrums::-webkit-scrollbar {
	height: 0;
    display: none;
}

.breadcrum-block {
    display: inline-block;
    background-color: transparent;
    border: 0.5px solid transparent;
    box-sizing: border-box;
    display: flex;
    border-radius: 6px;
}

.breadcrum-block:hover {
    border: 0.1px solid #0001;
}

.breadcrum-item {
    background-color: #FFF;
    box-shadow: 0 0 2px 0 #0001;
    display: inline-block;
    border-radius: 6px;
}

.breadcrum-block:hover .breadcrum-item {
    border-radius: 6px 0 0 6px;
}

.breadcrum-item .path-name {
    display: flex;
    margin: 0 8px;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: max-content;
}

.breadcrum-item:hover {
    background-color: #EEE;
}

.breadcrum-item.forward {
    background-color: #0000;
    box-shadow: none;
}

.breadcrum-item.forward:hover {
    background-color: #0001;
}

.breadcrum-block:hover .breadcrum-item.forward {
    border-radius: 0 6px 6px 0;
}

.path-item.search {
    padding: 0;
    padding-left: 8px;
    gap: 4px;
}

.search-input {
    padding: 6px;
    border: 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background-color: #FFFA;
    outline: none;
    letter-spacing: 0.5px;
    transition: .125s;
    height: 36px;
    box-sizing: border-box;
}

.search-input:hover {
    background-color: #FFFFFFC4;
}

@media screen and (max-width: 700px) {
    .path-item.search {
        flex-grow: 1;
    }

    .path-item.search .search-input {
        width: 100%;
    }

    .path-line {
        display: none;
        margin-right: 24px;
    }
}

.filetree-block {
    width: 100%;
}

.filetree-arrow {
    display: inline-block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}

.filetree-arrow:hover {
    opacity: 1;
}

.filetree-item {
    width: 100%;
    display: flex;
    padding: 6px;
    box-sizing: border-box;
    align-items: center;
}

.filetree-item:hover {
    background-color: #5ba8ff33;
}

.filetree-item.active {
    background-color: #5ba8ff66;
    box-shadow: inset 0 0 0 1px #001034;
}

.filetree-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    background-size: 18px 18px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.filetree-name {
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.filetree-children {
    margin-left: 12px;
    display: none;
}

.filetree-children.open {
    display: block;
}

.file-item {
    display: flex;
    margin: 6px 8px;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
}

.file-item:hover {
    background-color: #5ba8ff33;
}

.file-item.selected {
    background-color: #5ba8ff66;
    box-shadow: 0 0 0 1px #001034;
}

.file-item.selected:hover {
    box-shadow: 0 0 0 1px #002d8f;
}

.file-item.iscut {
    opacity: 0.5;
}

.file-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.file-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    margin-left: 8px;
    flex-grow: 1;
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-name .file-rename {
    font-size: 14px;
    font-family: "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC", sans-serif;
    width: 100%;
    box-sizing: border-box;
    background: #FFF;
    border: 0.5px solid #000;
    border-radius: 2px;
    box-sizing: border-box;
}

.file-name .file-rename:focus-visible {
    outline: none;
}

.file-size {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    margin-left: 8px;
    width: 64px;
    min-width: 64px;
    text-align: right;
}

.file-date {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    margin-left: 8px;
    min-width: 150px;
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-icon.file {
    background-image: url(icon/file.svg);
}

.file-icon.folder {
    background-image: url(icon/folder.svg);
}

.selection-box {
    border: 1.5px solid #0c7ed9;
    background-color: #0c7ed966;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 2px;
    float: left;
}

@media screen and (max-width: 400px) {
    .file-date {
        display: none;
    }
}

.tool-item.active {
    background-color: #0001;
}

.tool-item .selection {
    display: none;
    margin-left: 4px;
    color: #555;
    font-size: 16px;
    font-weight: 500;
    position: fixed;
    background-color: #FFF;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 0 8px 0 #0003;
    transform: translate(-10px, calc(50% + 16px));
    z-index: 1;
    flex-direction: column;
}

.tool-item.active .selection {
    display: flex;
}

.tool-item .selection .selection-item {
    display: flex;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    transition: .125s;
}

.tool-item .selection .selection-item:hover {
    background-color: #0001;
}

.tool-item .selection .selection-item:active {
    background-color: #0002;
}

.context-menu {
    display: none;
    position: fixed;
    background-color: #FFF;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 0 8px 0 #0003;
    z-index: 1;
    top: 0;
    left: 0;
}

.context-menu.active {
    display: flex;
    flex-direction: column;
}

.context-menu .context-item {
    display: flex;
    padding: 6px;
    min-width: 150px;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    transition: .125s;
}

.context-menu .context-item:hover {
    background-color: #0001;
}

.context-menu .context-item .context-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.context-menu .context-item .context-name {
    font-size: 16px;
    font-weight: 500;
    margin-left: 4px;
    color: #555;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
}

@media screen and (max-width: 400px) {
    .path-item,
    .tool-item,
    .file-item,
    .context-item {
        cursor: default;
    }
}

.window-cover {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.window-cover.ignore {
    pointer-events: none;
}

.window-item {
    display: flex;
    flex-direction: column;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 0 12px 4px #0005;
    background-color: #eee;
    width: max-content;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    transition: .125s;
    z-index: 1048576;
    pointer-events: all;
}

.window-item br {
    width: 100%;
    border: none;
    margin: 8px 0;
}

.window-item.alert {
    padding: 32px 64px;
    min-width: 160px;
    max-width: 280px;
    gap: 12px;
}

.window-item.alert.error {
    background-color: #EF9A9A;
    color: #B71C1C;
}

.window-item.normal {
    position: absolute;
    top: 0;
    left: 0;
}

.window-title {
    font-size: 24px;
    font-weight: 800;
    width: 100%;
    text-align: center;
}

.window-title-left {
    font-size: 18px;
    font-weight: normal;
    width: 100%;
    text-align: left;
}

.window-text {
    font-size: 16px;
    text-align: center;
}

.window-item.alert.error button.window-button {
    background-color: #FFEBEE;
    color: #F44336;
    border: 1px solid #C62828;
}

button.window-button.fill {
    background-color: #3662f4;
    color: #ebedff;
}

.window-item.alert.error button.window-button.fill {
    background-color: #F44336;
    color: #FFEBEE;
}

.window-button-frame {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
}

button.window-button {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #999;
    background: #f8f8f8;
    width: 100%;
    cursor: pointer;
}

.window-input.alert {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.window-input.alert input {
    width: calc(100% - 18px);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #999;
    background-color: #f8f8f8;
    font-size: 16px;
    outline: none;
}

.window-item.alert.error .window-input.alert input {
    border: 1px solid #C62828;
    background-color: #FFEBEE;
    color: #F44336;
}

.window-main {
    width: 100%;
    height: 100%;
}

textarea.text-editor {
    border-radius: 8px;
    font-size: 16px;
    resize: none;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    outline: none;
    font-family: "Microsoft JhengHei", "微軟正黑體", "Noto Sans TC", sans-serif;
}

@media screen and (max-width: 400px) {
    button.window-button {
        cursor: default;
    }
}