body {
    overscroll-behavior: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}


#viewer {
    background: white;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

iframe {
    width: 100%;
    height: 800px;
    border: none;
}


.header-wrap {
    max-width: 800px;
    width: 100%;
    text-align: left;
    justify-content: center;
    display: block;
    margin: 30px auto 0;
}

#printBtn {
    position: relative;
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: 0.3s;
}

.is-open {
    box-shadow: none !important;
    margin-top: 0 !important;
}

.folder-item, .file-item {
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 5px;
    margin: 5px 0;
    font-size: 17px;
    padding: 8px 15px;
}


.folder-item:hover, .file-item:hover {
    background-color: #e9ecef;
}


.folder-item:hover span, .file-item:hover span {
    text-decoration: underline;
}


#fileExplorer {
    max-height: 80vh;
    overflow-y: auto;
}

.breadcrumb-item {
    cursor: pointer;
}


.folder-item i.fa-folder {
    color: #ffc107;
}

.file-item i.fa-file-word {
    color: #007bff;
}

.watermark {
    opacity: 0.03;
    position: fixed;
}


.watermark {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: 5;
    opacity: 0.07;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    font-size: 4rem;
    color: #000;
    user-select: none;
}

#addFolderBtn {
    width: max-content;
    white-space: nowrap;
    background: #ffb010;
    border-radius: 9999px;
    color: #fff;
    font-weight: 700;
    height: max-content;
    padding: 8px;
    transition: all 0.2s ease;
}


#uploadBtn {
    width: max-content;
    white-space: nowrap;
    background: #1da1f2;
    border-radius: 9999px;
    color: #fff;
    font-weight: 700;
    height: max-content;
    padding: 8px;
    transition: all 0.2s ease;
}

#uploadBtn:hover, #addFolderBtn:hover {
    transform: translateY(-2px);
}


.action-group {
    display: flex;
    gap: 10px;
}

.action-group .edit-worksheet-btn, .action-group .edit-folder-btn {
    border-radius: 6px;
    color: rgba(37, 99, 235, 1);
    padding: .5rem .75rem;
    background-color: rgba(239, 246, 255, 1);
}

.action-group .delete-worksheet-btn, .action-group .delete-folder-btn {
    border-radius: 6px;
    padding: .5rem .75rem;
    background-color: #ffebeb;
    color: #e53935;
}

.action-group button {
    transition: all 0.2s ease;
}

.action-group button:hover {
    transform: translateY(-2px);
}


.list-watermark {
    position: fixed;
    left: 0;
    width: 100%;
    bottom: 50px;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.25;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #000;
    user-select: none;
}

#printLogo {
    display: flex;
    justify-content: center;
    z-index: 3;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

#printLogo img {
    width: 155px;
}


.folder-edit-container .header-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #d9dee3;
    margin-bottom: 20px;
}

.folder-edit-container .header-group .tit {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.folder-edit-container .header-group .close-btn {
    color: #aaa;
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.folder-edit-container .form-group {
    margin-bottom: 20px;
}

.folder-edit-container .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}

.folder-edit-container .form-group .note {
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

.folder-edit-container .form-group input {
    border-radius: 10px;
    border: 2px solid #e1e1e1;
    transition: all 0.2s ease;
    width: 100%;
    padding: .5rem 1rem;
    outline: none;
}

.folder-edit-container .form-group input:hover {
    transform: translateY(-2px);
}

.folder-edit-container .form-group input:focus {
    outline: none;
    border: 1px solid #3064d1;
}

.folder-edit-container .footer-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.folder-edit-container .footer-container .edit-btn {
    background-color: #3064d1;
    color: #fff;
    padding: .5rem 1.5rem;
    border-radius: .5rem;
    font-weight: 700;
    border: none;
}

.folder-edit-container .footer-container button {
    transition: all 0.3s ease;
}

.folder-edit-container .footer-container button:hover {
    transform: translateY(-2px);
}

.folder-edit-container .footer-container .cancel-btn {
    background-color: rgba(229, 231, 235, 1);
    color: rgba(55, 65, 81, 1);
    padding: .5rem 1.5rem;
    border-radius: .5rem;
    margin-right: 15px;
    font-weight: 500;
    border: none;
}

/* File Explorer Styles */
.file-explorer-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #495057;
    user-select: none;
}

.sort-header {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-header:hover {
    background: #e9ecef;
}

.sort-header.active {
    background: #007bff;
    color: white;
}

.sort-header .sort-icon {
    opacity: 0.6;
    transition: all 0.2s ease;
}

.sort-header.active .sort-icon {
    opacity: 1;
}

@media (max-width: 768px) {
    .file-explorer-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }


}