/* =========================
   Nova Launchpad (Premium) - CLEAN
   ========================= */

/* Bas */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

/* Root: font + full-bleed reset + scope */
#nova-lp-root{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;

  position: relative;

  font-family:
    "Helvetica Neue",
    Helvetica,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.nova-lp-title{
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Neutralisera ev container wrappers i web.layout */
#nova-lp-root .container,
#nova-lp-root .container-fluid{
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* =========================
   Shell + Page
   ========================= */
.nova-lp-shell{
  min-height: 100vh;
  padding: 16px;

  display: flex;
  flex-direction: column;

  background:
    radial-gradient(900px 600px at 20% 0%, rgba(20,80,140,.18), transparent 60%),
    radial-gradient(900px 600px at 80% 100%, rgba(20,80,140,.12), transparent 60%),
    linear-gradient(180deg, #f3f6fb 0%, #eef3f8 100%);
}

.nova-lp-page{
  flex: 1;
  min-height: 0;

  display: flex;
  flex-direction: column;

  margin: 0;
  overflow: hidden;

  border-radius: 1px;
  border: 1px solid rgba(10,25,45,0.08);
  box-shadow: 0 18px 55px rgba(10,25,45,0.12);

  background: linear-gradient(
    180deg,
    #eef3f8 0%,
    #e6edf5 60%,
    #dde7f2 100%
  );

  position: relative; /* för ::before */
}

/* Enterprise polish: page backdrop */
.nova-lp-page::before{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% 12%, rgba(18,75,122,0.10), transparent 60%),
    radial-gradient(900px 700px at 50% 85%, rgba(10,25,45,0.08), transparent 70%),
    repeating-linear-gradient(
      135deg,
      rgba(10,25,45,0.020) 0px,
      rgba(10,25,45,0.020) 2px,
      transparent 2px,
      transparent 10px
    );
  opacity: 0.55;
}

@media (max-width: 768px){
  .nova-lp-shell{ padding: 0; }
  .nova-lp-page{
    min-height: 100vh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
}

/* =========================
   Header (Alt 3: solid + depth)
   ========================= */
.nova-lp-header{
  position: sticky;
  top: 0;
  z-index: 50;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 10px 30px;

  /* Alt 3: solid, mindre "glow" */
  background: #0e3657;

  color: white;

  /* Alt 3: djup via skugga istället för gradient */
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);

  position: relative; /* behövs för ::after */
}

.nova-lp-header::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  pointer-events:none;
  background: rgba(255,255,255,0.25);
}

/* =========================
   Header intern layout (logo + company + title + logout)
   ========================= */

.nova-lp-header-left,
.nova-lp-header-right{
  display: flex;
  align-items: center;
  min-height: 40px;

  width: 100%;
}

/* Vänster: logo + företagsnamn */
.nova-lp-header-left{
  justify-content: flex-start;  
  gap: 14px;
}

/* Höger: endast logout (efter flytt av företagsnamn) */
.nova-lp-header-right{
  justify-content: flex-end;
  gap: 14px;
}

/* Företagsnamn (nu bredvid loggan) */
.nova-lp-company{
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;

  color: rgba(255,255,255,0.85);
  opacity: 0.95;

  /* Enterprise-separator mot loggan */
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,0.18);
}

/* Mobil: dölj företagsnamn om du vill spara plats */
@media (max-width: 768px){
  .nova-lp-company{ display: none; }
}

.nova-lp-logo{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nova-lp-logo img{
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.20));
}

.nova-lp-header-center{
  display: flex;
  justify-content: center;
}

/* =========================
   Header title (Corporate, more presence)
   ========================= */

.nova-lp-title-wrap{
  position: relative;
  text-align: center;
  padding: 8px 10px;          /* mer “banner”, mindre badge */
}

/* Tonad glow (valfri) – corporate men lite lyft */
.nova-lp-title-glow{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  width: 320px;
  height: 70px;

  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.16) 0%,
    rgba(255,255,255,0.06) 35%,
    rgba(255,255,255,0.00) 70%
  );

  filter: blur(10px);
  pointer-events: none;
}

/* Corporate titel: tydlig, ren, “executive” */
.nova-lp-title{
  position: relative;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.05;

  text-shadow: 0 2px 8px rgba(0,0,0,0.35);

  display: inline-block; /* <-- viktigt */
}

/* Underline exakt lika bred som texten */
.nova-lp-title::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;   /* <-- minskar avståndet (justera -4 till -8 efter smak) */
  width: 100%;    /* <-- exakt samma bredd som texten */
  height: 3px;

  background: rgba(255,255,255,0.9);
  border-radius: 2px;
}

.nova-lp-subtitle{ display:none !important; }

/* =========================
   Main + Grid + Tiles
   ========================= */
   .nova-lp-main{
    flex: 1;
    padding: 48px 40px 28px 40px;
  
    background: rgba(255,255,255,0.35);
    border-radius: 28px;
  
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.6),
      0 30px 60px rgba(10,25,45,0.05);
  
    display: block;   /* istället för flex */
  }

  .nova-lp-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 14vw, 260px), 1fr));
    gap: clamp(20px, 2vw, 32px);
  
    width: 100%;
    max-width: 1600px;   /* viktig */
    margin: 0 auto;      /* centrerar och ger luft på stora skärmar */
  
    align-content: start;
    align-items: start;
  }

  .nova-lp-icon{
    width: var(--icon-size);
    height: var(--icon-size);
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,0.25));
    transition: transform 220ms ease;
  }

  .nova-lp-item{
    width: var(--tile-size);
    margin: 0;
    text-align: center;
  }

  .nova-lp-tile{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
  
    width: clamp(180px, 15vw, 280px);
    aspect-ratio: 1.25 / 1;   /* NYTT – gör den lägre */
  
    border-radius: clamp(22px, 2.5vw, 42px);
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(10,25,45,0.10);
    box-shadow: 0 16px 34px rgba(10,25,45,0.10);
    text-decoration: none;
  
    transition:
      transform 180ms ease,
      box-shadow 180ms ease,
      border-color 180ms ease,
      background 180ms ease;
  }

.nova-lp-tile::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.05) 40%,
    rgba(255,255,255,0) 100%
  );
  pointer-events: none;
}

.nova-lp-tile:hover{
  transform: translateY(-4px);
  border-color: rgba(120,180,255,0.55);
  box-shadow:
    0 0 0 1px rgba(120,180,255,0.22),
    0 22px 46px rgba(10,25,45,0.14);
}

.nova-lp-label{
  margin-top: clamp(8px, 1vw, 12px);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 600;
  color: rgba(10,25,45,0.80);
  letter-spacing: 0.15px;
}

.nova-lp-tile:hover .nova-lp-icon{
  transform: scale(1.05);
}

.nova-lp-label{
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(10,25,45,0.80);
  letter-spacing: 0.15px;
}

/* Focus states */
.nova-lp-tile:focus-visible,
.nova-lp-logout-header:focus-visible,
.nova-lp-logout-footer:focus-visible{
  outline: 3px solid rgba(120,180,255,0.55);
  outline-offset: 3px;
}

@media (max-width: 768px){
  .nova-lp-main{
    padding: 18px 14px 14px 14px;
    border-radius: 18px;
  }
  .nova-lp-grid{ gap: 14px; }
}

/* =========================
   Footer (Alt 3: solid + depth)
   ========================= */
.nova-lp-footer{
  position: relative; /* viktigt för ::before */

  width: 100%;
  padding: 14px 18px;

  /* Solid, sober enterprise */
  background: #0e3657;

  color: rgba(255,255,255,0.92);

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

  /* Mer djup uppåt istället för gradient */
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
}

/* Subtil ljus separator upptill */
.nova-lp-footer::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:2px;
  pointer-events:none;
  background: rgba(255,255,255,0.16);
}

.nova-lp-footer-left,
.nova-lp-footer-right{
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}

.nova-lp-logout-header,
.nova-lp-logout-footer{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 38px;
  padding: 0 18px;

  border-radius: 999px;
  text-decoration: none;

  background: linear-gradient(135deg, #34b27b 0%, #1f8f63 100%);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.3px;

  border: none;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 6px 14px rgba(31,143,99,0.35);

  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nova-lp-logout-header:hover,
.nova-lp-logout-footer:hover{
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 10px 22px rgba(31,143,99,0.45);
}

/* Desktop: footer logout av */
@media (min-width: 769px){
  .nova-lp-logout-footer{ display: none; }
}

/* Mobile: header logout av + footer layout */
@media (max-width: 768px){
  .nova-lp-logout-header{ display: none; }

  .nova-lp-footer{
    margin: 0 auto 16px auto;
    padding: 12px 14px;

    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    border-radius: 0;
  }

  .nova-lp-footer-left{
    flex: 1;
    min-width: 0;
  }

  .nova-lp-footer-right{
    width: auto;
    flex: 0 0 auto;
  }

  .nova-lp-logout-footer{
    width: auto;
    height: 36px;
    padding: 0 14px;
    white-space: nowrap;
  }
}

/* =========================
   Responsive grid
   ========================= */
  .nova-lp-logo img{ height: 32px; }
  


/* Mobil: footer alltid synlig */
@media (max-width: 768px){
  .nova-lp-page{
    min-height: 100dvh;
    min-height: 100vh;
  }

  .nova-lp-footer{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    margin: 0;
  }

  .nova-lp-main{
    padding-bottom: 90px;
  }
}

.nova-lp-icon{
  width: 70% !important;
  height: 70% !important;
}
