/* Nube LokuraFm custom styles */
.lokura-pwd-eye:hover {
  color: #2979ff !important;
}

/* Ocultar barra antigua de subida de FileBrowser para evitar duplicados */
.upload-files {
  display: none !important;
}

/* Panel flotante de Transferencias Individuales */
#lokura-tx-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(400px, calc(100vw - 24px));
  max-height: 62vh;
  background: #1c222d;
  color: #f1f5f9;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  flex-direction: column;
  z-index: 99999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  overflow: hidden;
}

#lokura-tx-panel.minimized .ltx-list {
  display: none;
}

.ltx-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #131820;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.ltx-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ltx-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

#lokura-tx-panel.has-active .ltx-dot {
  background: #3b82f6;
  box-shadow: 0 0 8px #3b82f6;
  animation: ltxPulse 1.2s infinite ease-in-out;
}

@keyframes ltxPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.ltx-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ltx-gpct {
  font-size: 11px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
  padding: 2px 7px;
  border-radius: 999px;
}

.ltx-hbtns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ltx-hbtn {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.4;
}

.ltx-hbtn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.ltx-list {
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: calc(62vh - 46px);
}

.ltx-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  padding: 9px 10px;
}

.ltx-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ltx-name-box {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.ltx-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.ltx-badge.b-up { background: rgba(59, 130, 246, 0.25); color: #93c5fd; }
.ltx-badge.b-cp { background: rgba(168, 85, 247, 0.25); color: #d8b4fe; }
.ltx-badge.b-mv { background: rgba(20, 184, 166, 0.25); color: #5eead4; }

.ltx-name {
  font-size: 13px;
  font-weight: 500;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ltx-cancel, .ltx-rm {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  padding: 0;
}

.ltx-cancel {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.ltx-cancel:hover {
  background: #ef4444;
  color: #fff;
}

.ltx-rm {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.ltx-rm:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ltx-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 5px;
}

.ltx-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  transition: width 0.2s ease;
}

.ltx-bar.indeterminate {
  animation: ltxSlide 1.3s infinite ease-in-out;
}

@keyframes ltxSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}

.ltx-done .ltx-bar {
  background: linear-gradient(90deg, #16a34a, #4ade80);
}

.ltx-cancelled .ltx-bar {
  background: #f59e0b;
}

.ltx-error .ltx-bar {
  background: #ef4444;
}

.ltx-meta {
  font-size: 11.5px;
  color: #94a3b8;
}

.ltx-done .ltx-meta { color: #86efac; }
.ltx-cancelled .ltx-meta { color: #fcd34d; }
.ltx-error .ltx-meta { color: #fca5a5; }
