.hero-video {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.35);
    color: white;
    text-align: center;
}
/* ===== Färgtema: blå ===== */
:root {
  --bg: #e9f1ff;              /* ljusblå bakgrund */
  --primary: #005bbb;         /* mörkare blå */
  --primary-dark: #004c99;    /* ännu lite mörkare */
  --text: #1c1c1c;
  --card-bg: #ffffff;
}

/* ===== Grundlayout ===== */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem;
}

/* ===== Header ===== */
.site-header {
  background: var(--primary);
  color: #fff;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.header-inner h1 {
  margin: 0;
}

.tagline {
  margin-top: 0.2rem;
  opacity: 0.95;
}

/* små kontaktuppgifter i header */
.contact-mini p {
  margin: 0.1rem 0;
  font-size: 0.9rem;
}

.site-header a {
  color: #fff;
  text-decoration: none;
}

/* ===== Navigation ===== */
.main-nav {
  border-top: 1px solid rgba(255,255,255,0.3);
  margin-top: 0.5rem;
}

.nav-inner a {
  margin-right: 1rem;
  font-size: 0.95rem;
}

.nav-inner a:hover {
  text-decoration: underline;
}

/* ===== Hero/Visitkort ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hero-text {
  flex: 2;
  min-width: 240px;
}

.business-card {
  flex: 1;
  min-width: 240px;
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-left: 6px solid var(--primary);
}

.business-card h3 {
  margin-top: 0;
}

.business-card a {
  color: var(--primary-dark);
}

/* ===== Sökruta ===== */
.parts-search {
  margin-top: 2rem;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.search-form input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #aac7ff;
  background: #fff;
}

.search-form button {
  padding: 0.6rem 1.3rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.search-form button:hover {
  background: var(--primary-dark);
}

/* ===== Produktkort ===== */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.part-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 0.8rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border-top: 4px solid var(--primary);
}

.part-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.part-truck {
  font-size: 0.9rem;
  color: #444;
}

.part-price {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0.3rem 0;
}

.part-status {
  font-size: 0.85rem;
  color: #007a00;
  font-weight: 600;
}

.part-desc {
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 1rem 0;
  margin-top: 3rem;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

/* ===== Mobil ===== */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; }
}
/* Klickbar produktbild */
.part-img { cursor: zoom-in; }

/* Modal */
.modal { display: none; }
.modal.open { display: block; }

.modal-lock { overflow: hidden; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 999;
}

.modal-content {
  position: fixed;
  z-index: 1000;
  inset: 5% 5%;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(0,0,0,0.04);
}

.modal-header h3 {
  margin: 0;
  font-size: 1rem;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-main {
  flex: 1;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: #f7f9ff;
}

.modal-main-img {
  width: 100%;
  height: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.nav-btn {
  height: 44px;
  width: 44px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.modal-thumbs {
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.thumb {
  height: 70px;
  width: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.thumb.active {
  border-color: rgba(0,91,187,0.9); /* matchar din blå */
}

/* Mobil */
@media (max-width: 600px) {
  .modal-content { inset: 3% 3%; }
  .modal-main { grid-template-columns: 40px 1fr 40px; }
  .thumb { height: 60px; width: 80px; }
}
/* Sålda produkter */
.part-card.sold {
  opacity: 0.55;
  filter: grayscale(100%);
}

.part-card.sold .part-price {
  text-decoration: line-through;
}

.part-card.sold .part-status {
  color: #a00000;
  font-weight: 700;
}

.sold-toggle {
  margin-top: 0.5rem;
}

.sold-toggle a {
  font-size: 0.9rem;
  color: #004c99;
}

/* ===== Hero-video ===== */

.hero-video {
    position: relative;

    min-height: 700px;

    background: #000;

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

    overflow: hidden;
}

.hero-video video {

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #000;
}

/* Mobil */
@media (max-width: 768px) {

    .hero-video {
        min-height: 500px;
    }

}}

/* mörk overlay så texten syns */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 90, 0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  padding: 1rem;
}

.hero-overlay h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1;
}

.hero-overlay p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.hero-button {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: #005bbb;
  font-weight: 700;
  text-decoration: none;
}

.hero-button:hover {
  background: #e9f1ff;
}

@media (max-width: 700px) {
  .hero-video {
    height: 48vh;
    min-height: 300px;
    margin: -1rem -1rem 1.5rem;
  }
}

/* ===== Introfilm ===== */

#introVideoContainer {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;

    display: flex;
    justify-content: center;
    align-items: center;
}

#introVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#startVideoBtn {
    position: absolute;

    padding: 20px 40px;

    border: none;
    border-radius: 14px;

    font-size: 1.5rem;
    font-weight: bold;

    cursor: pointer;
}

/* ===== Hero-video ===== */

.hero-video {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    color: white;

    background: rgba(0,0,0,0.35);
}

.hero-button {
    margin-top: 1rem;

    padding: 12px 24px;

    border-radius: 999px;

    text-decoration: none;

    background: white;
    color: #005bbb;

    font-weight: bold;
}


/* ===== Mobilfix för video ===== */
@media (max-width: 768px) {

  #introVideoContainer {
    align-items: center;
    justify-content: center;
  }

  #introVideo {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
  }

  #startVideoBtn {
    font-size: 1.1rem;
    padding: 14px 24px;
    max-width: 85vw;
  }

  .hero-video {
    min-height: 100vh;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    background: #000;
  }

  .hero-video video {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    background: #000;
  }

  .hero-overlay {
    padding: 1rem;
  }

  .hero-overlay h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .hero-overlay p {
    font-size: 1rem;
  }
}

/* ===== Fix introfilm + mobil ===== */

body.intro-lock {
  overflow: hidden;
}

#introVideoContainer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: #000 !important;

  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#introVideoContainer.intro-hidden {
  display: none !important;
}

#introVideo {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
  background: #000 !important;
}

#startVideoBtn,
#skipVideoBtn {
  position: absolute;
  z-index: 1000000;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

#startVideoBtn {
  padding: 18px 34px;
  font-size: 1.25rem;
  background: #fff;
  color: #005bbb;
}

#skipVideoBtn {
  right: 18px;
  bottom: 18px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.85);
  color: #003f7f;
}

/* Hero-bakgrund */
.hero-video {
  position: relative !important;
  min-height: 100vh !important;
  height: 100vh !important;
  margin: 0 0 2rem 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

.hero-video video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
}

/* Mobil */
@media (max-width: 768px) {
  #startVideoBtn {
    font-size: 1rem;
    padding: 14px 22px;
    max-width: 85vw;
  }

  #skipVideoBtn {
    font-size: 0.9rem;
  }

  .hero-video {
    min-height: 100svh !important;
    height: 100svh !important;
  }

  .hero-video video {
    width: 100vw !important;
    height: 100svh !important;
  }
}

/* ===== Tvinga startsidan till riktig helskärm ===== */

body.video-landing {
  margin: 0 !important;
  padding: 0 !important;
}

body.video-landing .site-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 20 !important;
  background: rgba(0, 91, 187, 0.88) !important;
}

body.video-landing main.container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Introfilm */
body.intro-lock {
  overflow: hidden !important;
}

#introVideoContainer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: #000 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

#introVideoContainer.intro-hidden {
  display: none !important;
}

#introVideo {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
  background: #000 !important;
}

#startVideoBtn,
#skipVideoBtn {
  position: absolute !important;
  z-index: 1000000 !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

#startVideoBtn {
  padding: 18px 34px !important;
  font-size: 1.25rem !important;
  background: #fff !important;
  color: #005bbb !important;
}

#skipVideoBtn {
  right: 18px !important;
  bottom: 18px !important;
  padding: 10px 18px !important;
  background: rgba(255,255,255,0.85) !important;
  color: #003f7f !important;
}

/* Bakgrundsvideo direkt under intro */
.hero-video {
  position: relative !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
  border-radius: 0 !important;
}

.hero-video video {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover !important;
  background: #000 !important;
  z-index: 1 !important;
}

.hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  color: #fff !important;
  background: rgba(0,0,0,0.35) !important;
}

.landing-content {
  max-width: 1100px !important;
  margin: 2rem auto !important;
  padding: 1rem !important;
}

/* Mobil */
@media (max-width: 768px) {
  body.video-landing .site-header {
    position: absolute !important;
  }

  .hero-video {
    height: 100svh !important;
    min-height: 100svh !important;
  }

  .hero-video video {
    height: 100svh !important;
    object-fit: cover !important;
  }

  #introVideo {
    height: 100svh !important;
  }

  #startVideoBtn {
    font-size: 1rem !important;
    padding: 14px 22px !important;
    max-width: 85vw !important;
  }

  #skipVideoBtn {
    font-size: 0.9rem !important;
  }
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.hero-actions .hero-button {
  min-width: 220px;
  text-align: center;
  font-size: 1.2rem;
}

.ved-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.ved-page h2 {
  font-size: 2.2rem;
}

/* Fix: visa knapparna ovanpå hero-videon */
.hero-overlay {
  z-index: 10 !important;
  pointer-events: auto !important;
}

.hero-actions {
  position: relative !important;
  z-index: 20 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  align-items: center !important;
  justify-content: center !important;
}

.hero-actions .hero-button {
  display: block !important;
  min-width: 230px !important;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #005bbb !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25) !important;
}

.hero-video video {
  z-index: 1 !important;
}


/* Tona ner bakgrundsfilmen så knapparna får fokus */
.hero-video video {
  filter: brightness(45%) blur(1px) !important;
  transform: scale(1.03) !important;
}

.hero-overlay {
  background: rgba(0, 30, 80, 0.45) !important;
  backdrop-filter: blur(1px);
}

.ved-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.ved-page h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.ved-image {
    text-align: center;
}

.ved-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* =========================================================
   RESPONSIV SLUTPATCH - dator + mobil
   ========================================================= */

/* Stoppa sidleds-scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Vanligt innehåll */
main.container {
  box-sizing: border-box;
}

/* Header */
.site-header {
  width: 100%;
}

.header-inner {
  box-sizing: border-box;
}

.contact-mini {
  word-break: break-word;
}

/* Meny */
.nav-inner {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Startsida: intro */
#introVideoContainer {
  width: 100vw !important;
  height: 100dvh !important;
}

#introVideo {
  width: 100vw !important;
  height: 100dvh !important;
  object-fit: contain !important;
}

/* Startsida: bakgrundsvideo */
.hero-video {
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
}

.hero-video video {
  width: 100vw !important;
  height: 100dvh !important;
  object-fit: cover !important;
}

.hero-overlay {
  box-sizing: border-box;
  padding: 1.2rem !important;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.hero-button {
  display: inline-block;
  text-align: center;
  max-width: 90vw;
}

/* Startsidans innehåll under filmen */
.landing-content,
.hero {
  box-sizing: border-box;
}

/* Ved-sida */
.ved-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 1rem;
}

.ved-image img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}

/* Reservdelar */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.part-card {
  min-width: 0;
}

.part-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Sökfält */
.search-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-form input[type="text"] {
  min-width: 0;
}

/* Modal/galleri */
.modal-content {
  max-width: 96vw;
  max-height: 94dvh;
}

.modal-main-img {
  max-width: 100%;
  max-height: 70dvh;
  object-fit: contain;
}

/* ===================== MOBIL ===================== */
@media (max-width: 768px) {

  body {
    font-size: 16px;
  }

  main.container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .site-header {
    position: relative !important;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem !important;
  }

  .header-inner h1 {
    font-size: 1.6rem;
  }

  .tagline {
    font-size: 0.95rem;
  }

  .contact-mini {
    font-size: 0.9rem;
  }

  .nav-inner {
    padding: 0.75rem 1rem !important;
    gap: 0.75rem;
  }

  .nav-inner a {
    margin-right: 0 !important;
  }

  /* Intro */
  #startVideoBtn {
    font-size: 1rem !important;
    padding: 14px 22px !important;
    max-width: 88vw;
  }

  #skipVideoBtn {
    right: 12px !important;
    bottom: 12px !important;
    font-size: 0.9rem !important;
  }

  /* Hero */
  .hero-video {
    height: 78dvh !important;
    min-height: 520px !important;
  }

  .hero-video video {
    height: 78dvh !important;
    min-height: 520px !important;
    object-fit: cover !important;
  }

  .hero-overlay {
    min-height: 78dvh !important;
  }

  .hero-overlay h1 {
    font-size: clamp(2rem, 12vw, 3.2rem) !important;
  }

  .hero-overlay p {
    font-size: 1rem !important;
  }

  .hero-actions .hero-button,
  .hero-button {
    width: min(280px, 85vw);
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
  }

  .landing-content,
  .hero {
    margin: 1rem !important;
    padding: 1rem !important;
    flex-direction: column !important;
  }

  .business-card {
    width: 100%;
    box-sizing: border-box;
  }

  /* Ved */
  .ved-page {
    margin: 1rem auto;
    padding: 1rem;
  }

  .ved-page h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .ved-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }

  .ved-page .hero-actions {
    margin-top: 1rem;
  }

  /* Reservdelar */
  .parts-search {
    padding: 1rem;
    margin-top: 1rem;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form input[type="text"],
  .search-form button {
    width: 100%;
    box-sizing: border-box;
  }

  .parts-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  /* Galleri */
  .modal-content {
    inset: 2% 2% !important;
  }

  .modal-main {
    grid-template-columns: 36px 1fr 36px;
    padding: 0.5rem;
  }

  .nav-btn {
    width: 34px;
    height: 38px;
  }

  .modal-main-img {
    max-height: 62dvh;
  }

  .thumb {
    width: 70px;
    height: 52px;
  }
}

/* ===================== DATOR ===================== */
@media (min-width: 769px) {

  main.container {
    max-width: 1100px;
  }

  body.video-landing main.container,
  main.container:has(.hero-video) {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .landing-content {
    max-width: 1100px !important;
  }
}


/* ===== Fix klickbara knappar på startsidan ===== */

.hero-video video,
#bgVideo {
  pointer-events: none !important;
  z-index: 0 !important;
}

.hero-overlay {
  pointer-events: auto !important;
  z-index: 10 !important;
}

.hero-actions,
.hero-button {
  position: relative !important;
  z-index: 20 !important;
  pointer-events: auto !important;
}

.hero-button {
  cursor: pointer !important;
}

/* ===== Vedlager ===== */

.stock-status {
    max-width: 350px;
    margin: 1rem auto 2rem auto;
    padding: 1rem;

    text-align: center;

    border-radius: 12px;

    font-size: 1.2rem;
    font-weight: 700;
}

.in-stock {
    background: #dff5e1;
    color: #116b1e;
    border: 2px solid #28a745;
}

.out-stock {
    background: #ffe2e2;
    color: #a40000;
    border: 2px solid #dc3545;
}
.limited-stock {
    background: #ffc107;
    color: #000;
    font-weight: bold;
    animation: pulse-yellow 2s infinite;
}

.out-stock {
    background: #dc3545;
    color: white;
    font-weight: bold;
}

@keyframes pulse-yellow {
    0% {
        box-shadow: 0 0 0px rgba(255,193,7,0.7);
    }
    50% {
        box-shadow: 0 0 15px rgba(255,193,7,1);
    }
    100% {
        box-shadow: 0 0 0px rgba(255,193,7,0.7);
    }
}
.admin-box {
  max-width: 700px;
  margin: 2rem auto;
  background: #fff;
  padding: 1.2rem;
  border-radius: 12px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admin-form input,
.admin-form select,
.admin-form button {
  padding: 0.7rem;
  font-size: 1rem;
}


/* ===== Admin dashboard ===== */

.admin-dashboard {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
}

.admin-user {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.admin-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.admin-menu-btn {
  display: block;
  padding: 1.2rem;
  border-radius: 14px;
  background: #005bbb;
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
}

.admin-menu-btn:hover {
  background: #004999;
}

.admin-menu-btn.logout {
  background: #a00000;
}

.admin-menu-btn.logout:hover {
  background: #7c0000;
}

@media (max-width: 768px) {
  .admin-dashboard {
    margin: 1rem auto;
  }

  .admin-menu {
    grid-template-columns: 1fr;
  }
}


.save-confirmation {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 12px;
  background: #dff5e1;
  color: #116b1e;
  border: 2px solid #28a745;
  font-weight: 800;
  text-align: center;
  animation: confirm-pop 0.35s ease-out;
}

@keyframes confirm-pop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


/* ===== Diskret adminlänk på startsidan ===== */

.start-admin-link {
  text-align: center;
  margin: 2rem 0 1rem;
}

.start-admin-link a {
  color: #666;
  font-size: 0.9rem;
  text-decoration: none;
}

.start-admin-link a:hover {
  color: #005bbb;
  text-decoration: underline;
}


/* ===== Adminrad när man är inloggad ===== */

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #003f7f;
  color: white;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.95rem;
}

.admin-topbar a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.admin-topbar a:hover {
  text-decoration: underline;
}

