:root{
  --bg1:#0c1230;
  --bg2:#1b2450;
  --brand:#818cf8;
  --card:#0b1326;
  --text:#e5e7eb;
  --muted:#9aa4b2;
  --shadow: 0 12px 34px rgba(0,0,0,.40);
  --shadow-sm: 0 10px 22px rgba(0,0,0,.32);
  --radius: 22px;

  --panel: rgba(20,22,48,.65);
  --panel-border: rgba(255,255,255,.12);
  --soft: rgba(148,163,184,.10);
  --soft-border: rgba(148,163,184,.16);
  --card-border: rgba(255,255,255,.10);
  color-scheme: dark;
}

html, body { height: 100%; }
body{
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, #0c1230 0%, #1b2450 30%, #3a2f6b 55%, #6b3f7a 75%, #3a2350 100%);
  background-attachment: fixed;
  color: var(--text);
}
body::before{
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 25% 8%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 40% 20%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 65% 5%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 80% 18%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 90% 10%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 5% 40%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 55% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(circle at 12% 8%, rgba(91,124,250,.20), transparent 30%),
    radial-gradient(circle at 88% 92%, rgba(199,125,255,.16), transparent 32%);
  background-repeat: no-repeat;
}
body > *{ position: relative; z-index: 1; }

.app-shell{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 22px;
}

.sidebar{
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display:flex;
  flex-direction:column;
}

.brand-dot{
  /* Entferne oder kommentiere aus, da nicht mehr verwendet */
  /* width: 12px; height: 12px; border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(91,124,250,.16); */
}

.brand-logo{
  width: 72px; height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-logo-large{
  width: 50px; height: 50px;
  border-radius: 4px;
  object-fit: cover;
}

.nav-link{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #334155;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover{ background: rgba(91,124,250,.10); color: #1e293b; }
.nav-link.is-active{
  background: rgba(91,124,250,.18);
  color: #1e293b; /* Lightmode: dunkel */
  box-shadow: inset 0 0 0 1px rgba(91,124,250,.22);
}

.nav-link.logout-link {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;

  /* neu: Icon-only Layout */
  justify-content: center;
  gap: 0;
}

.nav-link.logout-link:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.main{
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.topbar{
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.card{
  background: rgba(20, 22, 48, .55);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card-pad{ padding: 18px; }

.login-page{
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, #0c1230 0%, #1b2450 30%, #3a2f6b 55%, #6b3f7a 75%, #3a2350 100%);
}

.login-stars{
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 25% 8%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 40% 20%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 65% 5%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 80% 18%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 90% 10%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 5% 30%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,.8), transparent);
  background-repeat: no-repeat;
}

.login-blob{
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  z-index: 0;
  opacity: .5;
  animation: login-float 10s ease-in-out infinite;
}
.login-blob-1{
  width: 380px; height: 380px;
  top: -100px; left: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(91,124,250,.55), transparent 70%);
}
.login-blob-2{
  width: 420px; height: 420px;
  bottom: -120px; right: -100px;
  background: radial-gradient(circle at 60% 60%, rgba(199,125,255,.45), transparent 70%);
  animation-delay: -5s;
}
@keyframes login-float{
  0%, 100%{ transform: translate(0, 0) scale(1); }
  50%{ transform: translate(20px, -20px) scale(1.06); }
}

.login-card{
  background: rgba(30, 27, 60, .45);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.login-card-pad{ padding: 34px 32px; }

/*╔═══╦═══╦╗──╔═══╦════╦═══╗╔═══╦═══╗╔═══╦═══╗
╚╗╔╗║╔══╣║──║╔══╣╔╗╔╗║╔══╝║╔═╗║╔═╗║║╔═╗║╔═╗║
─║║║║╚══╣║──║╚══╬╝║║╚╣╚══╗╚╝╔╝║║║║║║║║║║╚═╝║
─║║║║╔══╣║─╔╣╔══╝─║║─║╔══╝╔╗╚╗║║║║║║║║║╠══╗║
╔╝╚╝║╚══╣╚═╝║╚══╗─║║─║╚══╗║╚═╝║╚═╝╠╣╚═╝╠══╝║
╚═══╩═══╩═══╩═══╝─╚╝─╚═══╝╚═══╩═══╩╩═══╩═══╝*/


.login-info-header{
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: -10px 0 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  background: rgba(91,124,250,.18);
  color: #e0e7ff;
  font-size: .75rem;
  line-height: 1.45;
  text-align: center;
}

.login-info-header strong{
  color: #fff;
  font-size: .8rem;
}

.login-info-header a{
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/*╔═══╦═══╦╗──╔═══╦════╦═══╗╔═══╦═══╗╔═══╦═══╗
╚╗╔╗║╔══╣║──║╔══╣╔╗╔╗║╔══╝║╔═╗║╔═╗║║╔═╗║╔═╗║
─║║║║╚══╣║──║╚══╬╝║║╚╣╚══╗╚╝╔╝║║║║║║║║║║╚═╝║
─║║║║╔══╣║─╔╣╔══╝─║║─║╔══╝╔╗╚╗║║║║║║║║║╠══╗║
╔╝╚╝║╚══╣╚═╝║╚══╗─║║─║╚══╗║╚═╝║╚═╝╠╣╚═╝╠══╝║
╚═══╩═══╩═══╩═══╝─╚╝─╚═══╝╚═══╩═══╩╩═══╩═══╝*/

.login-icon-ring{
  width: 84px; height: 84px;
  border-radius: 999px;
  border: 1.5px dashed rgba(255,255,255,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: login-spin 12s linear infinite;
}
.login-icon-ring img{
  width: 68%; height: 68%;
  object-fit: cover;
  border-radius: 999px;
  animation: login-spin-reverse 12s linear infinite;
}
@keyframes login-spin{ to{ transform: rotate(360deg); } }
@keyframes login-spin-reverse{ to{ transform: rotate(-360deg); } }

.login-title{ color: #f8fafc; }
.login-title-accent{
  background: linear-gradient(90deg, #a5b4fc, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-subtitle{ color: rgba(226,232,240,.65); }
.login-label{ color: rgba(226,232,240,.75); }

.login-input{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 11px 14px;
  outline: none;
  color: #f1f5f9;
}
.login-input::placeholder{ color: rgba(226,232,240,.4); }
.login-input:focus{
  border-color: rgba(165,180,252,.6);
  box-shadow: 0 0 0 4px rgba(165,180,252,.16);
}

.login-eye-btn{ color: rgba(226,232,240,.55); }
.login-eye-btn:hover{ color: rgba(226,232,240,.85); }

.login-btn{
  background: #f8fafc;
  color: #0f172a;
  font-weight: 600;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.login-btn:hover{
  filter: brightness(.97);
  transform: scale(1.01);
  box-shadow: 0 12px 26px rgba(0,0,0,.32);
}

.login-link{ color: #c4b5fd; }
.login-link:hover{ color: #ddd6fe; text-decoration: underline; }

.soft-input{
  background: var(--soft);
  border: 1px solid var(--soft-border);
  border-radius: 16px;
  padding: 10px 12px;
  outline: none;
  color: var(--text);
}
.soft-input:focus{
  border-color: rgba(91,124,250,.55);
  box-shadow: 0 0 0 4px rgba(91,124,250,.14);
}
.soft-input::placeholder{ color: color-mix(in srgb, var(--muted) 85%, transparent); }

.primary-btn{
  background: var(--brand);
  color: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 10px 18px rgba(91,124,250,.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.primary-btn:hover{ 
  filter: brightness(.98); 
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(91,124,250,.35);
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: #334155;
}
.badge.ok{ background: rgba(16,185,129,.3); color: #065f46; box-shadow: 0 2px 6px rgba(16,185,129,.4); }
.badge.warn{ background: rgba(245,158,11,.16); color: #92400e; }
.badge.bad{ background: rgba(239,68,68,.14); color: #991b1b; }

.progress-ring{
  --p: 65; /* 0..100 */
  width: 78px; height: 78px; border-radius: 999px;
  background: conic-gradient(var(--brand) calc(var(--p)*1%), rgba(148,163,184,.22) 0);
  display:grid; place-items:center;
}
.progress-ring > span{
  width: 62px; height: 62px; border-radius: 999px;
  background: #fff;
  display:grid; place-items:center;
  font-weight: 700;
  color: #1f2a44;
}

@media (max-width: 1024px){
  .app-shell{ grid-template-columns: 1fr; }
  .sidebar{ order: 2; }
}

/* Dark cosmic theme fixes (now the permanent default look, matching the login page) */
.nav-link{ color: #cbd5e1; }
.nav-link:hover{ background: rgba(91,124,250,.16); color: #e5e7eb; }

.nav-link.is-active{
  color: #e5e7eb;
  background: rgba(91,124,250,.22);
  box-shadow: inset 0 0 0 1px rgba(91,124,250,.28);
}

.badge{
  background: rgba(148,163,184,.10);
  color: #cbd5e1;
}

.progress-ring > span{ background: var(--card); color: var(--text); }

/* bessere Fläche für die "bg-slate-50"/"bg-white" Blöcke, ohne überall Tailwind ändern zu müssen */
.bg-slate-50{
  background: rgba(148,163,184,.08) !important;
}
.bg-white{
  background: rgba(255,255,255,0.05) !important;
  color: var(--text) !important;
}

/* Textfarben: überschreibt Tailwind text-slate-* fürs dunkle Theme */
.text-slate-400{ color: #94a3b8 !important; }
.text-slate-500{ color: var(--muted) !important; }
.text-slate-600{ color: #cbd5e1 !important; }
.text-slate-700, .text-slate-800, .text-slate-900{ color: var(--text) !important; }

/* Username im Header heller (überschreibt Tailwind text-slate-700) */
#current-user{
  color: #e5e7eb !important;
}

/* Support/Tickets: bessere Farben für weiße Buttons & Text im Ticket */
#tickets .bg-white {
  background: rgba(255,255,255,0.04) !important;
  color: var(--text) !important;
  border-color: rgba(148,163,184,.12) !important;
  box-shadow: none !important;
}
#tickets .bg-white:hover {
  background: rgba(255,255,255,0.06) !important;
}

#tickets .text-slate-800 {
  color: var(--text) !important;
}
#tickets .text-slate-600,
#tickets .text-slate-500 {
  color: var(--muted) !important;
}

#tickets button {
  color: var(--text);
  background-clip: padding-box;
}

#tickets .badge {
  background: rgba(148,163,184,.10);
  color: var(--text);
}

.gradient-heading {
  background: linear-gradient(to right, #a5b4fc, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  font-weight: 700;
  font-size: clamp(1.125rem, 1.2vw, 1.35rem);
  line-height: 1.6;
}

/* neu: nur Gradient-Effekt (für Produktnamen etc.), ohne font-size Overrides */
.gradient-text{
  background: linear-gradient(to right, #a5b4fc, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* neu: Typo-Helper für Dashboard Datum/Uhrzeit */
.dashboard-date-big{
  font-size: 1.25rem;  /* ~text-xl */
  line-height: 1.75rem;
  font-weight: 700;
}
.dashboard-date-mid{
  font-size: 1.125rem; /* ~text-lg */
  line-height: 1.75rem;
  font-weight: 600;
}
.dashboard-date-small{
  font-size: 1rem;     /* ~text-base */
  line-height: 1.5rem;
  font-weight: 500;
}

.brand-gradient{
  background: linear-gradient(to right, #a5b4fc, #e9d5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  font-weight: 800;
  letter-spacing: .2px;
}

/* Bot card v2 — improved layout */
.bot-card-v2 {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bot-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.bot-card-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, #c77dff, #5b7cfa, #5dade2);
  flex-shrink: 0;
}

.bot-card-inner {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.bot-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bot-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.bot-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--card-border);
}
.bot-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--soft);
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--muted);
}

.bot-dot {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--card);
}
.bot-dot-active {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.20);
  animation: bot-pulse 2.4s ease-in-out infinite;
}
.bot-dot-inactive {
  background: #ef4444;
}
@keyframes bot-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,.20); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,.08); }
}

.bot-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.bot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
}
.bot-status-pill.active {
  background: rgba(16,185,129,.14);
  color: #065f46;
}
.bot-status-pill.inactive {
  background: rgba(239,68,68,.14);
  color: #991b1b;
}

.bot-description {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.bot-card-divider {
  height: 1px;
  background: var(--card-border);
}

.bot-features-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bot-features-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.bot-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bot-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(91,124,250,.10);
  color: var(--brand);
  border: 1px solid rgba(91,124,250,.18);
}
.bot-chip i {
  font-size: 11px;
  opacity: .85;
}

/* Bot cards & badges tuned for the dark cosmic theme */
.bot-status-pill.active  { background: rgba(16,185,129,.18); color: #10b981; }
.bot-status-pill.inactive { background: rgba(239,68,68,.18); color: #ef4444; }
.bot-chip {
  background: rgba(91,124,250,.14);
  border-color: rgba(91,124,250,.22);
  color: #93b4fd;
}
.bot-dot { border-color: var(--card); }

.badge.ok{ background: rgba(16,185,129,.3); color: #10b981; box-shadow: 0 2px 6px rgba(16,185,129,.4); }

/* Unified empty-state box (used for Products/Bots when nothing is available) */
.empty-state{
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.empty-state .empty-title{
  font-size: 1.125rem; /* ~text-lg */
  line-height: 1.75rem;
  font-weight: 600;
}
.empty-state .empty-subtitle{
  margin-top: .25rem;
  font-size: .875rem; /* ~text-sm */
  line-height: 1.25rem;
  color: color-mix(in srgb, var(--muted) 90%, transparent);
}

/* NEW: Secondary button (used for "Vorschau") */
.secondary-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: var(--soft);
  border: 1px solid var(--soft-border);
  color: color-mix(in srgb, var(--text) 92%, transparent);

  border-radius: 14px; /* passend zu nav-link/inputs */
  padding: 8px 10px;

  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.secondary-btn:hover{
  background: color-mix(in srgb, var(--soft) 80%, #fff 20%);
  border-color: color-mix(in srgb, var(--soft-border) 70%, var(--brand) 30%);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.secondary-btn:active{ transform: translateY(0); }
.secondary-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(91,124,250,.18), var(--shadow-sm);
  border-color: rgba(91,124,250,.55);
}

/* optional: kompakter "small button" look */
.btn-sm{
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
}

/* optional: label im Button */
.btn-label{
  font-weight: normal;
  white-space: nowrap;
}

/* New: Download success state */
.download-success {
  background: rgba(16,185,129,.8) !important; /* Green background */
  color: white !important;
  cursor: default !important;
  transform: none !important;
  box-shadow: 0 10px 18px rgba(16,185,129,.25) !important;
}
.download-success:hover {
  transform: none !important;
  box-shadow: 0 10px 18px rgba(16,185,129,.25) !important;
}

/* New: Products – gleiche Button-/Tag-Höhe in Cards */
#productsGrid .card{
  height: 100%;
  display: flex;
}
#productsGrid .card-pad{
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card-footer{
  margin-top: auto;      /* schiebt Footer nach unten */
  padding-top: 1.25rem;  /* Abstand zum Content (~mt-5) */
}

/* Valentinstag Effekt: Neon Rosa Rahmen und Herzen */
.valentines-effect {
  position: relative;
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.8), 0 0 40px rgba(255, 20, 147, 0.4);
  border: 2px solid #ff1493;
  animation: pulse-glow 2s infinite alternate;
}

.valentines-effect::before,
.valentines-effect::after {
  content: '❤️';
  position: absolute;
  font-size: 24px;
  color: #ff1493;
  animation: float-hearts 3s infinite ease-in-out;
}

.valentines-effect::before {
  top: -10px;
  left: -10px;
}

.valentines-effect::after {
  bottom: -10px;
  right: -10px;
  animation-delay: 1.5s;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 20px rgba(255, 20, 147, 0.8), 0 0 40px rgba(255, 20, 147, 0.4); }
  100% { box-shadow: 0 0 30px rgba(255, 20, 147, 1), 0 0 60px rgba(255, 20, 147, 0.6); }
}

@keyframes float-hearts {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(10deg); }
}

/* Error message styles */
.error-message {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  padding: 12px 16px;
  color: #ef4444;
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* News / Event cards (dashboard) */
.news-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 14px;
}
.news-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.news-card__date {
  font-size: 11px;
  font-weight: 400;
  opacity: .72;
}

.news-card--ok   { background: rgba(134,239,172,.12); color: #86efac; }
.news-card--info { background: rgba(147,197,253,.12); color: #93c5fd; }
.news-card--warn { background: rgba(253,224,71,.10);  color: #fde047; }
.news-card--bad  { background: rgba(252,165,165,.12); color: #fca5a5; }

/* Info items (dashboard "Infos") */
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--soft-border);
  transition: transform .15s ease, background .15s ease;
}
.info-item:hover{ transform: translateX(2px); }
.info-item__icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.info-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.info-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.info-item__date {
  font-size: 11px;
  color: var(--muted);
}

.info-item--ok   .info-item__icon { background: rgba(134,239,172,.16); color: #86efac; }
.info-item--info .info-item__icon { background: rgba(147,197,253,.16); color: #93c5fd; }
.info-item--warn .info-item__icon { background: rgba(253,224,71,.14);  color: #fde047; }
.info-item--bad  .info-item__icon { background: rgba(252,165,165,.16); color: #fca5a5; }

/* Übersicht stat rows */
.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--soft-border);
}
.stat-row__icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(91,124,250,.12);
  border: 1px solid rgba(91,124,250,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 13px;
  flex-shrink: 0;
}
.stat-row__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}
.stat-row__badge {
  font-size: 13px;
  font-weight: 700;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(91,124,250,.14);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Team – role badges */
.dev-role-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.dev-role--lead    { background: rgba(199,125,255,.16); color: #c77dff; }
.dev-role--trainee { background: rgba(91,124,250,.18);  color: #93b4fd; }
.dev-role--default { background: var(--soft);           color: var(--muted); }

/* Date card – greeting + KW */
.date-greeting {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.date-greeting i { font-size: 13px; }
/* Icon colour by time-of-day */
.date-greeting .fa-sun       { color: #f59e0b; }
.date-greeting .fa-cloud-sun { color: #fb923c; }
.date-greeting .fa-moon      { color: #818cf8; }
.date-greeting .fa-star      { color: #a78bfa; }
