* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  background: radial-gradient(ellipse at top, #0d1b2e 0%, #05070d 55%, #000 100%);
  color: #e8edf4;
  overflow-x: hidden;
  position: relative;
}

/* Fondo estrellado */
.stars {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #ffffff90, transparent),
    radial-gradient(1px 1px at 70% 10%, #ffffff70, transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, #ffffff80, transparent),
    radial-gradient(1px 1px at 40% 80%, #ffffff60, transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, #ffffff70, transparent),
    radial-gradient(1px 1px at 10% 65%, #ffffff60, transparent),
    radial-gradient(1.5px 1.5px at 92% 25%, #ffffff80, transparent);
  background-repeat: repeat;
  background-size: 300px 300px;
  animation: driftStars 90s linear infinite;
}

@keyframes driftStars {
  from { background-position: 0 0; }
  to { background-position: -1000px 500px; }
}

/* Nebulosas / glow flotante */
.glow {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
}

.glow-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: #488aec;
  animation: floatGlow 14s ease-in-out infinite;
}

.glow-2 {
  width: 380px;
  height: 380px;
  bottom: -140px;
  right: -100px;
  background: #7c4dff;
  animation: floatGlow 18s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -25px); }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  position: relative;
  z-index: 2;
}

.header h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 0 18px #488aec66;
}

.header h1 span {
  color: #6fa8ff;
  font-weight: 400;
}

main {
  position: relative;
  z-index: 2;
  perspective: 1200px;
}

.hero, .about, .commands {
  padding: 26px 22px;
  max-width: 900px;
  margin: 0 auto 22px;
}

/* Paneles flotantes tipo UI espacial */
.glass-panel {
  background: linear-gradient(160deg, rgba(20, 30, 46, 0.55), rgba(8, 12, 20, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 20px 50px -15px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateZ(0) rotateX(0deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 60px -12px rgba(72, 138, 236, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero h2, .about h2, .commands h2 {
  font-family: "Montserrat", sans-serif;
  margin-top: 0;
  color: #fff;
  text-shadow: 0 0 20px rgba(111, 168, 255, 0.35);
}

.hero p, .about p {
  color: #b7c4d4;
  line-height: 1.5;
}

#search {
  width: 100%;
  padding: 0.7rem 1rem;
  margin: 10px 0 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.7rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s ease;
}

#search:focus {
  border-color: #488aec;
}

#command-list {
  display: grid;
  gap: 12px;
}

.command-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, border 0.25s ease;
}

.command-card:hover {
  transform: translateY(-2px);
  border-color: rgba(72, 138, 236, 0.4);
}

/* Botón GitHub (Uiverse by EcheverriaJesus, adaptado) */
.group {
  position: relative;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4d2dc;
  text-decoration: none;
}

.gh-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.icon-btn:hover .gh-icon {
  transform: scale(1.25);
  stroke: #488aec;
}

.tooltip {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transform-origin: center bottom;
  z-index: 20;
  padding: 6px 12px;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #101820;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
  pointer-events: none;
}

.group:hover .tooltip {
  transform: translateX(-50%) scale(1);
}

footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8ea0ac;
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

/* --- Panel de login --- */
.login-box {
  max-width: 340px;
  margin: 80px auto;
  padding: 2.2rem 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(16, 24, 32, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.login-box:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.login-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #c4d2dc;
}

.signin {
  max-width: 320px;
  display: flex;
  padding: 0.5rem 1.4rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  vertical-align: middle;
  align-items: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  gap: 0.75rem;
  color: #c4d2dc;
  background-color: #19242b;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0, 0.87, 0.12, 1);
}

.signin:hover {
  transform: scale(1.025);
}

.signin:active {
  transform: scale(0.975);
}

.signin svg {
  height: 24px;
  width: auto;
}

/* ============ PANEL DE ADMINISTRACIÓN ============ */

.admin-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 60px;
  animation: fadeIn 0.4s ease;
}

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

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #488aec;
  box-shadow: 0 0 12px #488aecaa;
}

.admin-brand h1 {
  font-size: 1.3rem;
  font-family: "Montserrat", sans-serif;
  margin: 0;
  color: #fff;
}

.admin-brand h1 span {
  color: #488aec;
  font-weight: 400;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
}

.admin-user span {
  font-size: 0.85rem;
  color: #c4d2dc;
}

.logout-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #c4d2dc;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #e04b4b33;
  border-color: #e04b4b88;
  color: #ff8080;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}

.stat-card {
  background: linear-gradient(160deg, rgba(72,138,236,0.12), rgba(16,24,32,0.6));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.9rem;
  padding: 16px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: #488aec;
  font-family: "Montserrat", sans-serif;
}

.stat-label {
  font-size: 0.75rem;
  color: #8ea0ac;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-btn {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #8ea0ac;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.25s ease;
}

.tab-btn.active {
  background: #488aec;
  color: #fff;
  border-color: #488aec;
  box-shadow: 0 6px 16px -4px #488aec66;
}

/* Panel card */
.panel-card {
  background: rgba(16, 24, 32, 0.75);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.tab-content {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.tab-content.active {
  display: flex;
}

.tab-content label {
  font-size: 0.75rem;
  color: #8ea0ac;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.tab-content input[type="text"],
.tab-content textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s ease;
}

.tab-content input[type="text"]:focus,
.tab-content textarea:focus {
  border-color: #488aec;
}

.tab-content textarea {
  resize: vertical;
  min-height: 70px;
}

/* Botón primario (tu botón "add files" con estilo azul) */
.btn-primary {
  border: none;
  display: flex;
  padding: 0.75rem 1.5rem;
  background-color: #488aec;
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  vertical-align: middle;
  align-items: center;
  border-radius: 0.5rem;
  user-select: none;
  gap: 0.75rem;
  box-shadow: 0 4px 6px -1px #488aec31, 0 2px 4px -1px #488aec17;
  transition: all 0.6s ease;
  margin-top: 14px;
  justify-content: center;
}

.btn-primary:hover {
  box-shadow: 0 10px 15px -3px #488aec4f, 0 4px 6px -2px #488aec17;
}

.btn-primary:focus,
.btn-primary:active {
  opacity: 0.85;
  box-shadow: none;
}

.btn-primary svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dropzone / Add files */
.dropzone {
  border: 1.5px dashed rgba(255,255,255,0.2);
  border-radius: 0.8rem;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.03);
  transition: border 0.2s ease, background 0.2s ease;
}

.dropzone:hover {
  border-color: #488aec88;
  background: rgba(72,138,236,0.06);
}

.dropzone button {
  border: none;
  display: flex;
  padding: 0.75rem 1.5rem;
  background-color: #488aec;
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  vertical-align: middle;
  align-items: center;
  border-radius: 0.5rem;
  user-select: none;
  gap: 0.75rem;
  box-shadow: 0 4px 6px -1px #488aec31, 0 2px 4px -1px #488aec17;
  transition: all 0.6s ease;
}

.dropzone button:hover {
  box-shadow: 0 10px 15px -3px #488aec4f, 0 4px 6px -2px #488aec17;
}

.dropzone button:focus,
.dropzone button:active {
  opacity: 0.85;
  box-shadow: none;
}

.dropzone button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.file-name {
  font-size: 0.78rem;
  color: #8ea0ac;
  text-align: center;
  word-break: break-all;
}

.dropzone input[type="url"] {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.6rem;
  padding: 0.6rem 0.8rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: border 0.2s ease;
}

.dropzone input[type="url"]:focus {
  border-color: #488aec;
}

/* Recientes */
.recent-section {
  margin-top: 28px;
}

.recent-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8ea0ac;
  margin-bottom: 12px;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.7rem;
  padding: 10px 14px;
}

.recent-icon {
  font-size: 1.2rem;
}

.recent-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.recent-info strong {
  font-size: 0.85rem;
  color: #fff;
}

.recent-info small {
  font-size: 0.75rem;
  color: #8ea0ac;
}

@media (max-width: 480px) {
  .stats-row { gap: 8px; }
  .stat-number { font-size: 1.3rem; }
  .admin-brand h1 { font-size: 1.1rem; }
}

/* ============ TARJETAS PÚBLICAS (comandos / archivos) ============ */

.command-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-badge {
  align-self: flex-start;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(72,138,236,0.15);
  color: #6fa8ff;
  border: 1px solid rgba(72,138,236,0.3);
}

.file-card {
  border-color: rgba(72,138,236,0.3);
}

.copy-btn {
  border: none;
  padding: 0.6rem 1.2rem;
  background-color: #19242b;
  color: #c4d2dc;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0.5rem;
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.25s ease;
}

.copy-btn:hover {
  transform: scale(1.03);
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.6rem 1.2rem;
  background-color: #488aec;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px #488aec31, 0 2px 4px -1px #488aec17;
  transition: all 0.3s ease;
}

.download-btn:hover {
  box-shadow: 0 10px 15px -3px #488aec4f, 0 4px 6px -2px #488aec17;
}

.download-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.empty-state {
  text-align: center;
  color: #8ea0ac;
  padding: 30px 0;
}
