.junikdocs-wrap {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

.junikdocs-folder-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.junikdocs-subfolders {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.junikdocs-subfolder {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    padding: 12px 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.junikdocs-subfolder:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.jd-folder-icon {
    font-size: 1.2em;
}

.jd-count {
    font-size: 0.85em;
    color: #64748b;
    font-weight: 400;
    margin-left: auto;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
}

/* File Table */
.junikdocs-file-table {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.jd-table-head {
    display: flex;
    background: #f8f9fa;
    padding: 12px 15px;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jd-file-row {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
    transition: background 0.15s;
}

.jd-file-row:last-child {
    border-bottom: none;
}

.jd-file-row:hover {
    background: #f8fafc;
}

/* Columns setup */
.jd-col-icon { flex: 0 0 40px; text-align: center; }
.jd-col-title { flex: 3; display: flex; align-items: center; font-weight: 500; color: #1e293b; }
.jd-col-size { flex: 1; color: #64748b; font-size: 0.9em; }
.jd-col-date { flex: 1; color: #64748b; font-size: 0.9em; }
.jd-col-hits { flex: 0 0 80px; color: #64748b; font-size: 0.9em; text-align: center; }
.jd-col-dl { flex: 1; text-align: right; }

/* In table head, title needs margin left to align with body title */
.jd-table-head .jd-col-icon { flex: 0 0 40px; }

.jd-file-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.jd-btn-dl {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.jd-btn-dl:hover {
    background: #005177;
    color: #fff !important;
}

.jd-no-files {
    padding: 30px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* Scanned & Stamped PDF styles */
.jd-file-row.jd-scanned {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
}

.jd-file-row.jd-scanned:hover {
    background: #fef3c7;
}

.jd-badge-scan {
    display: inline-block;
    background: #f59e0b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 12px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Tree View Sidebar */
.jd-tree-list {
    list-style: none;
    padding-left: 15px;
    margin: 10px 0 0 0;
}

.junikdocs-sidebar > .jd-tree-list {
    padding-left: 0;
}

.jd-tree-list li {
    margin: 5px 0;
}

.jd-tree-list a {
    text-decoration: none;
    color: #475569;
    font-size: 0.95em;
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.jd-tree-list a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.jd-tree-list li.jd-tree-active > a {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}
