body {
  background: radial-gradient(circle at top, #0d6efd 0, #020617 55%, #000 100%);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #e5e7eb;
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #0d6efd 0, #0b2149 45%, #050915 100%);
}

.login-card {
  max-width: 400px;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.launcher-header {
  background: linear-gradient(90deg, #0d6efd, #2563eb);
  color: #fff;
  padding: 0.75rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 24px rgba(15,23,42,0.4);
  position: sticky;
  top: 0;
  z-index: 10;
}

.launcher-header-title { font-weight: 600; letter-spacing: .03em; }

.page-shell { max-width: 1400px; margin: 1rem auto 1.5rem auto; }

.card-main {
  border-radius: 0.9rem;
  border: 1px solid rgba(148,163,184,0.25);
  background: rgba(15,23,42,0.96);
  box-shadow: 0 18px 40px rgba(15,23,42,.7);
}

.filter-bar {
  border-bottom: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(circle at top left, rgba(37,99,235,0.2), transparent 55%);
}

.launcher-box {
  border-radius: 0.7rem;
  padding: 0.65rem 0.75rem 0.5rem 0.75rem;
  background: radial-gradient(circle at top left, rgba(56,189,248,0.12), rgba(15,23,42,0.98));
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 10px 22px rgba(15,23,42,0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.launcher-box.vip {
  border-color: #facc15;
  box-shadow: 0 12px 26px rgba(250,204,21,0.3);
}

.launcher-box:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 16px 32px rgba(15,23,42,0.85);
}

.launcher-type {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5b4fc;
}
.launcher-desc {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: .15rem;
  color: #e5e7eb;
}
.launcher-url { display: none; }

.launcher-meta {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0;
}

.launcher-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  position: relative;
  z-index: 2;
}

.btn-fab {
  border-radius: 999px;
  padding: .08rem .4rem;
  font-size: .7rem;
  line-height: 1;
}

.btn-top-right {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 3;
}

.badge-vip {
  position: absolute;
  top: 0.2rem;
  left: 0.55rem;
  z-index: 3;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  font-size: 0.6rem;
  padding: .1rem .45rem;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(250,204,21,0.5);
}

.launcher-link { position: absolute; inset: 0; z-index: 1; }

.result-count { font-size: 0.8rem; color: #cbd5f5; }

.form-control, .form-select, .form-check-input {
  background-color: #020617;
  border-color: #475569;
  color: #e5e7eb;
}
.form-control:focus, .form-select:focus {
  background-color: #020617;
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.7);
  color: #e5e7eb;
}

.modal-content {
  background-color: #020617;
  color: #e5e7eb;
  border-radius: 0.8rem;
  border: 1px solid #4b5563;
}
.modal-header { border-bottom-color: #374151; }
.modal-footer { border-top-color: #374151; }

.header-info-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* --- Note modal: contenuti sempre dentro il box --- */
#noteModal .note-content {
  max-width: 100%;
  overflow-x: auto;              /* se qualcosa è largo (es. tabella) */
  word-break: break-word;
}

/* immagini responsive */
#noteModal .note-content img {
  max-width: 100% !important;    /* non superare mai la larghezza */
  height: auto !important;       /* mantieni proporzioni */
  display: block;
}

/* se qualcuno mette immagini con width/height inline */
#noteModal .note-content img[width],
#noteModal .note-content img[height]{
  width: auto;
  height: auto;
}

/* facoltativo: video/iframe e embed responsivi */
#noteModal .note-content iframe,
#noteModal .note-content video,
#noteModal .note-content embed,
#noteModal .note-content object {
  max-width: 100%;
}

/* facoltativo: tabelle non “sfondano” */
#noteModal .note-content table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

#noteModal .modal-body {
  max-height: 65vh;
  overflow: auto;
}

/* ===== NEXUS HEADER – THEME LOGO MATCH ===== */

.nexus-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.65rem 1.2rem;

    /* fondo in tinta con Nexus */
    background:
        radial-gradient(
            circle at top left,
            rgba(255,255,255,0.08),
            transparent 45%
        ),
        linear-gradient(
            180deg,
            #0b0f1a 0%,
            #020617 100%
        );

    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 10px 24px rgba(0,0,0,0.6),
        inset 0 -1px 0 rgba(255,255,255,0.05);
}

/* lato sinistro */
.nexus-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

/* logo */
.nexus-logo {
    height: 40px;
    width: auto;
    max-width: 48px;

    display: block;
    object-fit: contain;

    /* leggero glow per staccarlo dal fondo */
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.15));
}

/* titolo */
.nexus-title-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
}

.nexus-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #e5e7eb;
}

.nexus-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
}
