.folder-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    overflow: hidden;
    margin-bottom: 12px;
}
.folder-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    color: #212529;
    font-weight: 600;
    font-size: 15px;
    background: #fff;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background .2s;
}
.folder-link:hover { background: #f8f9fa; color: #0d6efd; }
.folder-icon { color: #f4b400; font-size: 20px; margin-right: 10px; }
.sub-folder-icon { color: #f9a825; font-size: 18px; margin-right: 10px; }
.arrow {
    transition: transform .25s ease;
    font-size: 13px;
    color: #adb5bd;
    flex-shrink: 0;
}
.folder-link[aria-expanded="true"] .arrow,
.sub-folder-link[aria-expanded="true"] .arrow { transform: rotate(90deg); }
.folder-panel { display: none; border-top: 1px solid #e9ecef; }
.folder-panel.show { display: block; }

/* Tree lines Level 1 */
.tree-children { padding: 8px 0; }
.tree-node { display: flex; align-items: stretch; margin-bottom: 6px; }
.tree-node:last-child { margin-bottom: 8px; }
.tree-line-col { width: 32px; flex-shrink: 0; position: relative; }
.tree-line-col::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1.5px; background: #dee2e6;
}
.tree-node:last-child .tree-line-col::before { bottom: 50%; }
.tree-line-col::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 1.5px; background: #dee2e6;
}
.tree-content { flex: 1; min-width: 0; }

/* Sub folder */
.sub-folder-wrap {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.sub-folder-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    color: #212529;
    font-weight: 500;
    font-size: 14px;
    background: #f8f9fa;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background .2s;
}
.sub-folder-link:hover { background: #f1f3f5; color: #0d6efd; }

/* Tree lines Level 2 */
.pdf-tree-node { display: flex; align-items: stretch; }
.pdf-line-col { width: 32px; flex-shrink: 0; position: relative; }
.pdf-line-col::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1.5px; background: #f1f1f1;
}
.pdf-tree-node:last-child .pdf-line-col::before { bottom: 50%; }
.pdf-line-col::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 1.5px; background: #f1f1f1;
}
.pdf-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px 9px 4px;
    border-top: 1px solid #f1f1f1;
}
.pdf-tree-node:first-child .pdf-content { border-top: none; }
.pdf-content:hover { background: #f8f9fa; }
.pdf-icon { color: #dc3545; font-size: 17px; margin-right: 8px; flex-shrink: 0; }
.pdf-title { text-decoration: none; color: #495057; font-size: 13.5px; flex: 1; }
.pdf-title:hover { color: #0d6efd; }
.dl-btn {
    font-size: 12px;
    color: #6c757d;
    text-decoration: none;
    border: 1px solid #dee2e6;
    padding: 3px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: .2s;
}
.dl-btn:hover { border-color: #0d6efd; color: #0d6efd; }

.folder-card br{ display: none; }
br{ display: none; }

/* Disclaimer modal styles */
.disclaimer-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    transform: none !important;
    background: rgba(0,0,0,.6);
    z-index: 999999 !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.disclaimer-overlay.show {
    display: flex !important;
}
.disclaimer-box {
    background: #fff;
    border-radius: 10px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.disclaimer-heading {
    padding: 18px 20px 10px;
    font-weight: 700;
    font-size: 15px;
    color: #212529;
    margin: 0;
    border-bottom: 1px solid #e9ecef;
}
.disclaimer-text {
    padding: 14px 20px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #495057;
}
.disclaimer-text h6 {
    font-weight: 700;
    margin-top: 10px;
}
.disclaimer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e9ecef;
}
.btn-accept {
    background: #198754;
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.btn-accept:hover { background: #157347; }
.btn-decline {
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 9px 22px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.btn-decline:hover { background: #e9ecef; }
