/* CSS para Media.NeutronWorld - Gestor Privado de Archivos */
:root {
  --bg-darker: #06090a;
  --bg-dark: #090f11;
  --bg-card: rgba(14, 23, 26, 0.65);
  --bg-card-hover: rgba(14, 23, 26, 0.85);
  
  --primary: #00ffcc;
  --primary-glow: rgba(0, 255, 204, 0.35);
  --primary-muted: rgba(0, 255, 204, 0.08);
  
  --text-white: #ffffff;
  --text-gray: #a3b8cc;
  --text-muted: #647b8c;
  
  --error: #ff4a6b;
  --error-glow: rgba(255, 74, 107, 0.3);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  
  --border-light: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 255, 204, 0.15);
  --border-accent-hover: rgba(0, 255, 204, 0.4);
  
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-darker);
  color: var(--text-gray);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Efectos de esfera brillante en el fondo */
.glow-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.main-glow {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 255, 204, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  top: -150px;
  right: -50px;
}

.secondary-glow {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 255, 204, 0.04) 0%, rgba(0, 0, 0, 0) 70%);
  bottom: -100px;
  left: -50px;
}

/* --- VISTA LOGIN --- */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-darker);
}

.login-wrapper {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 20px;
  z-index: 10;
}

.login-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s;
}

.login-card:hover {
  border-color: var(--border-accent);
}

.login-header {
  text-align: center;
  margin-bottom: 35px;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 2px;
  font-family: var(--font-sans);
}

.login-logo svg {
  width: 32px;
  height: 32px;
  fill: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-form .form-group {
  margin-bottom: 24px;
}

.login-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: inherit;
  color: var(--text-white);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.15);
  background: rgba(0, 255, 204, 0.02);
}

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: var(--bg-darker);
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--primary-glow);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 255, 204, 0.5);
}

.btn-submit:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Alertas */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.alert-error {
  background: rgba(255, 74, 107, 0.1);
  border: 1px solid var(--error-glow);
  color: var(--error);
}

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

/* Spinner Loader */
.loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--bg-darker);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- VISTA DASHBOARD --- */
.app-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(9, 15, 17, 0.75);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 100;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-white);
  letter-spacing: 1px;
}

.app-logo svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
  filter: drop-shadow(0 0 6px var(--primary-glow));
}

/* Buscador Central */
.search-wrapper {
  position: relative;
  width: 380px;
}

.search-wrapper input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 8px 16px 8px 40px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.search-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 255, 204, 0.01);
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.1);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 0.85rem;
  pointer-events: none;
}

.user-email {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-gray);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-logout:hover {
  background: var(--error);
  color: var(--bg-darker);
  border-color: var(--error);
}

/* Layout Principal */
.app-main {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px;
  z-index: 10;
}

/* Tarjetas de Categoría / Fila 1 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  font-size: 1.5rem;
}

.stat-title {
  font-weight: 600;
  color: var(--text-white);
  font-size: 1rem;
}

.stat-card-body {
  margin-top: 15px;
}

.stat-count {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  font-family: var(--font-mono);
}

.stat-size {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-card-btn {
  display: none;
}

/* Zona de Subida Drag & Drop / Fila 2 */
.upload-section {
  margin-bottom: 35px;
}

.upload-dropzone {
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.upload-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(0, 255, 204, 0.02);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.08);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dropzone-icon {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.upload-dropzone h3 {
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 600;
}

.upload-dropzone p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.divider {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 100%;
  max-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.btn-select-files {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-select-files:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Barra de progreso de subida */
.upload-progress-container {
  margin-top: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 16px 20px;
  animation: fadeIn 0.3s ease;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.progress-title {
  color: var(--text-white);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.progress-percent {
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 700;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--primary);
}

.progress-bar-fill.success {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.progress-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-family: var(--font-mono);
}

/* Barra de Filtros / Fila 3 */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 15px;
}

.controls-left {
  display: flex;
  gap: 10px;
}

.filter-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.filter-tab:hover {
  color: var(--text-white);
}

.filter-tab.active {
  background: var(--primary-muted);
  border-color: var(--border-accent);
  color: var(--primary);
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Botón Crear Carpeta */
.btn-create-folder {
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--primary);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-create-folder:hover {
  background: var(--primary);
  color: var(--bg-darker);
  box-shadow: 0 0 8px var(--primary-glow);
}

.select-sort {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  color: var(--text-gray);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.select-sort:focus {
  border-color: var(--primary);
}

.btn-trash-toggle {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-gray);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-trash-toggle:hover {
  background: rgba(255, 74, 107, 0.08);
  border-color: var(--error);
  color: var(--error);
}

.btn-trash-toggle.active {
  background: var(--error);
  color: var(--bg-darker);
  border-color: var(--error);
  box-shadow: 0 0 10px var(--error-glow);
}

/* Barra de Migas de Pan (Breadcrumbs) */
.breadcrumbs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 20px;
}

.breadcrumbs-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.breadcrumb-item {
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 600;
}

.breadcrumb-item:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-white);
  cursor: default;
  pointer-events: none;
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Wrapper Seleccionar Todos */
.select-all-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-gray);
  cursor: pointer;
  user-select: none;
}

.select-all-wrapper input {
  cursor: pointer;
  accent-color: var(--primary);
}

/* Grid de Archivos */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Tarjetas de Archivos y Carpetas */
.file-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s;
  min-height: 180px;
  overflow: hidden;
}

.file-card:hover {
  border-color: var(--border-accent-hover);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

/* Checkboxes en tarjetas */
.card-checkbox {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.2s;
}

.file-card:hover .card-checkbox,
.card-checkbox:checked {
  opacity: 1;
}

/* Modificar padding del top si tiene checkbox */
.file-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-left: 20px; /* Dejar espacio para el checkbox */
}

.file-type-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: border-color 0.2s;
}

.file-card:hover .file-type-icon {
  border-color: var(--primary);
}

.file-card-info {
  min-width: 0;
  flex: 1;
}

.file-card-name {
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.file-card-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.file-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Botones de acción */
.file-card-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.btn-copy-url-huge {
  grid-column: span 2;
  background: var(--primary-muted);
  border: 1px solid var(--border-accent);
  color: var(--primary);
  border-radius: 6px;
  padding: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-copy-url-huge:hover {
  background: var(--primary);
  color: var(--bg-darker);
  box-shadow: 0 0 8px var(--primary-glow);
}

.btn-action-sm {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-gray);
  border-radius: 6px;
  padding: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: inherit;
}

.btn-action-sm:hover {
  border-color: var(--text-white);
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.03);
}

.btn-action-delete:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(255, 74, 107, 0.05);
}

.trash-overlay-info {
  font-size: 0.7rem;
  color: var(--error);
  background: rgba(255, 74, 107, 0.08);
  border: 1px solid rgba(255, 74, 107, 0.15);
  border-radius: 4px;
  padding: 4px 8px;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

/* Tarjeta especial tipo Carpeta */
.file-card.folder-card {
  border-left: 3px solid var(--primary);
}

.file-card.folder-card .file-type-icon {
  background: var(--primary-muted);
  border-color: var(--border-accent);
  color: var(--primary);
  font-size: 2rem;
}

.file-card.folder-card:hover {
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.05);
}

/* Estado Vacío */
.empty-state {
  width: 100%;
  text-align: center;
  padding: 80px 20px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px dashed var(--border-light);
  border-radius: 16px;
  animation: fadeIn 0.4s ease;
}

.empty-state-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 15px;
}

.empty-state h3 {
  color: var(--text-white);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- BARRA FLOTANTE DE ACCIONES MASIVAS --- */
.bulk-action-bar {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: rgba(9, 15, 17, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-accent-hover);
  border-radius: 40px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 25px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  z-index: 500;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bulk-action-bar.active {
  transform: translateX(-50%) translateY(0);
}

.bulk-count {
  font-family: var(--font-mono);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

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

.btn-bulk-action {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  color: var(--text-white);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-bulk-action:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-muted);
}

.btn-bulk-delete:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(255, 74, 107, 0.08);
}

.bulk-cancel-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.bulk-cancel-btn:hover {
  color: var(--error);
}

/* --- MODAL: VISTA PREVIA --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-dark);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  max-height: 90%;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 255, 204, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  color: var(--primary);
}

.modal-body {
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 24px;
}

.preview-media-container {
  width: 100%;
  min-height: 250px;
  max-height: 480px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-media-container img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.preview-media-container video {
  width: 100%;
  max-height: 480px;
  outline: none;
}

.preview-media-container audio {
  width: 100%;
  max-width: 500px;
}

.pdf-preview-box {
  width: 100%;
  height: 450px;
  border: none;
}

.zip-preview-icon {
  font-size: 5rem;
  text-align: center;
}

.preview-details h2 {
  color: var(--text-white);
  font-size: 1.25rem;
  margin-bottom: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.details-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border-top: 1px solid var(--border-light);
  padding-top: 15px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 0.85rem;
  color: var(--text-white);
  word-break: break-all;
}

.detail-value-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
}

/* --- NOTIFICACIÓN FLOTANTE (Toast) --- */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-dark);
  border: 1px solid var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  padding: 12px 24px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  font-size: 1.1rem;
}

.toast-text {
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-content {
    width: 95%;
  }
  .bulk-action-bar {
    width: 90%;
    border-radius: 20px;
    flex-direction: column;
    padding: 15px;
    gap: 10px;
    bottom: 15px;
  }
  .bulk-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }
  .search-wrapper {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .controls-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .controls-right {
    width: 100%;
    justify-content: space-between;
  }
  .details-table {
    grid-template-columns: 1fr;
  }
  .breadcrumbs-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* --- MODAL DE DIÁLOGOS PERSONALIZADOS (CONFIRM / PROMPT) --- */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dialog-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.dialog-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-accent-hover);
  border-radius: 16px;
  padding: 30px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 15px 40px rgba(0, 255, 204, 0.1);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.dialog-overlay.active .dialog-card {
  transform: scale(1);
}

.dialog-card h3 {
  color: var(--text-white);
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.dialog-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
  line-height: 1.4;
}

.dialog-input-container {
  margin-bottom: 24px;
}

.dialog-input-container .form-input {
  text-align: center;
}

.dialog-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-dialog-cancel {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-dialog-cancel:hover {
  border-color: var(--text-gray);
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.02);
}

.btn-dialog-confirm {
  background: var(--primary);
  color: var(--bg-darker);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
  box-shadow: 0 4px 12px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-dialog-confirm:hover {
  box-shadow: 0 6px 18px rgba(0, 255, 204, 0.4);
  transform: translateY(-1px);
}

/* --- EFECTOS DRAG & DROP DE CARPETAS --- */
.file-card.folder-card.dragover {
  border-color: var(--primary) !important;
  background: var(--primary-muted) !important;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.15) !important;
  transform: scale(1.02);
}

.file-card.dragging {
  opacity: 0.4;
  border-style: dashed;
}

/* --- ESTILOS DE MINIATURAS EN CUADRÍCULA --- */
.file-type-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.video-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  position: relative;
  border: 1px solid rgba(0, 255, 204, 0.1);
}

.video-thumbnail-placeholder::after {
  content: "▶";
  position: absolute;
  bottom: 2px;
  right: 5px;
  font-size: 0.55rem;
  color: var(--primary);
}
