:root{
  --red:#ed1c24;
  --bg:#050505;
  --panel:#111;
  --panel2:#181818;
  --line:rgba(255,255,255,.12);
  --muted:#aaa;
  --green:#33cc66;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:
    radial-gradient(circle at top left,rgba(237,28,36,.22),transparent 34%),
    linear-gradient(120deg,#050505,#101010 60%,#050505);
  color:#fff;
}

.admin-shell{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  min-height:100vh;
}

.admin-sidebar{
  background:#090909;
  border-right:1px solid var(--line);
  padding:18px;
  position:sticky;
  top:0;
  height:100vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.admin-logo{
    background:transparent;
    border-radius:0;
    padding:0;
    margin:0 auto 18px;
    max-width:180px;
}

.admin-logo img{
    width:100%;
    display:block;
    background:transparent;
    border:0;
    border-radius:0;
    padding:0;
    box-shadow:none;
}

.admin-staff-card{
  background:linear-gradient(135deg,#111,#181818);
  border:1px solid var(--line);
  border-radius:16px;
  padding:14px;
  margin-bottom:16px;
}

.admin-staff-name{
  font-weight:900;
}

.admin-online{
  color:var(--green);
  font-size:13px;
  margin-top:5px;
}

.admin-menu{
  display:grid;
  gap:6px;
  overflow:auto;
  padding-right:4px;
}

.admin-menu::-webkit-scrollbar{
  width:0;
}

.admin-menu-title{
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1px;
  margin:12px 4px 4px;
  font-weight:900;
}

.admin-menu a{
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
  padding:10px 11px;
  border-radius:14px;
  font-weight:900;
  border:1px solid transparent;
}

.admin-menu a:hover,
.admin-menu a.active{
  background:rgba(237,28,36,.16);
  border-color:rgba(237,28,36,.45);
}

.admin-menu a.active{
  background:var(--red);
  border-color:var(--red);
}

.menu-icon{
  width:28px;
  text-align:center;
  font-size:18px;
  flex:0 0 28px;
}

.menu-text{
  flex:1;
}

.admin-public-links{
  margin-top:12px;
  border-top:1px solid var(--line);
  padding-top:10px;
}

.admin-public-links a{
  display:block;
  color:#ddd;
  text-decoration:none;
  font-weight:850;
  font-size:13px;
  padding:7px 4px;
}

.admin-public-links a:hover{
  color:#fff;
}

.admin-main{
  min-width:0;
}

.admin-topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(5,5,5,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  padding:14px 22px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:16px;
  align-items:center;
}

.admin-search{
  max-width:760px;
  display:grid;
  grid-template-columns:42px 1fr;
  align-items:center;
  background:#111;
  border:1px solid var(--line);
  border-radius:999px;
  overflow:hidden;
}

.admin-search span{
  text-align:center;
}

.admin-search input{
  width:100%;
  background:transparent;
  color:#fff;
  border:0;
  outline:0;
  padding:13px 16px 13px 0;
  font:inherit;
  font-weight:800;
}

.admin-search input::placeholder{
  color:#888;
}

.admin-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.admin-bell{
  position:relative;
  background:#111;
  color:#fff;
  border:1px solid var(--line);
  width:44px;
  height:44px;
  border-radius:50%;
  cursor:pointer;
  font-size:19px;
  padding:0;
  margin:0;
}

.admin-bell-count{
  position:absolute;
  top:-6px;
  right:-6px;
  background:var(--red);
  color:#fff;
  min-width:22px;
  height:22px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  padding:0 6px;
}

.admin-profile{
  background:#111;
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  color:#fff;
}

.admin-notification-panel{
  position:absolute;
  top:64px;
  right:22px;
  width:min(420px,calc(100vw - 30px));
  background:#111;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.55);
  display:none;
  overflow:hidden;
  z-index:100;
}

.admin-notification-panel.open{
  display:block;
}

.admin-notification-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px;
  border-bottom:1px solid var(--line);
}

.admin-notification-head strong{
  font-size:16px;
}

.admin-notification-list{
  max-height:420px;
  overflow:auto;
}

.admin-notification-item{
  display:flex;
  gap:12px;
  color:#fff;
  text-decoration:none;
  padding:13px 14px;
  border-bottom:1px solid var(--line);
  align-items:flex-start;
}

.admin-notification-item:hover{
  background:rgba(237,28,36,.12);
}

.notify-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  background:var(--red);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  flex:0 0 38px;
}

.notify-content{
  flex:1;
  min-width:0;
  display:grid;
  gap:4px;
}

.notify-top{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
}

.notify-top strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.notify-bike,
.notify-preview,
.notify-footer{
  font-size:12px;
  color:#aaa;
}

.notify-preview{
  color:#ddd;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.notify-footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
}

.admin-page-content{
  padding:24px;
}

@media(max-width:1000px){
  .admin-shell{
    grid-template-columns:1fr;
  }

  .admin-sidebar{
    position:relative;
    height:auto;
    overflow:visible;
  }

  .admin-menu{
    overflow:visible;
  }

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

  .admin-actions{
    justify-content:space-between;
  }
}
.compact-admin-sidebar{
  padding:14px;
}

.compact-logo{
  max-width:190px;
  margin:0 auto 16px;
}

.compact-admin-menu{
  gap:8px;
  overflow:visible;
}

.compact-admin-menu a{
  padding:12px 12px;
}

.compact-public-links{
  margin-top:auto;
}

.compact-public-links a{
  font-size:13px;
  padding:8px 4px;
}
#adminSidebar{
  min-width:240px;
}

.admin-sidebar{
  width:240px;
}

.admin-logo{
  max-width:190px;
  margin:0 auto 16px;
}

.admin-logo img{
  width:100%;
  height:auto;
}
.admin-shell{
  display:grid !important;
  grid-template-columns:240px minmax(0,1fr) !important;
  min-height:100vh;
}

#adminSidebar{
  display:block !important;
  width:240px !important;
  min-width:240px !important;
}

.admin-sidebar{
  display:flex !important;
  flex-direction:column;
  width:240px !important;
  min-width:240px !important;
  height:100vh;
  position:sticky;
  top:0;
  background:#090909;
  border-right:1px solid rgba(255,255,255,.12);
  padding:14px;
  overflow:hidden;
}

.admin-logo{
  max-width:185px;
  margin:0 auto 18px;
}

.admin-logo img{
  width:100%;
  display:block;
}

.admin-menu{
  display:grid;
  gap:8px;
  overflow:visible;
}

.admin-public-links{
  margin-top:auto;
}
.admin-sidebar{
  height:100vh;
  overflow:hidden;
}

.admin-logo{
  max-width:155px;
  margin:0 auto 18px;
}

.admin-menu a{
  padding:9px 10px;
  font-size:15px;
}

.menu-icon{
  font-size:16px;
  width:24px;
}

.admin-public-links{
  margin-top:18px;
}

.admin-public-links a{
  font-size:13px;
  padding:5px 4px;
}
.admin-logo{
  max-width:140px;
  margin:0 auto 14px;
}

.admin-sidebar{
  padding:12px;
}

.admin-menu{
  gap:4px;
}

.admin-menu a{
  padding:8px 9px;
  font-size:14px;
}

.menu-icon{
  font-size:15px;
  width:22px;
}

.admin-public-links{
  margin-top:12px;
  padding-top:8px;
}

.admin-public-links a{
  font-size:12px;
  padding:4px 4px;
}
.accordion-menu{
  gap:7px;
}

.menu-folder{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  background:transparent;
  border:1px solid transparent;
  text-align:left;
  padding:9px 10px;
  border-radius:14px;
  font-weight:900;
  font-family:inherit;
  font-size:14px;
  cursor:pointer;
}

.menu-folder:hover{
  background:rgba(237,28,36,.16);
  border-color:rgba(237,28,36,.45);
}

.menu-arrow{
  margin-left:auto;
  color:#aaa;
}

.submenu{
  display:none;
  padding:2px 0 6px 34px;
}

.submenu.open{
  display:grid;
  gap:3px;
}

.submenu a{
  display:block;
  color:#ddd;
  text-decoration:none;
  font-size:13px;
  font-weight:850;
  padding:6px 8px;
  border-radius:10px;
}

.submenu a:hover,
.submenu a.active{
  background:rgba(237,28,36,.16);
  color:#fff;
}

.admin-menu a.active{
  background:#ed1c24;
  border-color:#ed1c24;
}

.admin-sidebar{
  overflow:hidden;
}

.admin-logo{
  max-width:145px;
  margin:0 auto 16px;
}
.submenu{
  display:none;
}

.submenu.open{
  display:grid;
  gap:3px;
}
.submenu{
  display:none;
}

.submenu.open{
  display:grid !important;
  gap:4px;
}
.notify-clear{
  margin-top:7px;
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  padding:5px 10px;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
  width:max-content;
}

.notify-clear:hover{
  background:#ed1c24;
  border-color:#ed1c24;
}

.admin-notification-list{
  scrollbar-width:none;
}

.admin-notification-list::-webkit-scrollbar{
  width:0;
  height:0;
}
.admin-notification-item .notify-avatar{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  min-height:38px !important;
  border-radius:50% !important;
  background:#ed1c24 !important;
  color:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  font-weight:900 !important;
  line-height:1 !important;
  flex:0 0 38px !important;
  margin-top:2px;
}


/* =========================================================
   ADMIN PROFILE DROPDOWN — SHARED TOPBAR FIX
   ========================================================= */

.admin-profile-menu{
  position:relative;
  margin:0;
}

.admin-profile-menu > summary{
  list-style:none;
}

.admin-profile-menu > summary::-webkit-details-marker{
  display:none;
}

.admin-profile-menu[open] > .admin-profile{
  border-color:rgba(237,28,36,.65);
  background:#181818;
}

.admin-profile{
  min-width:210px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}

.admin-profile:hover{
  border-color:rgba(237,28,36,.55);
  background:#181818;
}

.admin-profile-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:280px;
  background:#111;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 24px 70px rgba(0,0,0,.60);
  padding:10px;
  z-index:200;
}

.admin-profile-dropdown-head{
  display:grid;
  gap:4px;
  padding:10px 10px 12px;
}

.admin-profile-dropdown-head strong{
  color:#fff;
  font-size:16px;
  line-height:1.2;
}

.admin-profile-dropdown-head small{
  color:var(--muted);
  font-size:12px;
}

.admin-profile-dropdown a{
  display:flex;
  align-items:center;
  gap:9px;
  width:100%;
  color:#fff;
  text-decoration:none;
  padding:10px 11px;
  border-radius:10px;
  font-size:14px;
  font-weight:850;
}

.admin-profile-dropdown a:hover{
  background:rgba(237,28,36,.14);
}

.admin-profile-dropdown hr{
  border:0;
  border-top:1px solid var(--line);
  margin:9px 0;
}

.admin-logout-button{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:10px;
  padding:11px 12px;
  background:var(--red);
  color:#fff;
  font-family:inherit;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
}

.admin-logout-button:hover{
  filter:brightness(1.08);
}

.admin-logout-button:active{
  transform:translateY(1px);
}

@media(max-width:700px){
  .admin-actions{
    align-items:stretch;
  }

  .admin-profile-menu{
    flex:1;
  }

  .admin-profile{
    width:100%;
    min-width:0;
  }

  .admin-profile-dropdown{
    left:0;
    right:auto;
    width:min(280px,calc(100vw - 32px));
  }
}

/* =========================================================
   ANYBIKE ADMIN LOGO — DARK HEADER/SIDEBAR FIX
   Version: 2026.07.16-1
   Removes the old white logo card and allows the new
   #050505 logo artwork to blend into the admin sidebar.
   ========================================================= */

.admin-logo{
  width:100% !important;
  max-width:180px !important;
  margin:0 auto 18px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:visible !important;
}

.admin-logo a{
  display:block !important;
  width:100% !important;
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
}

.admin-logo img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
  background:#050505 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  object-fit:contain !important;
}

@media(max-width:1000px){
  .admin-logo{
    max-width:170px !important;
    margin-bottom:16px !important;
  }
}
