/* Styles pour la liste de fichiers */
.file-manager-content-wrapper {
    flex: 1;
    overflow-y: auto;
    background: #f9fafb;
}

.file-manager-main {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.file-manager-content {
    padding: 0.5rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.files-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.files-view.hidden {
    display: none;
}

/* Barre d'outils */
.file-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
    z-index: 20;
}

.file-toolbar-left {
    flex: 1;
    min-width: 200px;
}

.file-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-selection-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    border-radius: 0.5rem;
    border: 2px solid #3b82f6;
}

.file-selection-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e40af;
    margin-right: 0.5rem;
}

.file-toolbar-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.file-toolbar-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.file-toolbar-btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.file-toolbar-btn-primary:hover {
    background: #2563eb;
}

.file-toolbar-btn-danger {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.file-toolbar-btn-danger:hover {
    background: #dc2626;
}

.file-breadcrumb {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0;
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    z-index: 20;
}

.file-breadcrumb-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.file-breadcrumb-icon {
    color: #3b82f6;
}

.file-breadcrumb-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.file-breadcrumb-path {
    font-size: 0.75rem;
    color: #374151;
    font-family: monospace;
}

.file-breadcrumb-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.file-breadcrumb-nav button {
    color: #2563eb;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.file-breadcrumb-nav button:hover {
    color: #1d4ed8;
}

.file-list-container {
    border: 1px solid #e5e7eb;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.file-list-header {
    background: #f3f4f6;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.file-list-header-grid {
    display: grid;
    grid-template-columns: 0.5fr 4fr 2fr 3fr 3fr;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.file-list-header-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #667eea;
}

.file-list-header-col {
    /* Colonnes du header */
}

.file-list-body {
    background: white;
    position: relative;
    min-height: 200px;
}

.file-list-body.drag-over {
    background: #eff6ff;
    border: 2px dashed #3b82f6;
}

/* Zone de drop pour glisser-déposer */
.drop-zone {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.1);
    border: 3px dashed #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: auto;
}

.drop-zone.hidden {
    display: none;
}

.drop-zone-content {
    text-align: center;
    padding: 2rem;
}

.drop-zone-icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.drop-zone-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 0.5rem 0;
}

.drop-zone-hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.file-list-row {
    display: grid;
    grid-template-columns: 0.5fr 4fr 2fr 3fr 3fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
    align-items: center;
    transition: all 0.2s;
    border-bottom: 1px solid #f3f4f6;
    width: 100%;
    min-width: 0;
}

.file-list-row:hover {
    background-color: #f9fafb;
}

.file-list-row.selected {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
}

.file-list-row-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-list-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-list-name-folder {
    cursor: pointer;
    transition: color 0.2s;
}

.file-list-name-folder:hover {
    color: #3b82f6;
}

.file-list-name-folder span {
    font-weight: 500;
    color: #2563eb;
}

.file-list-name-folder span:hover {
    color: #1d4ed8;
}

.file-list-name-file span {
    color: #374151;
}

.file-list-size {
    font-size: 0.875rem;
    color: #6b7280;
}

.file-list-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.file-list-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.file-action-btn {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.file-action-btn-download {
    background: #dbeafe;
    color: #1e40af;
}

.file-action-btn-download:hover {
    background: #bfdbfe;
}

.file-action-btn-rename {
    background: #fef3c7;
    color: #92400e;
}

.file-action-btn-rename:hover {
    background: #fde68a;
}

.file-action-btn-delete {
    background: #fee2e2;
    color: #991b1b;
}

.file-action-btn-delete:hover {
    background: #fecaca;
}

.file-action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Vue grille */
.file-list-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.file-list-grid-view .file-list-row {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background: white;
    transition: all 0.2s;
    cursor: pointer;
}

.file-list-grid-view .file-list-row:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.file-list-grid-view .file-list-row-checkbox {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.file-list-grid-view .file-list-name {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.5rem;
}

.file-list-grid-view .file-list-name i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.file-list-grid-view .file-list-size,
.file-list-grid-view .file-list-date {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.file-list-grid-view .file-list-actions {
    justify-content: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* Vue liste (par défaut) */
.file-list-list-view .file-list-row {
    display: grid;
    grid-template-columns: 0.5fr 4fr 2fr 3fr 3fr;
}
