/* _content/OpenDataChat.com/Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-il2yjtoa8g] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-il2yjtoa8g] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/OpenDataChat.com/Components/Pages/MainPage/FileExplorer.razor.rz.scp.css */
.file-explorer[b-s8auarj68r] {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f8f9fa;
}

.explorer-container[b-s8auarj68r] {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    gap: 20px;
}

.explorer-header[b-s8auarj68r] {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-top[b-s8auarj68r] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.header-top h2[b-s8auarj68r] {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.file-count-badge[b-s8auarj68r] {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.header-actions[b-s8auarj68r] {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-upload[b-s8auarj68r] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-upload:hover[b-s8auarj68r] {
    background: #45a049;
}

.btn-action[b-s8auarj68r] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-upload-confirm[b-s8auarj68r] {
    background: #2196f3;
    color: white;
}

.btn-upload-confirm:hover[b-s8auarj68r] {
    background: #0b7dda;
}

.btn-upload-confirm:disabled[b-s8auarj68r] {
    background: #ccc;
    cursor: not-allowed;
}

.btn-delete[b-s8auarj68r] {
    background: #f44336;
    color: white;
}

.btn-delete:hover[b-s8auarj68r] {
    background: #da190b;
}

.btn-icon[b-s8auarj68r] {
    font-size: 16px;
}

.btn-text[b-s8auarj68r] {
    font-size: 14px;
}

.files-content[b-s8auarj68r] {
    flex: 1;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.loading-state[b-s8auarj68r],
.empty-state[b-s8auarj68r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.empty-icon[b-s8auarj68r] {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3[b-s8auarj68r] {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #333;
}

.empty-state p[b-s8auarj68r] {
    margin: 0;
    color: #999;
    font-size: 14px;
}

.spinner[b-s8auarj68r] {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4caf50;
    border-radius: 50%;
    animation: spin-b-s8auarj68r 1s linear infinite;
    margin-bottom: 16px;
}

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

.files-list[b-s8auarj68r] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.files-header[b-s8auarj68r] {
    display: grid;
    grid-template-columns: 40px 1fr 100px 180px 180px;
    gap: 12px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    position: sticky;
    top: 0;
}

.files-items[b-s8auarj68r] {
    flex: 1;
    overflow-y: auto;
}

.file-item[b-s8auarj68r] {
    display: grid;
    grid-template-columns: 40px 1fr 100px 180px 180px;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.file-item:hover[b-s8auarj68r] {
    background-color: #fafafa;
}

.col-checkbox[b-s8auarj68r] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.col-name[b-s8auarj68r] {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.file-icon[b-s8auarj68r] {
    font-size: 18px;
    flex-shrink: 0;
}

.file-name-text[b-s8auarj68r] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-size[b-s8auarj68r],
.col-date[b-s8auarj68r] {
    font-size: 13px;
    color: #666;
}

.col-sortable[b-s8auarj68r] {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.col-sortable:hover[b-s8auarj68r] {
    background-color: #efefef;
    border-radius: 4px;
}

.col-sortable:active[b-s8auarj68r] {
    background-color: #e0e0e0;
}

.confirmation-overlay[b-s8auarj68r] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirmation-dialog[b-s8auarj68r] {
    background: white;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.confirmation-title[b-s8auarj68r] {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.confirmation-message[b-s8auarj68r] {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

.confirmation-buttons[b-s8auarj68r] {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive design - Progressive column hiding based on screen width */

/* Large screens: Show all columns (Checkbox, Name, Size, Created, Modified) */
/* 40px + 1fr + 100px + 180px + 180px = default */

/* Medium-large screens: Hide Modified column */
@media (max-width: 1200px) {
    .files-header[b-s8auarj68r] {
        grid-template-columns: 40px 1fr 100px 180px;
    }

    .file-item[b-s8auarj68r] {
        grid-template-columns: 40px 1fr 100px 180px;
    }

    .col-date:last-of-type[b-s8auarj68r] {
        display: none;
    }
}

/* Medium screens: Hide Created and Modified columns */
@media (max-width: 992px) {
    .files-header[b-s8auarj68r] {
        grid-template-columns: 40px 1fr 100px;
    }

    .file-item[b-s8auarj68r] {
        grid-template-columns: 40px 1fr 100px;
    }

    .col-date[b-s8auarj68r] {
        display: none;
    }
}

/* Tablet: Hide Size and date columns */
@media (max-width: 768px) {
    .files-header[b-s8auarj68r] {
        grid-template-columns: 40px 1fr;
    }

    .file-item[b-s8auarj68r] {
        grid-template-columns: 40px 1fr;
    }

    .col-size[b-s8auarj68r],
    .col-date[b-s8auarj68r] {
        display: none;
    }
}

.pagination-controls[b-s8auarj68r] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.pagination-btn[b-s8auarj68r] {
    padding: 8px 16px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 13px;
}

.pagination-btn:hover:not(:disabled)[b-s8auarj68r] {
    background: #0b7dda;
}

.pagination-btn:disabled[b-s8auarj68r] {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-info[b-s8auarj68r] {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.page-number[b-s8auarj68r] {
    font-weight: 700;
    color: #2196f3;
}

.btn-confirm[b-s8auarj68r],
.btn-cancel-confirm[b-s8auarj68r] {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-confirm[b-s8auarj68r] {
    background: #f44336;
    color: white;
}

.btn-confirm:hover[b-s8auarj68r] {
    background: #da190b;
}

.btn-cancel-confirm[b-s8auarj68r] {
    background: #e0e0e0;
    color: #333;
}

.btn-cancel-confirm:hover[b-s8auarj68r] {
    background: #d0d0d0;
}

.alert-error[b-s8auarj68r] {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}
