.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.explorer-item {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: background 0.2s;
}

.explorer-item:hover { background: #f9f9f9; }

.explorer-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.explorer-name {
    font-size: 0.825rem;
    display: block;
}

#explorer-breadcrumb {
    font-weight: bold;
    margin-bottom: 10px;
    color: #555;
}

/* Container for the explorer */
#file-explorer-container {
    position: relative;
    min-height: 200px;
}

/* The Spinner Overlay */
.explorer-loader {
    display: none; /* Hidden by default */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.explorer-size {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.breadcrumb-root:hover {
    text-decoration: underline;
}