/* My Schedule - Library Tab */
/* Only the folder list and the breadcrumb live here. The file rows themselves reuse
   .file-card / .files-empty from css/inspections/files.css, which the view loads
   alongside this file. */

.library-tab-pane {
    padding: 16px;
}

/* ========== Loading ========== */

.library-loading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== Folder List ========== */

.library-folders {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

/* A <button>, not a div: the whole row is the target and it has to reach the
   keyboard and screen readers like one. Reset the chrome a button brings. */
.library-folder {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.library-folder:last-child { border-bottom: none; }
.library-folder:hover { background: #f8fafc; }
.library-folder:active { background: #f1f5f9; }
.library-folder * { pointer-events: none; }

.library-folder-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.library-folder-info {
    flex: 1;
    min-width: 0;
}

.library-folder-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Descriptions are free text typed in the Resource module, so clamp rather than
   let one long line push the row's height past the rest of the list. */
.library-folder-desc {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-folder-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 3px;
}

.library-folder-chevron {
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 13px;
}

/* ========== Open Folder ========== */

.library-files-view {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.library-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.library-back-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.library-back-btn:hover { background: #f1f5f9; color: #1e293b; }
.library-back-btn:active { transform: scale(0.95); }

.library-crumb-text {
    min-width: 0;
}

.library-crumb-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* The folder's Role, shown as the label it is. Nothing about access is decided
   by this string -- visibility comes from the per-user folder grant. */
.library-crumb-meta {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}

@media (max-width: 479px) {
    .library-tab-pane { padding: 12px; }
}
