body {
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #333;
    padding: 20px;
}

h1 {
    text-align: center;
}

#searchInput {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

#fileList {
    list-style: none;
    padding: 0;
}

.file-item {
    background: #fff;
    padding: 10px;
    margin: 6px 0;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: background 0.3s;
}

.file-item:hover {
    background: #e6f0ff;
}

/* Popup overlay */
#popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.hidden {
    display: none !important;
}

#popupContent {
    background: #fff;
    width: 90%;
    height: 90%;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* Sidebar */
#fileSidebar {
    width: 25%;
    background: #f4f4f4;
    padding: 15px;
    border-right: 1px solid #ccc;
    overflow-y: auto;
}

#fileSidebar h3 {
    margin-top: 0;
}

#fileSidebar ul {
    list-style: none;
    padding: 0;
}

.popup-file-item {
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    cursor: pointer;
}

.popup-file-item:hover {
    background: #dceeff;
}

/* File display area */
#fileDisplay {
    width: 75%;
    position: relative;
    padding: 20px;
    overflow-y: auto;
}

#closeBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: crimson;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

#fileText {
    /*white-space: pre-wrap;*/
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    height: calc(100% - 60px);
    overflow: auto;
}
