/* ===========================================================
   Sidentrosan – Rosa Bubblig Premium CSS
   Modern, feminin design med mjuka former och pasteller.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Gör så att padding inte spränger bredden */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    

  /* === KCAL/ANTAL – enkla reglage === */
  --kcal-gap: 20px;           /* avstånd mellan kcal-siffra och +/- */
  --kcal-right-offset: -60px;   /* luft till högerkanten */
  --kcal-gap-mobile: 14px;    /* mobil: lite tajtare */
  --kcal-right-offset-mobile: 0px; /* mobil: lite tajtare */

--silk-bg: #ffeef7;
    --silk-bg-light: #fff5fb;
    --silk-cream: #fff9fc;
    --silk-pink: #ff8fb4;
    --silk-pink-dark: #ff5fa2;
    --silk-pink-soft: #ffd1e3;
    --silk-rose: #ff6fae;
    --silk-accent: #ffe0ef;
    --ink: #5a4a4a;
    --soft-ink: #7a6d6d;
    --white: #ffffff;
    --silk-shadow: rgba(255, 95, 162, 0.18);

    /* Dark mode vars – om du vill använda body.silk.dark senare */
    --dark-bg: #1b1117;
    --dark-bg-soft: #241520;
    --dark-card: #2b1624;
    --dark-ink: #ffeaf5;
    --dark-soft-ink: #f3bfd6;
}

/* ===========================
   GLOBALT
   =========================== */

html, body {
    margin: 0;
    padding: 0;
}

body.silk {
    background: var(--silk-bg);
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    padding-bottom: 60px;
    overflow-x: hidden; /* säkerhetsbälte mot horisontell rullist */
}

h1, h2, h3 {
    font-weight: 600;
    color: var(--ink);
    margin-top: 0;
}

p {
    line-height: 1.5;
}

/* ===========================
   TOPBAR
   =========================== */

.topbar {
    width: 100%;
    background: linear-gradient(135deg, var(--silk-pink), var(--silk-rose));
    color: var(--white);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;          /* får gärna gå på flera rader */
    gap: 8px;
    box-shadow: 0 4px 12px var(--silk-shadow);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar h1 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    flex: 1 1 100%;           /* egen rad överst */
}

/* ===========================
   KNAPPGRUPP I TOPBAR
   =========================== */

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1 1 auto;
}

.nav-buttons .btn {
    padding: 7px 14px;
    border-radius: 10px;
}

.user-info {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: auto;
}

/* ===========================
   KNAPPAR
   =========================== */

.btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

a.btn, a.btn * { text-decoration: none !important; }

/* TOTAL RESET FÖR NAV-LÄNKAR */
.topbar a,
.nav-buttons a,
a.btn {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.topbar a::after,
.topbar a::before {
  content: none !important;
  display: none !important;
}

.btn.primary {
    background: var(--silk-pink-dark);
    color: white;
    padding: 8px 16px;
    border-radius: 14px;
    box-shadow: 0 4px 10px var(--silk-shadow);
}

.btn.primary:hover {
    background: var(--silk-pink);
    transform: translateY(-1px);
}

.btn.secondary {
    background: var(--silk-accent);
    color: var(--ink);
    padding: 8px 16px;
    border-radius: 14px;
    box-shadow: 0 3px 8px var(--silk-shadow);
}

.btn.secondary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn.danger {
    background: #ff6b6b;
    color: white;
    border-radius: 14px;
    padding: 8px 16px;
    box-shadow: 0 3px 8px rgba(255, 107, 107, 0.4);
}

.btn.danger:hover {
    background: #ff4a4a;
    transform: translateY(-1px);
}

.btn.ghost {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: 10px;
    padding: 6px 14px;
}

.btn.ghost:hover {
    background: rgba(255,255,255,0.22);
}

.full-width {
    width: 100%;
}

/* ===========================
   CARD
   =========================== */

.card {
    background: var(--silk-cream);
    padding: 28px;
    margin: 22px auto;
    border-radius: 20px;
    max-width: 900px;
    box-shadow: 0 8px 20px var(--silk-shadow);
}

/* ===========================
   TAB-SYSTEM
   =========================== */

.tabs {
    max-width: 1000px;
    margin: 20px auto;
}

.tablist {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    overflow-x: auto;            /* ska kunna scrollas på små skärmar */
    gap: 6px;
    scrollbar-width: none;       /* göm scrollbar (Firefox) */
}

.tablist::-webkit-scrollbar {    /* göm scrollbar (WebKit) */
    display: none;
}

.tablist li {
    padding: 10px 14px;
    background: var(--silk-accent);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.18s ease;
    position: relative;
    color: var(--ink);
}

.tablist li:hover {
    background: var(--silk-pink-soft);
}

.tablist li.active {
    background: var(--silk-pink);
    color: white;
    box-shadow: 0 4px 10px var(--silk-shadow);
}

/* Glow runt dagens flik – index.php sätter today-tab */
.tablist li.today-tab {
    box-shadow: 0 0 0 2px rgba(255,143,180,0.5);
}

.tablist li.today-tab::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid rgba(255,255,255,0.5);
    opacity: 0.8;
    pointer-events: none;
}

.tabpanel {
    display: none;
}

.tabpanel.active {
    display: block;
    animation: fadein 0.25s ease;
}

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

/* ===========================
   TABELLER
   =========================== */

.silk-table {
    width: 100%;
    border-collapse: collapse;
}

.silk-table th,
.silk-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--silk-pink-soft);
    font-size: 0.95rem;
}

.silk-table th {
    font-weight: 600;
    color: var(--soft-ink);
    background: rgba(255,255,255,0.6);
}

.silk-table tr:hover {
    background: var(--silk-bg-light);
}

/* Checkbox-animation */

.silk-table input[type="checkbox"] {
    accent-color: var(--silk-pink-dark);
    width: 18px;
    height: 18px;
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.silk-table input[type="checkbox"]:checked {
    transform: scale(1.18);
    box-shadow: 0 0 0 3px rgba(255,143,180,0.4);
}

/* ===========================
   STICKY DAILY CAL COUNTER
   =========================== */

.sticky-counter {
    position: sticky;
    top: 64px;
    background: var(--silk-rose);
    padding: 8px 12px;
    border-radius: 0 0 16px 16px;
    color: white;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;            /* kan bryta rad om texten blir lång */
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px var(--silk-shadow);
    z-index: 15;
    max-width: 100%;
}

/* ===========================
   BADGES
   =========================== */

.badge {
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 999px;
    background: var(--silk-accent);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge.soft {
    background: rgba(255,255,255,0.35);
    color: white;
}

.badge.green {
    background: #d6ffe8; /* ljus mintgrön */
    color: #1f8a55;
}

.badge.yellow {
    background: #fff7c2; /* mjuk klar gul */
    color: #a67900;
}

.badge.red {
    background: #ffe1e5; /* ljus röd/rosa */
    color: #cc3b4a;
}


/* ===========================
   ALERTS
   =========================== */

.alert {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.alert.error {
    background: #ffe0e0;
    color: #a71818;
}

.alert.success {
    background: #dcffe7;
    color: #116b33;
}

/* ===========================
   AUTH / LOGIN / REGISTER
   =========================== */

.auth {
    max-width: 960px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.auth-card {
    flex: 1 1 320px;
    background: var(--silk-cream);
    border-radius: 20px;
    box-shadow: 0 10px 25px var(--silk-shadow);
    padding: 26px;
}

.auth-card h2 {
    margin-top: 0;
}

.auth-card.accent {
    background: linear-gradient(135deg, #ffe4f1, #ffd9ec);
}

.stacked-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Password strength meter */
.pw-strength {
    margin-top: 4px;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
    display: inline-block;
}

.pw-weak  { background: rgba(231,76,60,0.1); color: #e74c3c; }
.pw-medium { background: rgba(241,196,15,0.12); color: #a67b00; }
.pw-strong { background: rgba(46,204,113,0.12); color: #1a8f52; }

/* ===========================
   FORMS GENERELLT
   =========================== */

input,
select,
textarea {
    font-family: inherit;
    border-radius: 10px;
    border: 1px solid #e2c5d2;
    padding: 7px 9px;
    box-sizing: border-box;
    background: var(--silk-bg-light);
    color: var(--ink);
    font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--silk-pink);
    box-shadow: 0 0 0 2px rgba(255,143,180,0.35);
}

/* ===========================
   PROFILE & ADMIN
   =========================== */

.grid {
    display: grid;
    gap: 14px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.grid-2-compact {
    display: grid;
    grid-template-columns: 0fr 1fr;
    gap: 14px;
}

.profile-card h2 {
    margin-top: 0;
}

/* Admin-kort + tabell wrapper */

.admin-card {
    max-width: 1000px;
}

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
}

.admin-table.silk-table {
    table-layout: fixed;
}

.admin-table input[type="text"],
.admin-table input[type="number"] {
    width: 100%;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #e2c5d2;
    background: var(--silk-bg-light);
}

.admin-table button {
    margin-top: 4px;
}

/* ===========================
   SAMMANFATTNING / SUMMARY
   =========================== */

.summary-card {
    background: var(--silk-cream);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 20px var(--silk-shadow);
    max-width: 900px;
    margin: 0 auto 24px;
}

.legend {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.week-overview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.week-summary {
    margin-top: 10px;
    font-weight: 600;
}

/* ===========================
   SPINNER / LOADING-OVERLAY
   =========================== */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.loading-overlay[hidden] {
    display: none;
}

.spinner {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.6);
    border-top-color: var(--silk-pink-dark);
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 18px rgba(255,143,180,0.7);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================
   MÖRKERLÄGE (body.silk.dark)
   =========================== */

body.silk.dark {
    background: var(--dark-bg);
    color: var(--dark-ink);
}

body.silk.dark .topbar {
    background: linear-gradient(135deg, #3a1530, #561b40);
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

body.silk.dark .card,
body.silk.dark .summary-card,
body.silk.dark .auth-card {
    background: var(--dark-card);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

body.silk.dark .silk-table th,
body.silk.dark .silk-table td {
    border-bottom-color: #472535;
}

body.silk.dark .silk-table tr:hover {
    background: #331725;
}

body.silk.dark input,
body.silk.dark select,
body.silk.dark textarea {
    background: var(--dark-bg-soft);
    border-color: #55324a;
    color: var(--dark-ink);
}

body.silk.dark .badge {
    background: #432336;
    color: var(--dark-soft-ink);
}

body.silk.dark .sticky-counter {
    background: #912c64;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 0.85rem;
    color: var(--soft-ink);
}

/* ===========================
   RESPONSIVT
   =========================== */

@media (max-width: 768px) {
    .topbar {
        padding: 10px 10px;
        gap: 6px;
    }

    .topbar h1 {
        font-size: 1.3rem;
    }

    .nav-buttons {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: flex-start;
        gap: 6px;
    }

    .user-info {
        flex: 1 1 100%;
        margin-left: 0;
        font-size: 0.85rem;
        text-align: left;
    }

    .tabs {
        padding: 0 10px;
    }

    .card,
    .summary-card {
        margin: 16px 10px;
        padding: 20px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .auth {
        margin: 20px auto;
    }

    .sticky-counter {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
}

/* ===========================
   ADMIN – MOBILKORT UTAN SCROLL
   =========================== */
@media (max-width: 768px) {
  .admin-table-wrapper {
    overflow-x: visible; /* vi vill inte ha hor-scroll */
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    display: block;
    background: var(--silk-cream);
    border-radius: 16px;
    box-shadow: 0 6px 14px var(--silk-shadow);
    padding: 10px 12px;
    margin-bottom: 12px;
  }

  .admin-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 6px 0;
    gap: 8px;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--soft-ink);
    flex: 0 0 auto;
  }

  .admin-table input,
  .admin-table select {
    width: 60%;
  }

  .admin-save,
  .admin-delete {
    width: 100%;
    margin-top: 6px;
  }

  .admin-delete {
    margin-left: 0;
  }

  .admin-unlock {
    margin-top: 10px;
  }
}

/* Unlock-rad */
.admin-unlock {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--silk-bg-light);
  border-radius: 12px;
  box-shadow: 0 3px 8px var(--silk-shadow);
}

.unlock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.soft-note {
  display: block;
  margin-top: 4px;
  color: var(--soft-ink);
  font-size: 0.85rem;
}

/* ===========================
   FAVORIT-STJÄRNOR
   =========================== */

.fav-star{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 6px;
  padding: 2px 4px;          /* liten klickyta utan att flytta layout */
  user-select: none;
  -webkit-user-select: none;
  line-height: 1;
  opacity: .35;
  transition: transform .12s ease, opacity .12s ease;
}

.fav-star:hover{
  transform: scale(1.12);
  opacity: .8;
}

.fav-star.fav{
  opacity: 1;
  filter: drop-shadow(0 0 2px rgba(255,111,174,.6));
}

/* Hindra blå textmarkering om man drar över stjärnan */
.fav-star::selection { background: transparent; }
.fav-star::-moz-selection { background: transparent; }

/* ===========================
   INDEX/PROFILE – SATIN BAKGRUND + GLAS
   =========================== */

body.silk.index-bg,
body.silk.profile-bg{
  position: relative;
  background: transparent;
}

body.silk.index-bg::before{
  content:"";
  position: fixed;
  inset: 0;
  background: url("/assets/images/02.jpg") center/cover no-repeat;
  opacity: 0.18;    /* lagom för att synas under rosa panelerna */
  filter: blur(1px) saturate(1.05);
  pointer-events: none;
  z-index: -1;
}

body.silk.profile-bg::before{
  content:"";
  position: fixed;
  inset: 0;
  background: url("/assets/images/09.jpg") center/cover no-repeat;
  opacity: 0.18;    /* lagom för att synas under rosa panelerna */
  filter: blur(1px) saturate(1.05);
  pointer-events: none;
  z-index: -1;
}

/* Glasiga kort */
.card.glassy,
.summary-card.glassy{
  background: rgba(255, 249, 252, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
}

/* Glasig tabell */
.silk-table.glass-table{
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  overflow: hidden;
}


/* ===========================
   AUTO-GLAS PÅ INDEX
   (behöver inga extra klasser i HTML)
   =========================== */
body.silk.index-bg .card,
body.silk.index-bg .summary-card{
  background: rgba(255, 249, 252, 0.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
}

body.silk.index-bg .silk-table{
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  overflow: hidden;
}
/* se till att th inte blir för vit i glasläge */
body.silk.index-bg .silk-table th{
  background: rgba(255,255,255,0.55);
}


/* ===========================
   PROFILE – FIN HERO-BILD
   (liten, feminin, visar motivet)
   =========================== */

.profile-hero{
  padding: 0;
  overflow: hidden;
}

.profile-hero-grid{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
  gap: 0;
}

.profile-hero-text{
  padding: 22px 24px;
}

.profile-hero-text h2{
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.profile-hero-text p{
  color: var(--soft-ink);
  margin: 0;
}

.profile-hero-media{
  position: relative;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(255,255,255,0.9), rgba(255,225,238,0.6) 50%, rgba(255,180,210,0.35) 100%);
}

.profile-hero-media img{
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  object-fit: contain;     /* visar hela motivet */
  object-position: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  padding: 8px;
  box-shadow: 0 10px 22px var(--silk-shadow);
  border: 1px solid rgba(255,255,255,0.9);
}

/* Mobil: stapla & gör bilden lite bredare */
@media (max-width: 768px){
  .profile-hero-grid{
    grid-template-columns: 1fr;
  }
  .profile-hero-media img{
    max-width: 420px;
    aspect-ratio: 1 / 1;
  }
}


/* ===========================
   INDEX HERO – liten satinruta
   =========================== */
.index-hero{
  margin-top: 18px;
}

.index-hero-inner{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
}

.index-hero-text h2{
  margin-bottom: 6px;
}

.index-hero-media{
  background: rgba(255,255,255,0.55);
  border-radius: 18px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,143,180,0.25);
  display:flex;
  justify-content:center;
  align-items:center;
  min-height: 220px;
}

.index-hero-media img{
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain; /* visar hela bilden */
  border-radius: 12px;
}

/* Mobil */
@media (max-width: 768px){
  .index-hero-inner{
    grid-template-columns: 1fr;
  }
  .index-hero-media{
    min-height: 0;
  }
  .index-hero-media img{
    max-width: 260px;
  }
}

/* ===== FIX: SATIN-STACK UTAN ATT DÖDA STICKY TOPBAR ===== */

/* Lyft allt UTOM topbaren ovanför satinlagret */
body.silk.index-bg > *:not(.topbar):not(#messagesBackdrop),
body.silk.profile-bg > *:not(.topbar):not(#messagesBackdrop){
  position: relative;
  z-index: 1;
}

/* Tvinga topbaren att vara sticky och överst */
body.silk.index-bg > .topbar,
body.silk.profile-bg > .topbar{
  position: sticky;
  top: 0;
  z-index: 999;
}

body.silk.index-bg {
    position: relative;
    z-index: 0;
}

body.silk.index-bg::before {
    z-index: -1;
}

/* ==========================================================
   INDEX – GLASIG STOR PANEL (card)
   ========================================================== */

body.silk.index-bg .card{
  background: rgba(255, 249, 252, 0.45) !important;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
}


/* ==========================================================
   INDEX – GLASIGA TABELLRADIER (meal-row)
   ========================================================== */

body.silk.index-bg tr.meal-row{
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .15s ease;
}

body.silk.index-bg tr.meal-row:nth-child(even){
  background: rgba(255,255,255,0.14);
}

body.silk.index-bg tr.meal-row:hover{
  background: rgba(255,255,255,0.28) !important;
}


/* ==========================================================
   INDEX – GLASIGA TABELL-CELLER
   ========================================================== */

body.silk.index-bg .silk-table td{
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 6px;
}


/* ==========================================================
   INDEX – GLASIG CHECKBOX-BAKGRUND
   ========================================================== */

body.silk.index-bg .silk-table input[type="checkbox"]{
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 4px;
  padding: 2px;
}


/* ==========================================================
   INDEX – HOVER FÖR RAD + CELLER
   ========================================================== */

body.silk.index-bg .silk-table tbody tr:hover{
  background: rgba(255,255,255,0.28) !important;
}

/* ==========================================================
   INDEX – GLASIG TABPANEL (hela containern bakom raderna)
   ========================================================== */

body.silk.index-bg .tabpanel{
  background: rgba(255, 249, 252, 0.40) !important;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.35);
  position: relative;
  z-index: 1; /* över satinlagret men under topbar */
}


/* ==========================================================
   INDEX – TABLIST + SEARCH SOM ETT SAMMANHÄNGANDE STICKY-BLOCK
   ========================================================== */

body.silk.index-bg .tabs-search-sticky{
  position: sticky;
  top: 64px; /* samma som under topbar */
  z-index: 90;

  background: rgba(255,240,247,0.50);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);

  border-bottom: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);

  padding: 6px 8px 10px;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;

  border-radius: 0 0 16px 16px;
}

/* Tablist som del av wrapper (inte egen sticky-yta) */
body.silk.index-bg .tabs-search-sticky .tablist.sticky-tabs{
  position: static !important;
  top: auto !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Search-wrap som del av wrapper */
body.silk.index-bg .tabs-search-sticky .search-wrap{
  position: static !important;
  top: auto !important;
  z-index: auto !important;

  background: rgba(255,240,247,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border-radius: 12px;
  margin: 0 !important;
  box-shadow: none !important;
}

/* Rensa dagen = searchScopeBtn-style utan att bryta layout */
body.silk.index-bg .tabs-search-sticky .tablist.sticky-tabs li:has(.clear-tab-btn){
  background: transparent !important;
  padding: 0 !important;
}
body.silk.index-bg .clear-tab-btn{
  background: rgba(255, 224, 239, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.7);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.15s ease;
  color: var(--ink);
}
body.silk.index-bg .clear-tab-btn:hover{
  background: rgba(255, 224, 239, 0.75);
  transform: translateY(-1px);
}


/* ==========================================================
   INDEX – Rensa dagen ska se ut som search-scope-btn
   (överstyr inline-styling i index.php)
   ========================================================== */
body.silk.index-bg .clear-tab-btn{
  white-space: nowrap !important;
  padding: 9px 12px !important;
  border-radius: 999px !important;
  border: none !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #ff9fc6, #ff6fae) !important;
  color: white !important;
  box-shadow: 0 6px 12px rgba(255,111,174,0.35) !important;
  cursor: pointer !important;
  font-size: .9rem !important;
  transition: transform .08s ease !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 0 !important;
}

/* samma active-känsla */
body.silk.index-bg .clear-tab-btn:active{
  transform: translateY(1px) scale(.98) !important;
}

/* ta bort ev "panel"/bakgrund runt den */
body.silk.index-bg .tablist.sticky-tabs li:has(.clear-tab-btn){
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}


/* Justera sticky-räknaren som hjärta i topbaren */
#kcalSticky {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
}

/* ===========================
   KCAL HEART SPEEDOMETER
   =========================== */

#kcalSticky {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
}

.sticky-counter.heart-counter {
    background: transparent;
    box-shadow: none;
    padding-top: 4px;
    padding-bottom: 8px;
    margin-top: -100px;
    pointer-events: none;        /* blocket tar INTE emot klick */
}

.sticky-counter.heart-counter * {
    pointer-events: auto;        /* men barnen får klick */
}

#kcalSticky #currentKcal {
    font-weight: 700;
}

#kcalSticky[data-status="green"] #currentKcal {
    color: #5cd18b; /* ljus mintgrön */
}

#kcalSticky[data-status="yellow"] #currentKcal {
    color: #e6b800; /* din nuvarande fina gula */
}

#kcalSticky[data-status="red"] #currentKcal {
    color: #ff6b74; /* ljus hallonröd */
}

.heart-shell {
    position: relative;
    width: 150px;
    height: 130px;
    margin: 0 auto;
}

.heart-shell::before,
.heart-shell::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 80px;
    height: 120px;
    background: var(--silk-rose);
    border-radius: 80px 80px 0 0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    z-index: 0;
}

.heart-shell::before {
    left: 75px;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
}

.heart-shell::after {
    left: -5px;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.heart-inner {
    position: absolute;
    inset: 24px 18px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 1;
}

.heart-inner .kcal-label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 4px;
}

.heart-inner .kcal-value #currentKcal {
    font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 2.0rem;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0,0,0,0.28);
    text-shadow: 0 0 6px rgba(0,0,0,0.8);
    min-width: 80px;
    display: inline-block;
}

.heart-inner .kcal-goal {
    margin-top: 6px;
    font-size: 0.75rem;
}

.heart-inner .kcal-goal .badge.soft {
    background: rgba(0,0,0,0.22);
    color: #ffeef6;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
}



/* Tab indicators */
.tablist li { position: relative; }
.tablist li.day-in-goal::after,
.tablist li.day-out-goal::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.tablist li.day-in-goal::after { background: #5cd18b; }
.tablist li.day-out-goal::after { background: #ff6b74; }
.tablist li.day-empty::after { content: none; }

/* Heart hitbox: allow clicks through container, but not children */
.sticky-counter.heart-counter {
    pointer-events: none;
}

.sticky-counter.heart-counter * {
    pointer-events: auto;
}


/* Delete account button */
.delete-btn {
    background: #ff6b9a;
    color: #ffffff;
    border: none;
    padding: 14px 22px;
    font-size: 1rem;
    border-radius: 8px;
    display: inline-block;
    min-width: 220px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.delete-btn:hover {
    background: #ff4f86;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}

/* Mjuk informationsruta (t.ex. efter raderat konto) */
.alert-soft {
    background: #ffe1ee;
    color: #a30045;
    padding: 12px 14px;
    text-align: center;
    border-radius: 8px;
    margin: 0 auto 18px;
    max-width: 520px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* TOTAL AVSTÄNGNING AV UNDERSTRYKNING */
a,
a *,
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none !important;
}

/* === APP STICKY + MOBILE TOPBAR PATCH (162px desktop) === */
/* Desktop: tabs/search-sticky ska ligga under topbaren med exakt 162px */
@media (min-width: 769px){
  body.silk.index-bg .tabs-search-sticky{
    top: 162px !important;
    z-index: 998 !important; /* under topbar(999), över content */
  }
}

/* Mobil: gör topbaren kompakt (knappar vänster, hjärta höger) och minska höjden */
@media (max-width: 768px){
  .topbar{
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }

  /* Dölj "inloggad som ..." på mobil för att spara höjd */
  .user-info{
    display: none !important;
  }

  /* Knappar till vänster på en rad */
  .nav-buttons{
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-width: 0;
  }
  .nav-buttons .btn{
    padding: 10px 12px !important;
    border-radius: 16px !important;
  }

  /* Hjärtat till höger (kcalSticky) */
  #kcalSticky{
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  /* Ta bort negativa marginaler som gör att hjärtat krockar */
  .heart-counter{
    margin-top: 0 !important;
  }

  /* Gör hjärtat lite mindre så det inte tar över */
  .sticky-counter{
    transform: scale(0.78) !important;
    transform-origin: center right !important;
    margin-top: 0 !important;
  }

  /* Mobil: sticky-blocket ska ligga under topbaren (inte för långt ner) */
  body.silk.index-bg .tabs-search-sticky{
    top: 84px !important; /* kompakt mobil-topbar */
    z-index: 90 !important;
  }
}

/* ===== PROFILE MESSAGES MODAL (scoped + pretty) ===== */

/* Always hidden until opened (scoped so it doesn't affect other modals) */
#messagesBackdrop.modal-backdrop{ display:none !important; }
#messagesBackdrop.modal-backdrop.open{ display:flex !important; }
#messagesBackdrop.modal-backdrop[aria-hidden="true"]{ display:none !important; }
#messagesBackdrop.modal-backdrop[aria-hidden="false"]{ display:flex !important; }

#messagesBackdrop.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 9999;
}

#messagesBackdrop .modal-card{
  width: min(860px, 100%);
  max-height: 80vh;
  overflow: auto;
  border-radius: 18px;
  background: rgba(255, 249, 252, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  padding: 16px 16px 18px;
}

#messagesBackdrop .modal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#messagesBackdrop .modal-head h2{
  margin: 0;
  font-size: 1.15rem;
}

#messagesBackdrop .modal-close{
  border: none;
  background: rgba(0,0,0,0.10);
  color: #2a1a22;
  font-weight: 900;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

#messagesBackdrop .modal-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 820px){
  #messagesBackdrop .modal-grid{ grid-template-columns: 1fr; }
}

/* Button badge on messages button */
.msg-btn{ position: relative; display: inline-flex; align-items: center; gap: 8px; }
.msg-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4f86;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}

/* Inbox list */
#messagesBackdrop .msg-list{ display: grid; gap: 10px; }
#messagesBackdrop .msg-item{
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}
#messagesBackdrop .msg-item.unread{
  border-color: rgba(255,79,134,0.40);
  box-shadow: 0 10px 22px rgba(255,79,134,0.12);
}
#messagesBackdrop .msg-meta{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 6px;
}
#messagesBackdrop .msg-from{ font-weight: 900; }
#messagesBackdrop .msg-date{ color: rgba(0,0,0,0.55); font-size: 0.85rem; }
#messagesBackdrop .msg-subject{ font-weight: 800; margin: 2px 0 6px; }
#messagesBackdrop .msg-body{ white-space: pre-wrap; color: rgba(0,0,0,0.80); }
#messagesBackdrop .msg-actions{ margin-top: 8px; display:flex; gap: 8px; flex-wrap: wrap; }

.btn.tiny{ padding: 7px 10px; border-radius: 10px; font-size: 0.85rem; }

/* Message badge for nav buttons (if used elsewhere) */
.btn.has-badge{ position: relative; padding-right: 20px; }
.btn.has-badge .nav-badge{
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: #e61e78;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  border: 1px solid rgba(230,30,120,0.25);
  line-height: 1;
  text-decoration: none !important;
}

/* === APP MOBILE POLISH (utan att påverka desktop) === */
@media (max-width: 768px){

  /* Mer luft där det behövs, mindre där det stör */
  .page-wrap, .container{
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Topbar: tight, en rad, inga onödiga rader */
  .topbar{
    padding: 10px 12px !important;
    min-height: 60px;
  }
  .nav-buttons .btn{
    padding: 10px 12px !important;
    border-radius: 16px !important;
  }

  /* Hjärtat: snyggt och lite mindre */
  .sticky-counter{
    transform: scale(0.78) !important;
    transform-origin: center right !important;
  }

  /* Sticky-blocket: visuellt som ett “kort” under topbar */
  body.silk.index-bg .tabs-search-sticky{
    top: 84px !important;
    padding: 10px 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.65);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  }

  /* Tabs: wrap snyggt och mindre “klossigt” */
  .tabs button, .tab{
    padding: 10px 12px;
    border-radius: 16px;
  }

  /* Search + BMR: alltid full bredd och “ren stack” */
  .search-wrap, .search-row{
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .search-wrap input,
  .search-row input{
    width: 100% !important;
    height: 44px;
    border-radius: 14px;
  }
  .bmr-widget{
    width: 100% !important;
    max-width: none !important;
  }

  /* Matlistan: tajtare och mer “app-känsla” */
  .meal-list, .food-list{
    gap: 10px;
  }
  .meal-card, .food-card, .card{
    border-radius: 18px;
  }
}

/* === APP MOBILE CONTROLS ROW FIX (buttons left, heart right) ===
   Fixar att nav-knappar + hjärta hamnar på samma rad på mobil.
   Vinner över tidigare regler som sätter .nav-buttons och #kcalSticky till 100% bredd.
*/
@media (max-width: 768px){

  /* Gör så att kontrollerna kan ligga på samma rad */
  .topbar{
    flex-wrap: wrap !important;   /* rubrik kan vara egen rad, kontroller nästa */
  }

  /* Kontroller: nav till vänster */
  .topbar .nav-buttons{
    flex: 1 1 auto !important;
    width: auto !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  /* Hjärtat till höger (override 100% width) */
  .topbar #kcalSticky{
    flex: 0 0 auto !important;
    width: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin-left: auto !important;
  }

  /* Ta bort negativ margin som skapar stor "tom" yta/krockar */
  .topbar .sticky-counter.heart-counter{
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Gör hjärtat lite mindre så topbaren blir låg */
  .topbar .sticky-counter{
    transform: scale(0.78) !important;
    transform-origin: center right !important;
  }

  /* Spara höjd: göm inloggad-text i app-topbar på mobil */
  .topbar .user-info{
    display: none !important;
  }
}


/* === FIX: kcal + antal alltid på samma rad (behåller snyggt utseende) === */
.kcal-wrap{
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.kcal-wrap .kcal-number{
  white-space: nowrap;
}

.kcal-wrap .qty-controls{
  flex: 0 0 auto;
}


/* === FIX: Små runda söta +/- knappar (utan att påverka rad-layouten) === */
.qty-controls{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.qty-controls button{
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;

  padding: 0;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;

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

  background: var(--silk-accent);
  color: var(--ink);
  border: none;
  box-shadow: 0 2px 6px var(--silk-shadow);

  transition: transform .08s ease, filter .08s ease;
}

.qty-controls button:hover{
  filter: brightness(1.05);
}

.qty-controls button:active{
  transform: scale(.94);
}

.qty-controls .qty-value{
  min-width: 14px;
  text-align: center;
  font-weight: 600;
  line-height: 1;
}



/* === MOBIL: vertikala +/- för att spara bredd === */
@media (max-width: 768px){
  .qty-controls{
    flex-direction: column;
    gap: 4px;
  }

  .qty-controls button{
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    font-size: 13px;
  }
}


/* === FIX: KCAL + qty på samma rad (horisontellt) === */
.kcal-wrap{
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;

  gap: var(--kcal-gap, 20px);
  margin-left: auto;
  margin-right: var(--kcal-right-offset, 0px);
}

@media (max-width: 768px){
  .kcal-wrap{
    gap: var(--kcal-gap-mobile, 14px);
    margin-right: var(--kcal-right-offset-mobile, 0px);
  }

  /* MOBIL: ordning i qty = +, antal, - (vertikalt) */
  .qty-controls{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .qty-controls button:last-of-type{ order: 1; }  /* + */
  .qty-controls .qty-value{ order: 2; }           /* antal */
  .qty-controls button:first-of-type{ order: 3; } /* - */
}


/* ===========================
   ❄️ / ❤️ SÄSONGS-EFFEKT (Snö & Alla hjärtans dag)
   =========================== */
#snow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}
.snowflake {
  position: absolute;
  top: -20px;
  user-select: none;
  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
}
@keyframes snow-fall {
  from { transform: translateY(-20px); }
  to   { transform: translateY(110vh); }
}


/* ===========================
   AKTIVITETSPANEL / AKTIVITETSCHIPS
   =========================== */
.activity-mini-btn{
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd8ea, #ffb7d3);
  color: var(--ink);
  box-shadow: 0 6px 12px rgba(255,111,174,0.18);
  cursor: pointer;
  font-size: .9rem;
  transition: transform .08s ease, filter .15s ease;
}
.activity-mini-btn:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
}
.activity-mini-btn:active{
  transform: translateY(1px) scale(.98);
}

.activity-panel{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.22);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 14px 14px;
  z-index: 9998;
}
.activity-panel-card{
  width: min(420px, 100%);
  background: rgba(255,249,252,0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  padding: 14px;
}
.activity-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.activity-panel-close{
  border:none;
  background: rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 7px 10px;
  cursor:pointer;
  font-weight: 700;
}
.activity-form{
  display:grid;
  gap:10px;
}
.activity-label{
  font-size: .9rem;
  font-weight: 600;
  color: var(--soft-ink);
}
.activity-form input[type="text"],
.activity-form select{
  width: 100%;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
}
.activity-save-btn{
  border:none;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight:700;
  cursor:pointer;
  background: linear-gradient(135deg, var(--silk-pink), var(--silk-rose));
  color:#fff;
  box-shadow: 0 6px 14px rgba(255,111,174,0.22);
}
.activity-msg{
  min-height: 18px;
  font-size: .85rem;
  color: var(--soft-ink);
}
.activity-list-wrap{
  margin-top: 14px;
  padding-top: 8px;
}
.activity-list-title{
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--soft-ink);
}
.activity-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.activity-chip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 224, 239, 0.85);
  color: var(--ink);
  font-size: .85rem;
  box-shadow: 0 4px 10px rgba(255,111,174,0.12);
}
.activity-empty{
  font-size: .85rem;
  opacity: .72;
}
@media (max-width: 768px) {

  /* Flytta ner innehållet så det inte hamnar under headern */
  .content,
  .container,
  main {
    margin-top: 20px;
  }

  /* Specifikt för aktivitets-panelen om den har egen klass */
  .activity-panel,
  .activity-card {
    margin-top: 20px;
  }

}