.neo-dl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px;align-items:stretch}
.neo-dl-card{background:#ffffff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.1);display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
.neo-dl-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px rgba(0,0,0,.15)}
.neo-dl-thumb{background:#f8fafc center/cover no-repeat;height:160px}
.neo-dl-info{padding:16px 16px 18px;color:#1e293b;display:flex;flex-direction:column;gap:10px}
.neo-dl-title{font-size:16px;margin:0;color:#1e293b;line-height:1.3}
.neo-dl-excerpt{margin:0;color:#64748b;font-size:13px;min-height:38px}
.neo-dl-meta{display:flex;align-items:center;justify-content:space-between;margin-top:6px}
.neo-dl-count{font-size:12px;color:#64748b}
.neo-dl-button{
  appearance:none;
  background:#3b82f6;
  color:#ffffff;
  padding:10px 14px;
  border:none;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  cursor:pointer;
  transition:background 0.2s ease;
  height:36px;
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.neo-dl-button:hover{
  background:#2563eb;
}
.neo-dl-button.disabled{background:#e2e8f0;color:#94a3b8;pointer-events:none;box-shadow:none}

/* Vista lista */
.neo-dl-list{display:block;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#ffffff;position:relative}
.neo-dl-col{overflow:visible;white-space:normal;font-size:14px;line-height:1.4}
.neo-dl-name{overflow-wrap:anywhere;word-break:break-word;font-size:14px;line-height:1.4}
.neo-dl-link{color:#64748b;text-decoration:none}
.neo-dl-link:hover{color:#475569;text-decoration:underline}
.neo-breadcrumbs-container{position:relative;margin:8px 0 10px}
.neo-dl-breadcrumbs{color:#64748b;font-size:13px}
.neo-dl-breadcrumbs a{color:#3b82f6;text-decoration:none}
.neo-dl-breadcrumbs a:hover{color:#1d4ed8;text-decoration:underline}
.neo-dl-breadcrumbs span{color:#64748b}
/* Iconos de carpeta clickeables - manteniendo diseño original */
.neo-dl-folder-link{
  display:flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:#64748b;
}

.neo-dl-folder-link:hover{
  color:#475569;
  text-decoration:underline;
}

.neo-dl-folder-icon{
  cursor:pointer;
  display:inline-block;
  width:16px;
  height:16px;
}

.neo-dl-folder-icon svg{
  width:16px;
  height:16px;
  fill:#fbbf24;
  transition:fill 0.2s ease;
}

.neo-dl-folder-link:hover .neo-dl-folder-icon svg{
  fill:#f59e0b;
}

.neo-dl-folder-name{
  cursor:pointer;
}

/* Icono de carpeta ahora está en el HTML, no en CSS */

/* Botones de acción para archivos */
.neo-dl-row{display:flex;align-items:center;padding:1px 8px;transition:all 0.2s ease;background:#ffffff;border-radius:4px;margin:1px 0}
.neo-dl-row:hover{background:#f1f5f9;box-shadow:0 2px 4px rgba(0,0,0,0.08)}
.neo-dl-row.is-dir{background:#ffffff}
/* Asegurar que las carpetas también tengan efecto hover */
.neo-dl-row.is-dir:hover{background:#f1f5f9;box-shadow:0 2px 4px rgba(0,0,0,0.08)}
.neo-dl-col{flex:1;padding:0 1px}
.neo-dl-col.neo-dl-name{flex:2;font-weight:500;color:#1e293b;font-size:14px}
.neo-dl-col.neo-dl-size{flex:0 0 80px;text-align:right;color:#64748b;font-size:14px}
.neo-dl-col.neo-dl-actions{flex:0 0 150px;text-align:right;display:flex;gap:1px;justify-content:flex-end}
.neo-dl-filename{word-break:break-all}
.neo-dl-download-link{color:#1e293b;text-decoration:none;font-weight:500;transition:all 0.2s ease;padding:4px 8px;border-radius:4px;display:inline-block}
.neo-dl-download-link:hover{color:#2563eb;text-decoration:underline;background:#e0f2fe;box-shadow:0 2px 6px rgba(37,99,235,0.15)}

/* Botones de acción */
.neo-dl-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:0;background:transparent;color:#2E2F30;cursor:pointer;transition:all 0.2s ease;text-decoration:none;font-size:14px;font-family:system-ui,-apple-system,sans-serif;line-height:1;padding:0;outline:none;box-shadow:none}
.neo-dl-btn svg{width:16px;height:16px;stroke:currentColor;fill:none;display:block;vertical-align:middle}
.neo-dl-btn svg *{stroke:currentColor;fill:none}
.neo-dl-btn:hover{background:transparent;color:#2E2F30;transform:translateY(-1px)}
.neo-dl-btn:active{transform:translateY(0)}
.neo-dl-btn-location:hover{background:transparent;color:#8b5cf6}
.neo-dl-btn-delete:hover{background:transparent;color:#dc2626}
.neo-dl-btn-rename:hover{background:transparent;color:#d97706}
.neo-dl-btn-link:hover{background:transparent;color:#2563eb}
.neo-dl-btn-download:hover{background:transparent;color:#16a34a}
.neo-dl-btn-actions:hover{background:transparent;color:#6b7280}

/* Fuente Material Icons */
@font-face {
    font-family: 'Material Icons';
    src: url('../fonts/Material Icons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Iconos usando Material Icons con letras */
.neo-dl-btn-location::before {
    content: "M"; /* Located in */
    font-family: 'Material Icons';
    font-size: 22px;
    display: block;
    font-weight: normal;
}

.neo-dl-btn-delete::before {
    content: "D"; /* Delete */
    font-family: 'Material Icons';
    font-size: 26px;
    display: block;
    font-weight: normal;
}

.neo-dl-btn-rename::before {
    content: "C"; /* Rename */
    font-family: 'Material Icons';
    font-size: 22px;
    display: block;
    font-weight: normal;
}

.neo-dl-btn-link::before {
    content: "B"; /* Link */
    font-family: 'Material Icons';
    font-size: 22px;
    display: block;
    font-weight: normal;
}

.neo-dl-btn-download::before {
    content: "A"; /* Download */
    font-family: 'Material Icons';
    font-size: 26px;
    display: block;
    font-weight: normal;
}

.neo-dl-btn-actions::before {
    content: "E"; /* Actions */
    font-family: 'Material Icons';
    font-size: 22px;
    display: block;
    font-weight: normal;
}

/* Notificaciones */
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.neo-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mensajes del sistema */
.neo-dl-upload-msg{color:#64748b;font-size:14px;text-align:center;padding:20px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin:20px 0}

/* Estilos del tema Neo migrados al plugin */
:root{--neo-bg:#ffffff;--neo-surface:#f8fafc;--neo-border:#e2e8f0;--neo-text:#1e293b;--neo-muted:#64748b;--neo-primary:#3b82f6;--neo-accent:#06b6d4}

/* Fix para layout shift durante búsquedas - Forzar scrollbar siempre visible */
html {
    overflow-y: scroll;
}

/* Layout principal */
.neo-layout{display:flex;min-height:100vh;width:100%}
.neo-sidebar{width:250px;min-width:250px;background:#f5f5f5;border-right:1px solid #e0e0e0;overflow-y:auto;position:fixed;left:0;top:0;height:100vh;z-index:1000}
.neo-sidebar__inner{display:flex;flex-direction:column;height:100%}

/* Brand/Logo */
.neo-sidebar__brand{display:block;padding:15px 12px;color:#333;text-decoration:none;font-weight:800;font-size:16px;border-bottom:1px solid #e0e0e0;background:#fff}

/* User Section */
.neo-sidebar__user{padding:12px;background:#fff;border-bottom:1px solid #e0e0e0}
.neo-user-name{font-weight:600;color:#333;font-size:13px}

/* File Management Section */
.neo-file-management{padding:12px 0;flex:0}
.neo-file-section{margin-bottom:6px}
.neo-file-section__title{font-size:10px;font-weight:600;color:#666;text-transform:uppercase;letter-spacing:0.5px;margin:0 0 6px 12px}

/* Navigation Items */
.neo-nav{display:flex;flex-direction:column;padding:0}
.neo-nav__item{color:#555;text-decoration:none;padding:10px 12px;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500;transition:all 0.2s ease;border-left:3px solid transparent}
.neo-nav__item:hover{background:#e8e8e8;color:#333;border-left-color:#007bff}
.neo-nav__item.active{background:#e8e8e8;color:#007bff;border-left-color:#007bff;font-weight:600}

/* Icons */
.neo-nav__item::before{content:"";display:inline-block;width:20px;height:20px;opacity:0.8;flex-shrink:0}
.neo-nav__item.is-files::before{background:currentColor; -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M10 4H4c-1.11 0-2 .89-2 2v12c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2h-8l-2-2z"/></svg>') center/contain no-repeat; mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M10 4H4c-1.11 0-2 .89-2 2v12c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2h-8l-2-2z"/></svg>') center/contain no-repeat}
.neo-nav__item.is-trash::before{background:currentColor; -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></svg>') center/contain no-repeat; mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/></svg>') center/contain no-repeat}

/* Separator */
.neo-separator{height:1px;background:#d0d0d0;margin:8px 0}

/* Account Section */
.neo-account-section{padding:8px 12px;background:#fff;border-top:1px solid #e0e0e0}
.neo-account-item{color:#666;text-decoration:none;padding:6px 0;display:flex;align-items:center;gap:10px;font-size:12px;font-weight:500}
.neo-account-item:hover{color:#333}
.neo-account-item::before{content:"";display:inline-block;width:16px;height:16px;opacity:0.7;flex-shrink:0}
.neo-account-item.is-account::before{background:currentColor; -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') center/contain no-repeat; mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') center/contain no-repeat}
.neo-account-item.is-logout::before{background:currentColor; -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"/></svg>') center/contain no-repeat; mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"/></svg>') center/contain no-repeat}

.neo-main{min-width:0;width:100%;padding:20px;margin-left:250px;background:#fff}

/* Hero y secciones */
.neo-hero{padding:60px 20px 40px;background:radial-gradient(1200px 500px at 50% -50%, rgba(59,130,246,.1), rgba(6,182,212,.05) 50%, transparent 70%)}
.neo-section{max-width:none;margin:0;padding:0}
.neo-section__header{display:flex;align-items:center;justify-content:space-between;margin:10px 0 18px;color:var(--neo-muted)}
.neo-section__title{margin:0;color:var(--neo-text);font-size:20px}
.neo-link{color:var(--neo-accent);text-decoration:none}

/* Buscador */
.neo-search{margin:28px auto 0;max-width:720px;display:flex;gap:10px}
.neo-search input[type="search"]{flex:1;padding:14px 16px;border-radius:12px;border:1px solid var(--neo-border);background:var(--neo-surface);color:var(--neo-text)}
.neo-search button{padding:14px 18px;border-radius:12px;border:0;background:linear-gradient(135deg,var(--neo-primary),var(--neo-accent));color:#ffffff;font-weight:700}

/* Formularios */
.neo-dl-upload-form{background:var(--neo-surface);border:1px solid var(--neo-border);border-radius:14px;padding:20px;max-width:520px;margin:0 auto}
.neo-dl-field{margin-bottom:16px}
.neo-dl-field label{color:var(--neo-text);font-size:13px;display:block;margin-bottom:6px}
.neo-dl-field input[type="text"],.neo-dl-field input[type="file"],.neo-dl-field textarea{width:100%;padding:12px 14px;border-radius:10px;border:1px solid var(--neo-border);background:var(--neo-bg);color:var(--neo-text)}
.neo-dl-field textarea{min-height:80px;resize:vertical}

/* Notas y mensajes */
.neo-note{background:var(--neo-surface);border:1px solid var(--neo-border);color:var(--neo-muted);border-radius:10px;padding:12px 14px;margin:0 0 12px}
.neo-dl-upload-success{background:#d1fae5;border:1px solid #10b981;color:#065f46;border-radius:8px;padding:12px 14px;margin:0 0 12px}
.neo-dl-upload-error{background:#fee2e2;border:1px solid #ef4444;color:#991b1b;border-radius:8px;padding:12px 14px;margin:0 0 12px}

/* Archivos a ancho completo */
#neo-files{max-width:none;margin:0;padding:0 20px}
#neo-files .neo-dl-list{border-left:0;border-right:0;border-radius:0}

/* List View - Vista de iconos grandes */
.neo-files-list-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px 0;
  border: none !important;
  background: transparent !important;
}

.neo-files-list-view .neo-dl-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0;
  transition: all 0.2s ease;
  min-height: 240px;
  justify-content: flex-start;
  position: relative;
}

.neo-files-list-view .neo-dl-row:hover {
  background: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.neo-files-list-view .neo-dl-row.is-dir:hover {
  background: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.neo-files-list-view .neo-file-icon {
  font-size: 48px;
  margin-bottom: 12px;
  color: #6b7280;
}

.neo-files-list-view .neo-dl-folder-icon svg {
  width: 48px;
  height: 48px;
  fill: #fbbf24;
}

.neo-files-list-view .neo-dl-name {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 8px;
  word-break: break-word;
  line-height: 1.3;
}

.neo-files-list-view .neo-dl-size {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 12px;
}

.neo-files-list-view .neo-dl-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 4px 4px 4px 0;
}

.neo-files-list-view .neo-dl-checkbox {
  position: absolute;
  bottom: 8px;
  left: 4px;
  padding: 4px 0;
  display: flex;
  align-items: center;
}

/* Header Toolbar */
.neo-header-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 20px;
  background:#ffffff;
  border-radius:8px;
  margin-bottom:20px;
  position:sticky;
  top:0;
  z-index:100;
  overflow:visible;
  min-height:48px;
  transition:all 0.3s ease;
}

/* Estados de drag & drop */
.neo-header-toolbar.drag-over{
  border-color:transparent;
  background:transparent;
  transform:none;
  box-shadow:none;
}

/* Overlay de drag & drop en el centro de la pantalla */
.neo-drag-overlay{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:960px;
  height:540px;
  background:#fafbfc;
  border:1px solid #e5e7eb;
  border-radius:8px;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:10000;
  pointer-events:none;
  animation:dropPulse 1.5s infinite;
}

.neo-drag-overlay.show{
  display:flex;
}

.neo-drag-overlay::before{
  content:"Drop files here to upload";
  color:#374151;
  font-size:16px;
  font-weight:600;
  text-align:center;
  line-height:1.4;
}

@keyframes dropPulse{
  0%, 100%{opacity:0.9; transform:translate(-50%, -50%) scale(1);}
  50%{opacity:1; transform:translate(-50%, -50%) scale(1.02);}
}

/* Resultados de búsqueda con rutas */
.neo-search-results .neo-dl-filename {
  text-decoration: none;
  color: inherit;
}

.neo-search-results .neo-dl-filename:hover {
  text-decoration: none;
  color: inherit;
}

.neo-search-results .neo-dl-folder-link {
  text-decoration: none;
  color: inherit;
}

.neo-search-results .neo-dl-folder-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Aplicar efecto hover a las filas de resultados de búsqueda */
.neo-search-results .neo-dl-row {
  display: flex;
  align-items: center;
  padding: 1px 8px;
  transition: all 0.2s ease;
  background: #ffffff;
  border-radius: 4px;
  margin: 1px 0;
}

.neo-search-results .neo-dl-row:hover {
  background: #f1f5f9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.neo-search-results .neo-dl-row.is-dir {
  background: #ffffff;
}

.neo-search-results .neo-dl-row.is-dir:hover {
  background: #f1f5f9;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Asegurar que los botones en resultados de búsqueda sean clickeables */
.neo-search-results .neo-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #2E2F30;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 14px;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1;
  padding: 0;
  outline: none;
  box-shadow: none;
}

.neo-search-results .neo-dl-btn:hover {
  background: transparent;
  color: #2E2F30;
  transform: translateY(-1px);
}

.neo-search-results .neo-dl-btn:active {
  transform: translateY(0);
}

/* Colores específicos para botones en resultados de búsqueda */
.neo-search-results .neo-dl-btn-location:hover {
  background: transparent;
  color: #8b5cf6;
}

.neo-search-results .neo-dl-btn-delete:hover {
  background: transparent;
  color: #dc2626;
}

.neo-search-results .neo-dl-btn-rename:hover {
  background: transparent;
  color: #d97706;
}

.neo-search-results .neo-dl-btn-link:hover {
  background: transparent;
  color: #2563eb;
}

.neo-search-results .neo-dl-btn-download:hover {
  background: transparent;
  color: #16a34a;
}

.neo-search-results .neo-dl-btn-actions:hover {
  background: transparent;
  color: #6b7280;
}

/* Iconos Material Icons para botones en búsqueda */
.neo-search-results .neo-dl-btn-location::before {
  content: "M"; /* Located in */
  font-family: 'Material Icons';
  font-size: 22px;
  display: block;
  font-weight: normal;
}

.neo-search-results .neo-dl-btn-delete::before {
  content: "D"; /* Delete */
  font-family: 'Material Icons';
  font-size: 26px;
  display: block;
  font-weight: normal;
}

.neo-search-results .neo-dl-btn-rename::before {
  content: "C"; /* Rename */
  font-family: 'Material Icons';
  font-size: 22px;
  display: block;
  font-weight: normal;
}

.neo-search-results .neo-dl-btn-link::before {
  content: "B"; /* Link */
  font-family: 'Material Icons';
  font-size: 22px;
  display: block;
  font-weight: normal;
}

.neo-search-results .neo-dl-btn-download::before {
  content: "A"; /* Download */
  font-family: 'Material Icons';
  font-size: 26px;
  display: block;
  font-weight: normal;
}

.neo-search-results .neo-dl-btn-actions::before {
  content: "E"; /* Actions */
  font-family: 'Material Icons';
  font-size: 22px;
  display: block;
  font-weight: normal;
}

/* Enlace de ruta de carpeta clickeable */
.neo-folder-path-link {
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 2px 6px;
  margin: -2px -6px;
}

.neo-folder-path-link:hover {
  background: #f1f5f9;
  color: #1e293b !important;
  text-decoration: none !important;
}


/* Botón Go to Folder en resultados de búsqueda */
.neo-goto-folder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.neo-goto-folder-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #374151;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.neo-goto-folder-btn svg {
  width: 16px;
  height: 16px;
}

/* Modal de archivos duplicados */
.neo-duplicate-modal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:opacity 0.3s ease, visibility 0.3s ease;
}

.neo-duplicate-modal.show{
  opacity:1;
  visibility:visible;
}

.neo-duplicate-content{
  background:#ffffff;
  border-radius:12px;
  padding:24px;
  max-width:500px;
  width:90%;
  box-shadow:0 20px 25px -5px rgba(0,0,0,0.1);
  transform:scale(0.9);
  transition:transform 0.3s ease;
}

.neo-duplicate-modal.show .neo-duplicate-content{
  transform:scale(1);
}

.neo-duplicate-header{
  margin-bottom:20px;
}

.neo-duplicate-header h3{
  margin:0 0 8px 0;
  color:#1e293b;
  font-size:18px;
  font-weight:600;
}

.neo-duplicate-header p{
  margin:0;
  color:#64748b;
  font-size:14px;
}

.neo-duplicate-list{
  max-height:120px;
  overflow-y:auto;
  margin-bottom:20px;
  border:1px solid #e2e8f0;
  border-radius:8px;
  padding:8px;
}

.neo-duplicate-item{
  padding:4px 0;
  border-bottom:1px solid #f1f5f9;
}

.neo-duplicate-item:last-child{
  border-bottom:none;
}

.neo-file-name{
  color:#374151;
  font-size:14px;
  font-weight:500;
}

.neo-duplicate-actions{
  display:flex;
  gap:12px;
  justify-content:flex-end;
}

.neo-duplicate-btn{
  padding:10px 20px;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-weight:500;
  font-size:14px;
  transition:all 0.2s ease;
}

.neo-replace-btn{
  background:#dc2626;
  color:#ffffff;
}

.neo-replace-btn:hover{
  background:#b91c1c;
}

.neo-rename-btn{
  background:#2563eb;
  color:#ffffff;
}

.neo-rename-btn:hover{
  background:#1d4ed8;
}

.neo-cancel-btn{
  background:#6C757D;
  color:#ffffff;
}

.neo-cancel-btn:hover{
  background:#5a6268;
}


.neo-toolbar-left{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  height:100%;
}

.neo-toolbar-center{
  flex:1;
  display:flex;
  justify-content:center;
  align-items:center;
  max-width:400px;
  margin:0 20px;
  position:relative;
  height:100%;
}

.neo-toolbar-right{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  height:100%;
}

/* Search Container */
.neo-search-container{
  display:flex;
  align-items:center;
  width:100%;
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  z-index:10;
  margin-left:0;
}

.neo-search-input{
  flex:1;
  padding:10px 40px 10px 15px;
  border:1px solid #d1d5db;
  border-radius:8px;
  font-size:14px;
  background:#ffffff;
  transition:all 0.2s ease;
  outline:none;
}

.neo-search-input:focus{
  border-color:#3b82f6;
  box-shadow:0 0 0 3px rgba(59,130,246,0.1);
}

.neo-search-btn{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
  border-radius:4px;
  color:#6b7280;
  transition:all 0.2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
}

.neo-search-btn:hover{
  background:#f3f4f6;
  color:#374151;
}

/* Botón de limpiar búsqueda */
.neo-search-clear {
  display: none;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  border: none;
  background: #f3f4f6 !important;
  border-radius: 4px;
  color: #6b7280 !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  padding: 2px;
  margin: 0;
  line-height: 1;
}

.neo-search-clear:hover,
.neo-search-clear:focus,
.neo-search-clear:active {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.neo-search-btn svg{
  width:16px;
  height:16px;
  stroke:currentColor;
}

/* New Folder Button */
.neo-new-folder-btn{
  background:transparent !important;
  color:#374151 !important;
  padding:8px 12px;
  border:none !important;
  border-radius:6px;
  font-weight:500;
  font-size:12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:4px;
  box-shadow:none !important;
  text-decoration:none !important;
  height:36px;
  min-height:36px;
}

.neo-new-folder-btn:hover{
  background:#f3f4f6 !important;
  color:#374151 !important;
  filter:none !important;
  transform:none !important;
  box-shadow:none !important;
}

/* Icono de carpeta amarillo en New Folder */
.neo-new-folder-btn::before{
  content:"📁";
  color:#fbbf24 !important;
  font-size:14px;
  margin-right:4px;
}

/* Interfaz minimalista de upload - ajustada para header */
.neo-upload-container{
  display:flex;
  align-items:center;
  padding:0;
  margin:0;
  position:relative;
  background:transparent;
  z-index:10;
}

.neo-upload-container .neo-dl-button{
  margin:0;
  display:inline-block;
  /* Ancho fijo para evitar desplazamiento durante el cambio Upload -> Uploading... */
  width: 100px;
  min-width: 100px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* Selector de vista (Grid/List) */
.neo-view-selector {
  display: flex;
  align-items: center;
  margin-right: 42px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.neo-view-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-family: 'Material Icons', sans-serif;
  font-size: 16px;
  color: #6b7280;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.neo-view-btn:hover {
  background: #f1f5f9;
  color: #374151;
}

.neo-view-btn.active {
  background: #f1f5f9;
  color: #3b82f6;
  font-weight: 600;
}

.neo-view-btn:first-child {
  border-right: 1px solid #e2e8f0;
}

.neo-upload-status{
  font-size:12px;
  color:#64748b;
  margin-left:10px;
  display:inline-block;
}

/* Barra de progreso minimalista */
.neo-progress-container{
  display:none;
  margin:0;
  padding:0;
  width:300px;
  position:fixed;
  bottom:20px;
  right:20px;
  z-index:1000;
  background:rgba(255,255,255,0.95);
  border:1px solid #e2e8f0;
  border-radius:8px;
  padding:12px 16px;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
  flex-direction:column;
}

.neo-progress-bar{width:100%;height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden;position:relative}
.neo-progress-fill{height:100%;background:linear-gradient(135deg,#3b82f6,#06b6d4);border-radius:3px;transition:width 0.3s ease;width:0%}
.neo-progress-text{font-size:12px;color:#64748b;margin-top:5px;text-align:left}

/* Status de upload debajo de la barra */
.neo-upload-status{
  font-size:11px;
  color:#10b981;
  margin-top:5px;
  text-align:left;
  display:block;
  width:100%;
}

/* Responsive */
@media (max-width: 992px){
  .neo-layout{grid-template-columns:1fr}
  .neo-sidebar{display:none}
}

@media (max-width: 768px){
  .neo-sidebar{width:100%;position:fixed;top:0;left:-100%;z-index:1000;transition:left 0.3s ease}
  .neo-sidebar.open{left:0}
  .neo-main{margin-left:0}
}

/* Selección múltiple y acciones masivas */
.neo-bulk-actions{
  background:#ffffff;
  border:none;
  border-radius:6px;
  padding:6px 8px;
  margin:0;
  box-shadow:none;
  position:absolute;
  top:-17px;
  right:0;
  z-index:10;
  min-width:300px;
  display:none;
}

.neo-bulk-actions-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.neo-selected-count{
  font-size:12px;
  color:#64748b;
  font-weight:500;
}

.neo-bulk-buttons{
  display:flex;
  gap:4px;
  align-items:center;
}


/* Iconos para botones masivos - mismo diseño que lista pero más grandes */
.neo-bulk-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border:none;
  border-radius:0;
  background:transparent;
  color:#2E2F30;
  cursor:pointer;
  transition:all 0.2s ease;
  text-decoration:none;
  font-size:16px;
  font-family:system-ui,-apple-system,sans-serif;
  line-height:1;
  padding:0;
  outline:none;
  box-shadow:none;
  margin:0 2px;
}

.neo-bulk-btn:hover{
  background:transparent;
  color:#2E2F30;
  transform:translateY(-1px);
}

.neo-bulk-btn:active{
  transform:translateY(0);
}

.neo-bulk-delete:hover{
  background:transparent;
  color:#dc2626;
}

.neo-bulk-rename:hover{
  background:transparent;
  color:#d97706;
}

.neo-bulk-link:hover{
  background:transparent;
  color:#2563eb;
}

.neo-bulk-download:hover{
  background:transparent;
  color:#16a34a;
}

/* Iconos usando Material Icons con letras - más grandes */
.neo-bulk-delete::before {
  content: "D"; /* Delete */
  font-family: 'Material Icons';
  font-size: 28px;
  display: block;
  font-weight: normal;
}

.neo-bulk-rename::before {
  content: "C"; /* Rename */
  font-family: 'Material Icons';
  font-size: 24px;
  display: block;
  font-weight: normal;
}

.neo-bulk-link::before {
  content: "B"; /* Link */
  font-family: 'Material Icons';
  font-size: 24px;
  display: block;
  font-weight: normal;
}

.neo-bulk-download::before {
  content: "A"; /* Download */
  font-family: 'Material Icons';
  font-size: 28px;
  display: block;
  font-weight: normal;
}

/* Checkboxes */
.neo-dl-checkbox{
  flex:0 0 40px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 8px;
}

.neo-file-checkbox{
  width:18px;
  height:18px;
  cursor:pointer;
  border-radius:3px;
  border:1px solid #d1d5db;
  background:#ffffff;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  position:relative;
  transition:all 0.2s ease;
}

.neo-file-checkbox:hover{
  border-color:#9ca3af;
  background:#f9fafb;
}

.neo-file-checkbox:checked{
  background:#3b82f6;
  border-color:#3b82f6;
}

.neo-file-checkbox:checked::after{
  content:'✓';
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  color:#ffffff;
  font-size:12px;
  font-weight:bold;
  line-height:1;
}

/* Header de la lista */
.neo-dl-header{
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
  font-weight:600;
  color:#374151;
  padding:12px 8px;
}

.neo-dl-header .neo-dl-checkbox{
  padding:0 8px;
}

/* Fila seleccionada */
.neo-dl-row.selected{
  background:#eff6ff;
}

.neo-dl-row.selected:hover{
  background:#dbeafe;
}

/* Menú desplegable de Actions */
.neo-actions-dropdown {
  position: relative;
  display: inline-block;
}

.neo-actions-menu {
  position: fixed;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  min-width: 180px;
  display: none;
  overflow: visible;
  margin-top: 4px;
  padding: 35px 0; /* Aumentado de 12px a 35px (12 + 23 = 35) para mayor altura vertical */
}

/* Menú de acciones con Material Icons personalizados */
.neo-actions-menu .neo-action-item::before {
  font-family: 'Material Icons';
  font-size: 18px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
  color: #6b7280;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  transition: color 0.2s ease;
}

/* Hover effect para los iconos del menú */
.neo-actions-menu .neo-action-item:hover::before {
  color: #3b82f6;
}

/* Iconos específicos para cada elemento del menú usando Material Icons.ttf */
.neo-actions-menu .neo-action-item:nth-child(1)::before {
  content: "F"; /* Info - F mayúscula */
}

.neo-actions-menu .neo-action-item:nth-child(2)::before {
  content: "G"; /* Copy to - G mayúscula */
}

.neo-actions-menu .neo-action-item:nth-child(3)::before {
  content: "H"; /* Move to - H mayúscula */
}

.neo-actions-menu .neo-action-item:nth-child(4)::before {
  content: "I"; /* Hide - I mayúscula */
}

.neo-actions-menu .neo-action-item:nth-child(5)::before {
  content: "J"; /* Preview - J mayúscula */
}

.neo-actions-menu.show {
  display: block;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.neo-actions-item {
  display: flex;
  align-items: center;
  padding: 2px 10px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: none;
  cursor: pointer;
  line-height: 1;
  margin: 0;
  height: auto;
  min-height: auto;
}

.neo-actions-item:last-child {
  border-bottom: none;
}

/* Reglas específicas para elementos dinámicos del menú */
.neo-action-item {
  display: flex;
  align-items: center;
  padding: 2px 10px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: none;
  cursor: pointer;
  line-height: 1;
  margin: 0;
  height: auto;
  min-height: auto;
}

.neo-actions-item:hover {
  background: #F1F5F9;
  color: #1e293b;
}

.neo-action-item:hover {
  background: #F1F5F9;
  color: #1e293b;
}

.neo-actions-item::before {
  font-family: 'Material Icons';
  font-size: 18px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
  color: #6b7280;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  transition: color 0.2s ease;
}

/* Hover effect para los iconos del menú dinámico */
.neo-actions-item:hover::before {
  color: #3b82f6;
}

/* Estilo para los iconos con span */
.neo-icon {
  font-family: 'Material Icons' !important;
  font-size: 24px;
  font-weight: normal;
  margin-right: 12px;
  color: #6b7280;
  display: inline-block;
  vertical-align: middle;
  transition: color 0.2s ease;
}

/* Hover effect para los iconos con span */
.neo-actions-item:hover .neo-icon {
  color: #3b82f6;
}

.neo-actions-item.info::before {
  content: "F"; /* Info - F mayúscula */
}

.neo-actions-item.copy::before {
  content: "G"; /* Copy to - G mayúscula */
}

.neo-actions-item.move::before {
  content: "H"; /* Move to - H mayúscula */
}

.neo-actions-item.hide::before {
  content: "I"; /* Hide - I mayúscula */
}

.neo-actions-item.preview::before {
  content: "J"; /* Preview - J mayúscula */
}

