
/*
  Wimmer Community V6.67.1 Global Dark UI Rebuild
  Desktop + mobil shell med fast profilboks nederst i sidebar.
  Ingen synlig "Pro"-tekst til brugerne.
*/

:root{
  --w67-bg:#020911;
  --w67-bg2:#04121e;
  --w67-sidebar:#03101b;
  --w67-panel:#071826;
  --w67-panel2:#0a1c2b;
  --w67-border:rgba(110,241,223,.13);
  --w67-border2:rgba(110,241,223,.28);
  --w67-text:#f5fbfb;
  --w67-muted:#9db7b5;
  --w67-soft:#c8ddda;
  --w67-accent:#5cf0dd;
  --w67-accent2:#7df5b8;
  --w67-shadow:0 18px 46px rgba(0,0,0,.36);
}

html{background:var(--w67-bg);}
body{
  background:
    radial-gradient(circle at 78% 8%,rgba(83,240,220,.10),transparent 28%),
    radial-gradient(circle at 16% 82%,rgba(25,130,230,.08),transparent 34%),
    linear-gradient(180deg,#020911,#03111d 58%,#020911) !important;
  color:var(--w67-text);
}
body::before{opacity:.72 !important;}

.app-shell{
  background:transparent !important;
}

/* SIDEBAR */
.app-sidebar{
  width:236px !important;
  min-width:236px !important;
  display:flex !important;
  flex-direction:column !important;
  background:linear-gradient(180deg,rgba(3,14,25,.99),rgba(3,15,27,.98) 58%,rgba(2,12,22,.99)) !important;
  border-right:1px solid var(--w67-border) !important;
  box-shadow:18px 0 58px rgba(0,0,0,.24);
}

.side-brand{
  margin:0 !important;
  padding:24px 20px 22px !important;
  border-bottom:1px solid rgba(255,255,255,.065) !important;
  gap:13px !important;
  flex:0 0 auto;
}
.side-brand .brand-mark{
  width:48px !important;
  height:48px !important;
  border-radius:16px !important;
  background:linear-gradient(135deg,rgba(91,240,220,.20),rgba(36,139,255,.10)) !important;
  border:1px solid rgba(91,240,220,.14);
  box-shadow:none !important;
}
.side-brand .brand-mark img{width:100%;height:100%;object-fit:contain;}
.side-brand strong{
  color:#fff !important;
  font-size:1.27rem !important;
  line-height:1.02 !important;
  letter-spacing:-.025em;
}
.side-brand em{
  color:#b5cecb !important;
  font-size:.86rem !important;
  line-height:1.25 !important;
  font-style:normal !important;
}

.side-menu{
  flex:1 1 auto;
  overflow:auto;
  padding:15px 14px 12px !important;
  gap:3px !important;
  scrollbar-width:thin;
}
.side-menu::-webkit-scrollbar{width:6px;}
.side-menu::-webkit-scrollbar-thumb{background:rgba(91,240,220,.16);border-radius:999px;}

.side-menu a{
  min-height:43px !important;
  padding:10px 14px !important;
  border-radius:14px !important;
  border:1px solid transparent !important;
  background:transparent !important;
  color:#d8e9e7 !important;
  font-weight:750 !important;
  letter-spacing:-.012em;
  line-height:1.1 !important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease,color .16s ease;
}
.side-menu a span{
  width:22px !important;
  color:#cce3e0 !important;
  opacity:.94 !important;
}
.side-menu a:hover{
  background:rgba(91,240,220,.07) !important;
  border-color:rgba(91,240,220,.11) !important;
  color:#fff !important;
  transform:translateX(1px);
}
.side-menu a.active{
  background:linear-gradient(135deg,rgba(33,191,169,.22),rgba(34,111,160,.14)) !important;
  border-color:rgba(91,240,220,.34) !important;
  color:#fff !important;
  box-shadow:inset 3px 0 0 rgba(91,240,220,.95) !important;
}
.side-menu a.super{
  background:linear-gradient(135deg,rgba(91,240,220,.14),rgba(125,245,184,.08)) !important;
}
.side-menu b,
.nav-badge{
  background:var(--w67-accent) !important;
  color:#021713 !important;
  border:0 !important;
}
.side-menu hr{
  border:0 !important;
  height:1px !important;
  background:rgba(255,255,255,.07) !important;
  margin:10px 4px !important;
}

/* Hide old sidebar cards and use the new fixed profile dock */
.side-card,
.system-card{display:none !important;}

.wc-sidebar-profile-dock{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:11px;
  margin:10px 14px 16px;
  padding:13px 12px;
  border-radius:18px;
  color:var(--w67-text);
  text-decoration:none;
  background:linear-gradient(180deg,rgba(8,22,35,.92),rgba(5,17,29,.88));
  border:1px solid rgba(255,255,255,.075);
  box-shadow:0 -10px 32px rgba(0,0,0,.18);
}
.wc-sidebar-profile-dock:hover{
  border-color:var(--w67-border2);
  background:linear-gradient(180deg,rgba(10,28,43,.98),rgba(6,19,31,.94));
}
.wc-sidebar-profile-dock img,
.wc-sidebar-profile-empty{
  width:42px;
  height:42px;
  border-radius:15px;
  object-fit:cover;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,rgba(91,240,220,.22),rgba(20,90,150,.16));
  border:1px solid rgba(91,240,220,.22);
  color:#aef8ed;
  font-weight:900;
}
.wc-sidebar-profile-dock span{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  flex:1;
}
.wc-sidebar-profile-dock strong{
  color:#fff;
  font-size:.98rem;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.wc-sidebar-profile-dock em{
  color:#a8c1be;
  font-size:.82rem;
  font-style:normal;
}
.wc-sidebar-profile-dock i{
  color:#b9d6d2;
  font-style:normal;
  opacity:.88;
}

/* TOPBAR */
.app-stage{
  background:
    radial-gradient(circle at 82% 9%,rgba(91,240,220,.08),transparent 30%),
    radial-gradient(circle at 16% 88%,rgba(25,130,230,.08),transparent 34%),
    linear-gradient(180deg,rgba(3,11,18,.97),rgba(4,13,22,.98)) !important;
}
.app-topbar{
  min-height:72px !important;
  padding:13px 20px !important;
  gap:12px !important;
  border-bottom:1px solid rgba(91,240,220,.11) !important;
  background:rgba(2,10,17,.78) !important;
  backdrop-filter:blur(20px);
  position:sticky !important;
  top:0;
  z-index:80;
}
.top-search{
  height:50px !important;
  max-width:760px !important;
  border-radius:16px !important;
  border:1px solid var(--w67-border) !important;
  background:linear-gradient(180deg,rgba(8,20,32,.90),rgba(6,17,28,.86)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
}
.top-search input{color:#f5fbfb !important;font-size:1rem !important;}
.top-search input::placeholder{color:#8fa8a6 !important;}
.top-search span{color:#c3ddda !important;}
.top-search kbd{display:none !important;}

.top-actions{
  gap:10px !important;
  flex-wrap:nowrap !important;
}
.top-pill,
.wc-top-lang,
.wc-logout-textpill,
.user-chip,
.top-login,
.btn.small{
  height:50px !important;
  border-radius:16px !important;
  border:1px solid var(--w67-border) !important;
  background:linear-gradient(180deg,rgba(8,20,32,.92),rgba(6,17,28,.88)) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035) !important;
}
.top-pill{
  width:50px !important;
  padding:0 !important;
  justify-content:center !important;
}
.top-pill em{display:none !important;}
.top-pill .wc-pill-icon{font-size:1.05rem !important;}
.wc-top-lang{padding:0 14px !important;}
.wc-top-lang select{
  background:#101c31 !important;
  border-radius:999px !important;
  color:#fff !important;
  font-weight:800 !important;
}
.wc-logout-textpill{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 18px !important;
  color:#ffd8df !important;
  border-color:rgba(255,111,141,.32) !important;
  font-weight:800 !important;
  text-decoration:none !important;
}
.user-chip{
  padding:5px 12px 5px 7px !important;
  gap:10px !important;
}
.user-chip .bell{display:none !important;}
.user-chip img{
  width:40px !important;
  height:40px !important;
  border-radius:14px !important;
  border:1px solid rgba(91,240,220,.22) !important;
}
.user-chip strong{color:#fff !important;font-weight:850 !important;}
.user-chip em{color:#b6d0cd !important;}

/* GLOBAL CONTENT */
.layout{
  width:100%;
  max-width:1500px !important;
  margin:0 auto !important;
  padding:22px 24px 34px !important;
}
.card,.panel,.post-card,.profile-card,.group-card,.admin-card,.wc-mp-card,.wc-box,.form-card,.setting-card,.security-card,.owner-card,.report-card,.notification-card{
  background:linear-gradient(180deg,rgba(9,23,36,.94),rgba(6,17,28,.92)) !important;
  border:1px solid var(--w67-border) !important;
  border-radius:24px !important;
  box-shadow:var(--w67-shadow) !important;
  color:var(--w67-text) !important;
}
input,textarea,select{
  background:rgba(3,13,22,.88) !important;
  border:1px solid rgba(132,231,220,.15) !important;
  color:#f5fbfb !important;
  border-radius:14px !important;
}
input:focus,textarea:focus,select:focus{
  border-color:rgba(91,240,220,.48) !important;
  box-shadow:0 0 0 3px rgba(91,240,220,.10) !important;
  outline:none !important;
}
button,.btn,.wc-btn,a.btn{border-radius:15px !important;}
.btn:not(.small),.wc-btn,button[type="submit"]{
  background:linear-gradient(135deg,var(--w67-accent),var(--w67-accent2)) !important;
  color:#041c18 !important;
  border:0 !important;
  font-weight:850 !important;
}
.btn.ghost,.wc-btn.ghost{
  background:rgba(255,255,255,.045) !important;
  color:#f0fbfa !important;
  border:1px solid rgba(255,255,255,.11) !important;
}
.flash{
  border-radius:16px !important;
  border:1px solid var(--w67-border) !important;
  background:rgba(8,24,36,.92) !important;
}
.footer.pro-footer{
  background:rgba(2,10,17,.76) !important;
  border-top:1px solid rgba(91,240,220,.10) !important;
  color:#b7d0cd !important;
}

/* MOBILE */
.wc-mobile-menu-btn{
  background:linear-gradient(180deg,rgba(8,21,34,.95),rgba(5,15,26,.92)) !important;
  border:1px solid var(--w67-border) !important;
  border-radius:15px !important;
  box-shadow:0 12px 32px rgba(0,0,0,.28) !important;
}
.wc-mobile-top-brand{display:none !important;}
.wc-mobile-bottom-nav{
  background:rgba(3,12,20,.92) !important;
  border-top:1px solid rgba(91,240,220,.13) !important;
  backdrop-filter:blur(18px);
}
.wc-mobile-bottom-nav a{color:#bcd4d1 !important;}
.wc-mobile-bottom-nav a.active{color:var(--w67-accent) !important;}

@media (max-width:1100px){
  .app-sidebar{
    position:fixed !important;
    inset:0 auto 0 0 !important;
    width:304px !important;
    min-width:304px !important;
    transform:translateX(-105%);
    transition:transform .22s ease;
    z-index:120;
    overflow:auto;
  }
  body.menu-open .app-sidebar,
  body.mobile-menu-open .app-sidebar,
  .app-sidebar.open{transform:translateX(0);}
  .app-topbar{
    min-height:66px !important;
    padding:10px 14px 10px 70px !important;
  }
  .top-search{
    max-width:none !important;
    height:46px !important;
  }
  .top-actions .wc-top-lang,
  .top-actions .top-pill:not(.wc-notify-pill):not(.wc-chat-pill),
  .top-actions .wc-logout-textpill{
    display:none !important;
  }
  .user-chip{display:none !important;}
  .layout{padding:16px 14px 92px !important;}
  .side-brand{padding-top:26px !important;}
  .wc-sidebar-profile-dock{
    position:sticky;
    bottom:12px;
    margin-top:10px;
  }
}
@media (max-width:760px){
  .app-topbar{gap:8px !important;}
  .top-search{height:44px !important;border-radius:15px !important;}
  .top-search input{font-size:.95rem !important;}
  .layout{padding-left:12px !important;padding-right:12px !important;}
  .card,.panel,.post-card,.profile-card,.group-card,.admin-card,.wc-mp-card,.wc-box,.form-card,.setting-card,.security-card,.owner-card,.report-card,.notification-card{
    border-radius:20px !important;
  }
}


/* V6.67.2 - Sidebar farve/scrollbar fix */
.app-sidebar{
  background:
    radial-gradient(circle at 30% 8%, rgba(91,240,220,.08), transparent 28%),
    linear-gradient(180deg, rgba(4,17,29,.99), rgba(4,17,29,.985) 55%, rgba(4,17,29,.99)) !important;
  overflow-x:hidden !important;
  scrollbar-width:thin;
  scrollbar-color:rgba(91,240,220,.28) rgba(4,17,29,.75);
}

.side-menu{
  overflow-x:hidden !important;
  padding-right:12px !important;
}

.side-menu *{
  max-width:100%;
}

.side-menu a{
  box-sizing:border-box !important;
  width:100% !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}

.side-menu::-webkit-scrollbar,
.app-sidebar::-webkit-scrollbar{
  width:7px !important;
  height:0 !important;
}

.side-menu::-webkit-scrollbar-track,
.app-sidebar::-webkit-scrollbar-track{
  background:rgba(4,17,29,.88) !important;
  border-radius:999px !important;
}

.side-menu::-webkit-scrollbar-thumb,
.app-sidebar::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, rgba(91,240,220,.40), rgba(91,240,220,.18)) !important;
  border-radius:999px !important;
  border:2px solid rgba(4,17,29,.95) !important;
}

.side-menu::-webkit-scrollbar-corner,
.app-sidebar::-webkit-scrollbar-corner{
  background:rgba(4,17,29,.95) !important;
}

/* Fjern den grimme vandrette scrollbar */
.app-sidebar,
.side-menu{
  overflow-x:hidden !important;
}

/* Admin/ejer-delen skal ikke skifte til en anden hård farve */
.side-menu a.super,
.side-menu a[href*="superadmin"],
.side-menu a[href*="owner_"],
.side-menu a[href*="owner"],
.side-menu a[href*="admin"]{
  background:transparent !important;
  border-color:transparent !important;
  color:#d8e9e7 !important;
}

.side-menu a.super:hover,
.side-menu a[href*="superadmin"]:hover,
.side-menu a[href*="owner_"]:hover,
.side-menu a[href*="owner"]:hover,
.side-menu a[href*="admin"]:hover{
  background:rgba(91,240,220,.07) !important;
  border-color:rgba(91,240,220,.11) !important;
  color:#fff !important;
}

.side-menu a.super.active,
.side-menu a[href*="superadmin"].active,
.side-menu a[href*="owner_"].active,
.side-menu a[href*="owner"].active,
.side-menu a[href*="admin"].active{
  background:linear-gradient(135deg, rgba(33,191,169,.22), rgba(34,111,160,.14)) !important;
  border-color:rgba(91,240,220,.34) !important;
  color:#fff !important;
  box-shadow:inset 3px 0 0 rgba(91,240,220,.95) !important;
}

/* Ejerpanel skal passe til samme grøn/blå stil og ikke ligne en separat farveblok */
.side-menu a.active span,
.side-menu a.super.active span{
  color:#bffcf2 !important;
}

/* Profilboksen nederst holdes i samme farve som resten */
.wc-sidebar-profile-dock{
  background:linear-gradient(180deg, rgba(8,22,35,.88), rgba(6,18,30,.88)) !important;
  border-color:rgba(91,240,220,.14) !important;
}

/* På mobilmenu må sidebar også have samme farve hele vejen ned */
@media (max-width:1100px){
  .app-sidebar{
    background:
      radial-gradient(circle at 24% 6%, rgba(91,240,220,.10), transparent 30%),
      linear-gradient(180deg, rgba(4,17,29,.99), rgba(4,17,29,.99)) !important;
  }
}


/* V6.67.3 - global scrollbar/chat mobile fix */
html,body,.app-shell,.app-stage{max-width:100%;overflow-x:hidden !important;}
.app-sidebar,.side-menu{overflow-x:hidden !important;overscroll-behavior-x:none;}
.app-sidebar{scrollbar-width:thin;scrollbar-color:rgba(91,240,220,.28) rgba(4,17,29,.75);} 
.app-sidebar::-webkit-scrollbar,.side-menu::-webkit-scrollbar{width:7px !important;height:0 !important;background:transparent !important;}
.app-sidebar::-webkit-scrollbar-track,.side-menu::-webkit-scrollbar-track{background:rgba(4,17,29,.92) !important;border-radius:999px !important;}
.app-sidebar::-webkit-scrollbar-thumb,.side-menu::-webkit-scrollbar-thumb{background:linear-gradient(180deg, rgba(91,240,220,.36), rgba(91,240,220,.16)) !important;border-radius:999px !important;border:2px solid rgba(4,17,29,.96) !important;}
.app-sidebar::-webkit-scrollbar-corner,.side-menu::-webkit-scrollbar-corner{background:rgba(4,17,29,.96) !important;}
.side-menu a,.wc-sidebar-profile-dock{max-width:100%;box-sizing:border-box;}
.side-menu a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

@media (max-width:1100px){
  body.wc-chat-standalone-open .app-sidebar,
  body.wc-chat-standalone-open .app-topbar,
  body.wc-chat-standalone-open .wc-mobile-bottom-nav{display:none !important;}
  body.wc-chat-standalone-open .layout{max-width:none !important;padding:0 !important;margin:0 !important;}
}


/* V6.67.4 - skjul scrollbars i sidebar/menu helt, men behold scroll */
.app-sidebar,
.side-menu{
  overflow-x:hidden !important;
  -ms-overflow-style:none !important;
  scrollbar-width:none !important;
}

.app-sidebar::-webkit-scrollbar,
.side-menu::-webkit-scrollbar,
.app-sidebar::-webkit-scrollbar-track,
.side-menu::-webkit-scrollbar-track,
.app-sidebar::-webkit-scrollbar-thumb,
.side-menu::-webkit-scrollbar-thumb,
.app-sidebar::-webkit-scrollbar-corner,
.side-menu::-webkit-scrollbar-corner{
  display:none !important;
  width:0 !important;
  height:0 !important;
  background:transparent !important;
}

.side-menu{
  padding-right:14px !important;
}

.side-menu a{
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

/* Stop vandret side-scroll på hele shellen */
html,
body,
.app-shell,
.app-stage,
.layout{
  overflow-x:hidden !important;
  max-width:100% !important;
}

/* Mobilmenu: ingen synlig scrollbar, men stadig scroll med fingeren */
@media (max-width:1100px){
  .app-sidebar,
  .side-menu{
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-width:none !important;
    -ms-overflow-style:none !important;
  }
}
