body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* visa endast på mobil */
@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* DÖLJ PÅ MOBIL */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

.page-container {
  flex: 1;
}

.dashboard-wrap {
	background: none;
	width:100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3px;
  border-radius: 14px;

}


.section-title {
  margin-top: 32px;
  font-size: 1.3rem;
}

.section-title i{
	margin-right:12px;
}

/* ALERTS */
.alert {
  background-color: #000;
  margin-bottom: 15px;
  padding: 16px 16px 16px 22px; /* 6px extra till vänster */
  border-radius: 15px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  transform: translateY(-8px);
  opacity: 0;
  animation: slideDown 0.4s ease-out forwards;
}

.alert::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;        /* fast bredd direkt */
  border-radius: 15px;
  height: 0;         /* börjar osynlig */
  background: var(--alert-color);
  animation: drawBar 0.4s ease-out 0.4s forwards;
}

.alert.success { --alert-color: #4CAF50; }
.alert.error   { --alert-color: #f00; }
.alert.info    { --alert-color: #0af; }


@keyframes slideDown {
  0% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes drawBar {
  0%   { height: 0; }
  100% { height: 100%; }
}

.alert p {
  margin: 6px 0 0 0;      /* små och kontrollerade marginaler */
  color: #e2e8f0;         /* ljus text på mörk bakgrund */
  font-size: 0.95rem;     /* lite mindre än normal brödtext */
  line-height: 1.45;      /* bättre läsbarhet */
}

.alert p:first-of-type {
  margin-top: 0;          /* börja alerten tight upptill */
}


.download{
	width:100%;
  max-width:720px;	
	}


	
.dashboard-left .download th{
	color: rgba(255, 255, 255, .6);}
	


.dashboard-left .download td{
color: rgba(255, 255, 255, .5);}

.download td i,
.download th i {
  margin-right: 5px;
}

.dashboard-left .download tr:hover{
    background: rgba(255, 255, 255, .1);
	cursor: pointer;
	color:white;

}

.alert.success,
.alert.error,
.alert.info {
  border-left: none;
}

.alert.success::before {
  background: linear-gradient(to bottom, #4CAF50, #2f7d36);
}

.alert.error::before {
  background: linear-gradient(to bottom, #f00, #b30000);
}

.alert.info::before {
  background: linear-gradient(to bottom, #38bdf8, #0ea5e9);
}

.cta-primary-small {
  background: #38bdf8;          /* klar blå CTA */
  color: #0f172a;               /* mörk text, perfekt kontrast */
  padding: 12px 22px;
  border: none;
  border-radius: 8px;           /* modern form */
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: all .25s ease;
  text-align: center;
  white-space: nowrap;          /* ingen radbrytning */
}

.cta-primary-small:hover {
  background: #0ea5e9;          /* mörkare blå vid hover */
  color: white;
  transform: translateY(-1px);  /* lyfter knappen lätt */
}

.cta-primary-small:active {
  transform: translateY(0);
}



p.logout-wrapper{
	margin: 14px 0 22px;
}
p.logout-wrapper button{
  background:gray;
  color:#000;
  font-weight:800;
  font-size:18px;
  padding:16px 34px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  transition:.15s ease;
}

p.logout-wrapper button:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 40px rgba(0,0,0,.45);
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}


/* Boxar */
.dashboard-left,
.dashboard-right {
  background: rgba(26,29,37,.92);
  border-radius: 12px;
  padding: 16px 20px;
}

.box-header {
	margin: 0;
	padding:0;
	  display: flex;
  align-items: center;
  gap: 8px;
}

.box-header i, .box-header img, .history-title i{
margin-right:12px;}

h3.history-title {
	margin-bottom:6px!important;
}

.box-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .3px;
}

.box-action {
  margin-left: auto; /* Flyttar knappen längst till höger */
  background:none;
  border: none;           /* Ingen ram */
  color: #fff!important;         /* Textfärg */
  font: inherit;          /* Ärver font från omgivningen */
  cursor: pointer; 
  padding:0; 
  margin-right: 16px;
}

#history-action-btn{
display: flex;

  margin-left: 6px;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;}

/* Höger: historik */
#history-box {
  font-size: 0.95rem;
}

#history-box .hist-item {
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
}

#history-box .hist-item:last-child {
  border-bottom: none;
}

/* Mobil */
@media (max-width: 900px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   GRAPH
   ========================================================= */

.css-chart{
  width:100%;
  padding:0 4px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(15,17,23,.85);
  backdrop-filter:blur(18px);
  font-family:system-ui,Arial;
}

.bar-item{margin-bottom:3px}
.bar-item:last-child{margin-bottom:0}

.bar-header{
  display:flex;
  justify-content:space-between;
  align-items: flex-end;
  margin-bottom:6px;
  color:#bdbdbd;
  font-size:11px;
  font-weight:600;
  position: relative;
}


.bar-left{
  min-width:0;
}

.bar-left .meta{
  display:block;
  font-size:11px;
  opacity:.7;
  white-space:nowrap;
}


.bar-title{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0; /* skyddar mot overflow */
}

.bar-title strong{
  font-weight:600;
}

.bar-pt{
  font-size:11px;
  font-weight:500;
  opacity:.75;
  white-space:nowrap;
}


.bar-track{
  position:relative;
  height:6px;
  border-radius:6px;
  background:rgba(255,255,255,.05);
  overflow:hidden;
}

/* max */
.bar-max{
  position:absolute;
  inset:0;
  border-radius:6px;
  background:rgba(255,255,255,.10);
  transform-origin:left;
  transform:scaleX(0);
  transition:transform .6s cubic-bezier(.4,0,.2,1);
}

/* result */
.bar-fill{
  position:absolute;
  inset:0;
  border-radius:6px;
  background:linear-gradient(90deg,#4cff00,#38c700);
  box-shadow:0 0 10px rgba(76,255,0,.25);
  transform-origin:left;
  transform:scaleX(0);
  transition:transform .8s cubic-bezier(.4,0,.2,1);
}

/* shimmer container */
.bar-track::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(
    90deg,
    transparent 0%,
    rgba(76,255,0,.55) 20%,
    rgba(76,255,0,.15) 40%,
    transparent 65%
  );
  opacity:0;
  transform:translateX(0);
}

/* shimmer trigger */
.bar-track.animate::after{
  animation:shimmerOnce 1.1s ease-out forwards;
}

@keyframes shimmerOnce{
  from{opacity:1;transform:translateX(0)}
  to{opacity:0;transform:translateX(100%)}
}

.history-kpi {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0.6rem 0 1rem;
}

.kpi-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #1ed760; /* grön default */
}

.kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
}

.kpi-meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.kpi-meta .dot {
  opacity: 0.4;
}

.bar-item-wrap{
	  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  border-bottom: none;
  background:rgba(15,17,23,.85);
  backdrop-filter:blur(18px);
  font-family:system-ui,Arial;
}

/* KPI HEADER */
.kpi-head { display: flex; align-items: center; gap: 14px; }
.kpi-big { font-size: 2.4rem; font-weight: 800; color: #fff; }
.kpi-title { font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.kpi-sub { font-size: 14px; color: rgba(255,255,255,.8); }

/* TREND */
.kpi-trend { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 20px; border-radius: 999px;  }
.kpi-trend.flat-trend {background: rgba(100,116,139,.15);color: #64748b;}
.kpi-trend.up   { background: rgba(34,197,94,.15); color: #22c55e; }
.kpi-trend.down { background: rgba(239,68,68,.15);  color: #ef4444; }

.kpi-divider { height: 1px; background: rgba(255,255,255,.08); margin: 14px 0; }
.kpi-section-title { font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 10px; text-transform: uppercase; }
.kpi-title i, .history-group-label i{ font-size: 14px;color: rgba(255,255,255,.6);}

/* BADGES */
.kpi-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.kpi-badges .badge {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
    overflow: visible;
  min-width: fit-content;
}


/* META BLOCK */
.kpi-meta-block { display: flex; flex-direction: column; }

/* BAR */
.bar-item { padding: 6px 0; margin-bottom: 2px; }
.bar-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 5px; }
.bar-left strong { font-size: 13px; font-weight: 600; color: #fff; }
.bar-left .meta { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 1px; }
.bar-result { font-size: 12px; color: rgba(255,255,255,.6); }

.bar-track {
  height: 6px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #4cff00, #38c700);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.bar-track.animate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(110,255,51,.5) 25%, transparent 60%);
  animation: shimmer 1s ease-out forwards;
}
@keyframes shimmer {
  from { opacity:1; transform:translateX(0); }
  to   { opacity:0; transform:translateX(100%); }
}

@keyframes fillBar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.bar-track.animate:hover::after{
animation: fillBar 1s ease-out forwards;}	

#yougr4 {
  padding: 0 4px;
}

.bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .8s cubic-bezier(.4,0,.2,1);
  /* ingen background här */
}

.bar-fill:not(.bar-fill-detail) {
  background: linear-gradient(90deg, #38c700, #6EFF33) !important;
  box-shadow: 0 0 10px rgba(56,189,248,.25);
}

.bar-fill-detail {
  background: linear-gradient(90deg, #0ea5e9, #7dd3fc) !important;
  box-shadow: 0 0 10px rgba(56,189,248,.25);
}

.bar-track.detail.animate::after {
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.55) 20%, rgba(56,189,248,.15) 40%, transparent 65%);
}

.bar-track:not(.detail).animate::after {
  background: linear-gradient(90deg, transparent, rgba(76,255,0,.55) 20%, rgba(76,255,0,.15) 40%, transparent 65%);
}


.badge, .badge-news, .badge-tips{display:inline-block;width:40px;padding:3px 7px;font-size:13px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;
vertical-align:baseline!important;background-color:#777;border-radius:999px;font-family:'Source Sans Pro';outline:none;
letter-spacing: 0.05em;
text-shadow: 0 1px 2px rgba(0,0,0,0.35);
text-transform: uppercase;
}

.coach-badges .badge::after, .kpi-badges .badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.coach-badges .badge:hover, .kpi-badges .badge:hover {
  transform: translateY(-2px);
}

.coach-badges .badge:hover::after, .kpi-badges .badge:hover::after {
  opacity: 1;
}

.coach-badges .badge,
.kpi-badges .badge {
  will-change: transform;
  backface-visibility: hidden;
}

.coach-badges .badge:hover,
.kpi-badges .badge:hover {
  transform: translateY(-2px);
}

.coach-badges .badge:hover::after,
.kpi-badges .badge:hover::after {
  opacity: 1;
}

.kpi-badges .badge.xyz, .kpi-badges .badge.xyz2, .coach-badges .badge.xyz, .coach-badges .badge.xyz2 {
  background: linear-gradient(135deg, #7a5f00 0%, #c49b00 50%, #7a5f00 100%) !important;
  border: 1.5px solid rgb(168,136,0) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(168,136,0,0.25), 0 2px 8px rgba(168,136,0,0.3), inset 0 1px 0 rgba(255,220,80,0.2) !important;
}
.kpi-badges .badge.kva, .kpi-badges .badge.kva2, .coach-badges .badge.kva, .coach-badges .badge.kva2 {
 background: linear-gradient(135deg, #2d6e1a 0%, #4aaa28 50%, #2d6e1a 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgb(50,120,20) !important;
  box-shadow: 0 0 0 1px rgba(50,120,20,0.25), 0 2px 6px rgba(74,170,40,0.35) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35) !important;
}
.kpi-badges .badge.nog, .kpi-badges .badge.nog2, .coach-badges .badge.nog, .coach-badges .badge.nog2 {
  background: linear-gradient(135deg, #0a3550, #1e8ab4) !important;
  box-shadow: 0 0 0 1px rgba(11,51,69,0.4), 0 2px 8px rgba(21,96,130,0.6) !important;
  color: white !important;
  border: 1px solid rgb(11,51,69) !important;
}
.kpi-badges .badge.dtk, .kpi-badges .badge.dtk2, .coach-badges .badge.dtk, .coach-badges .badge.dtk2 {
  background: linear-gradient(135deg, #004a4d, #00c5ca) !important;
  border: 1px solid rgb(0,41,42) !important;
  box-shadow: 0 0 0 1px rgba(0,153,157,0.3), 0 2px 10px rgba(0,197,202,0.5) !important;
}
.kpi-badges .badge.ord, .kpi-badges .badge.ord2, .coach-badges .badge.ord, .coach-badges .badge.ord2 {
  background: linear-gradient(135deg, #bb1511, #f59391) !important;
  color: white !important;
  border: 1px solid rgb(187,21,17) !important;
  box-shadow: 0 0 0 1px rgba(187,21,17,0.3), 0 2px 6px rgba(187,21,17,0.35) !important;
}
.kpi-badges .badge.las, .kpi-badges .badge.läs, .kpi-badges .badge.las2, .kpi-badges .badge.läs2, .coach-badges .badge.las, .coach-badges .badge.las2, .coach-badges .badge.läs, .coach-badges .badge.läs2 {
  background: linear-gradient(135deg, #c9a800, #fff2b9) !important;
  color: #3a2d00 !important;
  border: 1px solid rgb(122,99,0) !important;
  box-shadow: 0 0 0 1px rgba(122,99,0,0.25), 0 2px 6px rgba(122,99,0,0.2) !important;
}
.kpi-badges .badge.mek, .kpi-badges .badge.mek2, .coach-badges .badge.mek, .coach-badges .badge.mek2 {
  background: linear-gradient(135deg, #2d5f7a 0%, #4a8aaa 50%, #2d5f7a 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgb(40,90,120) !important;
  box-shadow: 0 0 0 1px rgba(40,90,120,0.25), 0 2px 8px rgba(74,122,155,0.4) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35) !important;
}
.kpi-badges .badge.elf, .kpi-badges .badge.elf2, .coach-badges .badge.elf, .coach-badges .badge.elf2 
{ background: linear-gradient(135deg, #8a3005 0%, #d45a0a 50%, #8a3005 100%) !important;
  color: white !important;
  border: 1px solid rgb(160,60,8) !important;
  box-shadow: 0 0 0 1px rgba(160,60,8,0.3), 0 2px 6px rgba(192,78,8,0.4) !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4) !important;
}
.kpi-badges .badge.ene, .coach-badges .badge.ene {
  background: linear-gradient(135deg, #0e4a7a, #5aaaf0) !important;
  color: white!important;
  border: 1px solid rgb(22,61,100) !important;
  box-shadow: 0 0 0 1px rgba(78,149,217,0.3), 0 2px 10px rgba(90,170,240,0.5) !important;
}
.kpi-badges .badge.ens, .coach-badges .badge.ens {
  background: linear-gradient(135deg, #4a0046, #f000e0) !important;
  color: white!important;
  border: 1px solid rgb(100,0,93) !important;
  box-shadow: 0 0 0 1px rgba(218,0,202,0.3), 0 2px 12px rgba(240,0,224,0.5) !important;
}

.badge-news {
  width: auto;
  background: linear-gradient(135deg, #4a0080 0%, #800080 50%, #4a0080 100%) !important;
  border: 1.5px solid rgb(140, 0, 140) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(140,0,140,0.25), 0 2px 8px rgba(128,0,128,0.3), inset 0 1px 0 rgba(220,80,220,0.2) !important;
}

.badge-tips {
  width: auto;
  background: linear-gradient(135deg, #7a2e00 0%, #FF6A00 50%, #7a2e00 100%) !important;
  border: 1.5px solid rgb(168, 80, 0) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(168,80,0,0.25), 0 2px 8px rgba(255,106,0,0.3), inset 0 1px 0 rgba(255,180,80,0.2) !important;
}

.history-group-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  padding: 12px 0 4px;
  margin-top: 3px;
  border-top: 0px solid rgba(255,255,255,.06);
}

.history-group-label:first-child {
  padding-top: 0;
  margin-top: 6px;
  border-top: none;
}

.kpi-norm-badge {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  padding: 5px 12px;
  border-radius: 6px;
  border: 0.5px solid rgba(255,255,255,.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kpi-norm-badge strong {
  color: #fbbf24;
  font-weight: 700;
  font-size: 13px;
}

.kpi-norm-label {
  font-size: 10px;
  color: rgba(255,255,255,.25);
  margin-top: 3px;
  letter-spacing: .04em;
}

.kpi-norm-badge.kvant {
  background: linear-gradient(135deg, rgba(14,165,233,.15), rgba(56,189,248,.08));
  border: 1px solid rgba(56,189,248,.35);
  color: rgba(255,255,255,.6);
  box-shadow: 0 0 12px rgba(56,189,248,.15), inset 0 1px 0 rgba(56,189,248,.1);
}

.kpi-norm-badge.kvant strong {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56,189,248,.4);
}

.kpi-norm-badge.verbal {
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(167,139,250,.08));
  border: 1px solid rgba(167,139,250,.35);
  color: rgba(255,255,255,.6);
  box-shadow: 0 0 12px rgba(167,139,250,.15), inset 0 1px 0 rgba(167,139,250,.1);
}

.kpi-norm-badge.verbal strong {
  color: #a78bfa;
  text-shadow: 0 0 8px rgba(167,139,250,.4);
}

.kpi-norm-badge.total {
  background: linear-gradient(135deg, rgba(30,215,96,.15), rgba(30,215,96,.08));
  border: 1px solid rgba(30,215,96,.35);
  color: rgba(255,255,255,.6);
  box-shadow: 0 0 12px rgba(30,215,96,.15), inset 0 1px 0 rgba(30,215,96,.1);
}

.kpi-norm-badge.total strong {
  color: #1ed760;
  text-shadow: 0 0 8px rgba(30,215,96,.4);
}

.button-primary {
  display: block;
  padding: 10px 20px;
  border: none;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #1ed760;
  color: #000;
  box-shadow: 0 8px 26px rgba(30, 215, 96, 0.35);
  width: 100%;
  max-width: 300px;
  margin: 18px auto 6px auto;
  position: relative;
  overflow: hidden;       /* ⇐ behövs för shimmer */
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(30, 215, 96, 0.45);
}

/* ✨ shimmer-effekt */
.button-primary.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  animation: shimmerMove 0.8s ease-out;
}

@keyframes shimmerMove {
  from {
    left: -150%;
  }
  to {
    left: 150%;
  }
}

.coach-box{
background:rgba(15,17,23,.85);
border:rgba(255,255,255,0.7);
border-radius: 12px;
padding:6px;}

.coach-section{
    font-size: 11px;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: .1em;
}

.delp{
	font-weight:bold;
	color:rgba(255,255,255,0.7);
}

.coach-section .badge{
margin:8px 8px 0 0;}

.coach-section i{
	font-size: 14px;
	color: rgba(255, 255, 255, .6);
}

.coach-divider, .kpi-divider {
  height: 1px;
  margin: 12px -16px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.55),
    transparent
  );
}


.coach-title, .kpi-section-title{
	font-size: 13px;
color: rgba(255, 255, 255, .6);
letter-spacing: .08em;}

.coach-section.highlight {
  background: rgba(30, 215, 96, 0.08);
  border: 1px solid rgba(30, 215, 96, 0.25);
  border-top:none;
  border-radius: 10px;
  padding: 12px;
}

.coach-section ul{
  list-style: none;
  padding-left: 0;
}

.coach-section ul li {
  position: relative;
  padding-left: 22px!important;
  margin-bottom: 6px!important;
  line-height:1.3!important;
  color:rgba(255,255,255,0.6)!important;
  }

.coach-section li::before {
font-family: "Font Awesome 6 Free"!important; 
  content: "\f058"!important;
  font-size: 11px!important;
  color:rgba(255,255,255,0.6)!important;
  position: absolute;
  left: 0;
}

	

@media (max-width: 900px) {
	.coach-section, .coach-section p{
font-size:11px!important;
font-weight:normal;
color:rgba(255,255,255,0.6);}}

.dashboard-right {
  display: flex;
  flex-direction: column;
}

#statistics {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.bar-fill.green {
  background: linear-gradient(90deg,#4cff00,#38c700)!important;
}

.bar-track.green::after{
background: linear-gradient(
    90deg,
    transparent,
    rgba(76,255,0,.55) 20%,
    rgba(76,255,0,.15) 40%,
    transparent 60%
)!important;}

.bar-fill.yellow {
  background: linear-gradient(90deg,#ffd400,#e6b800)!important;
}

.bar-track.yellow::after{
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,212,0,.55) 20%,
    rgba(255,212,0,.15) 40%,
    transparent 60%
  )!important;}
  
  .bar-fill.grey {
background: linear-gradient(90deg,#757575,#BDBDBD)!important;
}

.bar-track.grey::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(117,117,117,0.55) 20%,
    rgba(117,117,117,0.15) 40%,
    transparent 60%
  ) !important;
}

.bar-fill.red {
background: linear-gradient(90deg,#ff3b3b,#c70000)!important;
}

.bar-track.red::after{
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,59,59,.55) 20%,
    rgba(255,59,59,.15) 40%,
    transparent 60%
  )!important;}


.info-popup {
  position: absolute;
  right: 0;
  bottom: 22px;
  width: 440px;
  background: linear-gradient(180deg, rgba(17,22,32,1), rgba(10,14,20,1));
  padding: 14px 14px 14px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-weight: 400;
  font-size: 13px;
    line-height: 1.4;
    color: rgb(229, 231, 235);
    font-weight: 400;

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; /* valfritt */
  backdrop-filter: blur(6px);

  max-height: 70vh;
  overflow-y: hidden; /* eller auto om du verkligen vill visa scrollbar */
  will-change: opacity, transform;
  font-size: 15px;
    letter-spacing: .05em;
    text-transform: uppercase;
	z-index:100;
}

.info-popup p{
	  font-weight: 400;
  font-size: 13px;
    line-height: 1.4;
    color: rgb(229, 231, 235);
font-weight: 400;}
	

.info-popup::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #38bdf8, #0ea5e9);
  box-shadow: 0 0 8px rgba(56,189,248,.7);

  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease-out 0.2s;
  z-index:10;
}

.info-icon:hover .info-popup::before { 
  transform: scaleY(1);
}



/* Visa popupen vid hover */
.info-icon:hover .info-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.info-icon:hover{
    transform: scale(1.11);
}

.info-popup .info-popup-header {
	font-size:15px;
	margin-bottom:6px;
}

.info-popup i{
	height:16px;
	width:16px;
}

.info-popup .info-popup-header i{
	margin-right:8px;
}

.info-popup p i{
	margin-right:8px;
}

.info-popup img{
	height:18px;
	weidth:18px;
}

.section-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
  font-size:15px;
}

.info-icon {
  position: relative;
  cursor: pointer;
  color: rgb(207, 211, 220);
  margin-left:auto;
  
display: inline-block;
    transition: transform 0.2s ease;
	z-index:50;

}

.info-popup ul {
  padding: 0;
  margin: 0;
}

.info-popup ul li {
  list-style: none !important;
}

.info-popup ul li::marker {
  content: none;
}

.info-popup .filledCircle, .circleRow .filledCircle{
	width:16px;
	height:16px;
	border-radius:100%;
	display:inline-block;
	margin: 0 6px;
	vertical-align: middle;
  transform: translateY(-2px);


  box-shadow:
    inset -2px -2px 4px rgba(0,0,0,0.4),
    inset 2px 2px 4px rgba(255,255,255,0.25),
    0 0 8px rgba(76,255,0,0.4);
}

.circleRow{
margin-top:12px;
text-align: center;
font-size:11px;
color: rgba(255, 255, 255, .4);}


.info-popup .filledCircle.redBg, .circleRow .filledCircle.redBg{
background:#ff3b3b;}

.info-popup .filledCircle.yellowBg, .circleRow .filledCircle.yellowBg{
background:#ffd400;}
	
.info-popup .filledCircle.greenBg, .circleRow .filledCircle.greenBg{
background:#4cff00;}

.info-popup .filledCircle.greyBg, .circleRow .filledCircle.greyBg{
background:#757575;}

.info-popup.popup-down {
	position:absolute;
  top: 22px;
  bottom: auto;
  z-index:99999999999999;
}



/* Bar chart */

/* ===== MINI BAR CHART ===== */

.history-overview-chart{
margin-top:12px;
border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-bottom: none;
    background: rgba(15, 17, 23, .85);
    backdrop-filter: blur(18px);
    font-family: system-ui, Arial;
	width:100%;
	max-width:100%;
	overflow-x:hidden;
	padding:3px;
}

.mini-chart-wrap {
  height: 60px;
  width: 100%;
  overflow:hidden;
  margin:12px 0 0 0;
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 2px;
  width: 100%;
}

.mini-bar {
	position:relative;
  flex: 1;
  min-width: 2px;
  max-width: 12px;
  border-radius: 6px 6px 0 0;
}

/* 🔥 kopplar direkt till dina färgklasser */
.mini-bar.green {
  background: linear-gradient(180deg,#4cff00,#38c700);
}

.mini-bar.yellow {
  background: linear-gradient(180deg,#ffd400,#e6b800);
}

.mini-bar.red {
  background: linear-gradient(180deg,#ff3b3b,#c70000);
}

.mini-bar.grey {
  background: linear-gradient(180deg,#757575,#BDBDBD);
}

.mini-bar {
  position: relative; /* viktigt */
  z-index:20;
}

/* tooltip */
.mini-bar::after {
  content: attr(data-tip);
  position: absolute;

  top: 4px;                 /* alltid samma position */
  left: 50%;
  transform: translateX(-50%);
  margin-bottom:-20px;

  color:rgb(255,255,255)!important;
  padding: 3px 7px;
  font-size: 10px;
  border-radius: 9px;

  opacity: 0;
  pointer-events: none;
  z-index: 10;

  white-space: nowrap;
  transition: filter 0.15s ease;
    background: rgba(0,0,0,.55)!important; /* nästan solid */
  color: #fff;
  z-index:30;

}

.mini-bar:hover {
  filter: brightness(1.3);
  transform-origin: bottom; /* växer uppåt, inte nedåt */
  z-index:999;
}

.mini-bar:hover::after {
  opacity: 1;
}


/* stats */
.mini-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  font-size: 11px;
  color: rgba(255,255,255,.6);
  justify-content: space-between;
}

.mini-stats strong {
  display: block;
  font-size: 14px;
  color: #fff;
}

.history-mini-plot {
  height: 120px;
  display: flex;
  align-items: flex-end;
}

.css-chart {
  width: 100%;
  max-width: 100%;
  overflow: hidden;     /* 🔥 viktig */
  box-sizing: border-box;
}

.bar-item-wrap {
  width: 100%;
  overflow: hidden;     /* 🔥 stoppar expansion */
}

.mini-chart-wrap {
  position: relative;
  height: 120px;
  display: flex;
}

.mini-y-axis {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 18px;
  width: 40px;
  font-size: 10px;
  color: rgba(255,255,255,.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:0;
  margin:0;
}

.mini-bars {
  margin-left: 40px; /* plats för axel */
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 100%;
}

.mini-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap; /* 🔥 viktigt */
}

.trend-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.trend-box.up {
  background: rgba(76,255,0,0.15);
  color: #4cff00;
}

.trend-box.down {
  background: rgba(255,59,59,.15);
  color: #ff3b3b;
}

.trend-arrow {
  font-size: 12px;
}

.trend-value {
  font-weight: 700;
}

.trend-label {
  opacity: 0.7;
  font-size: 11px;
}

.mini-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100px;
  z-index: 2;
}

.mini-bar::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);

  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 4px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.mini-bar:hover::after {
  opacity: 1;
  z-index:10;
}


.mini-trend-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  inset: 0;
  z-index: 1;
}

.mini-trend-line polyline:last-child {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.6))
          drop-shadow(0 0 12px rgba(255,255,255,0.3));
}