body{
  background:#0b0f14;
  color:#fff;
  font-family:Segoe UI, sans-serif;
  overflow-x:hidden;
}

/* ================= HEADER ================= */
.top-header{
  height:90px;
  background:#000;
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:1000;
   border-bottom:1px solid #1f2937;
}
@media (max-width: 576px){
  .top-header h6{
    display:none;
  }
}
@media (max-width: 576px){

  /* right side container ko visible rakho */
  .top-header .text-end{
    display:block !important;
    text-align:left !important;
    margin-top:6px;
    margin-left: 10px;
  }

  /* text ko wrap allow karo */
  .top-header .text-end div{
    white-space:normal;
    word-break:break-word;
    font-size:10px;
    line-height:1.4;
  }
}

@media (max-width: 768px) {
  .head-remove {
    display: none;
  }
 .text-end.small .side {
    font-size: 10px !important;
  }
  .d-flex img {
    width: 90px;   /* yahan size adjust kar sakte ho */
    height: auto;
  }
}

/* ================= MAIN ================= */
.main-wrapper{
  margin-top:100px;
}

.sidebar{
  background:black;
  position:fixed;
  top:92px;                 /* header height */
  left:0;
  width:250px;

  height: calc(100vh - 93px);  /* ⭐ MOST IMPORTANT */
  overflow-y: auto;            /* scroll enable */
scrollbar-width: thin;
  scrollbar-color: #302f2e #000;
  padding:10px;
  z-index:999;
}

.sidebar::-webkit-scrollbar{
  width: 6px;
}

.sidebar::-webkit-scrollbar-track{
  background: #000;   /* BLACK background */
}

.sidebar::-webkit-scrollbar-thumb{
  background: #ffc107;  /* Yellow thumb */
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover{
  background: #e0a800;
}
/* MENU LIST */
.sidebar ul{
  list-style:none;
  padding:10px 0;
  
}


/* MENU ITEM */
.sidebar li a{
  display:flex;
  gap:12px;
  align-items:center;
  padding:13px 20px;
  color:#cbd5e1;
  font-weight: 600;
  margin-top: 4px;
  text-decoration:none;
  font-size:16px;
  transition:.25s;
}

/* ICON */
.sidebar li a i{
  font-size:16px;
  min-width:18px;
    font-weight: 600;
}
.sponsor-border
{
    box-sizing: border-box;
}
/* ACTIVE + HOVER */
.sidebar li a:hover,
.sidebar li a.active{
  background:#ffc107;
  border-radius:25px 0 0 25px;
  color:#000;
  font-weight:600;
}

/* SUBMENU */
.sidebar .submenu{
  background:black;
  margin-left: -10px;
  font-size: 14px;

}

.sidebar .submenu li a{
  padding:7px 35px;
  font-size:14px;

  color:#9ca3af;
}

/* Submenu hover disabled */
.sidebar .submenu li a:hover{
  background: transparent;
  color:#9ca3af;   /* same default color */
  border-radius:0;
}


/* ARROW ROTATE */
.nav-link[aria-expanded="true"] .bi-chevron-down{
  transform:rotate(180deg);
  transition:.3s;
}
/* Premium smooth submenu animation */
.sidebar .collapse{
  transition: height .45s ease;
  overflow: hidden;
}

.sidebar .collapse .submenu-item{
  transition: opacity .25s ease, transform .25s ease;
}

/* closing state */
.sidebar .collapse.closing .submenu-item{
  opacity:0;
  transform: translateY(-6px);
}
/* Dropdown active background on click */
/* Menu open (clicked) state */
.sidebar a[aria-expanded="true"]{
  background:#ffc107;
  border-radius:25px 0 0 25px;
  color:#000;
  font-weight:600;
}


/* CONTENT */
.content{
  margin-left:270px;
  transition:.3s;
}

/* DESKTOP */
@media (min-width:992px){
  .sidebar{
    transform:translateX(0);
  }
}
@media (max-width: 991px) {
  .sidebar {
    height: 100vh;
    overflow-y: auto;
    padding-top: 93px; /* header height ke hisab se */
  }
}   
/* MOBILE */
@media (max-width:991px){
  .sidebar{
    top:0;
    transform:translateX(-100%);
    height:100vh;
    overflow-y:auto;
  }
  .sidebar.show{
    transform:translateX(0);
  }
  .content{
    margin-left:20px;
  }
}
.footer{
  background:linear-gradient(
    to right,
    #000000,
    #0b0f14,
    #000000
  );
  border-top:1px solid #1f2937;
  color:#cbd5e1;
}

.footer small{
  font-size:13px;
  letter-spacing:.3px;
}
.main-wrapper{
  margin-top:100px;
  flex:1;                 /* ⭐ FOOTER FIX */
  display:flex;
}
html, body{
  height:100%;
}

body{
  margin:0;
  background:#0b0f14;
  color:#fff;
  font-family:Segoe UI, sans-serif;
  display:flex;
  flex-direction:column;
}
/* Desktop view only */
@media (min-width: 992px) {
  .footer {
    padding-left: 230px;   /* jitna gap chahiye utna */
  }
}

/*footer bottom fixed */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* Content area ko padding do taki footer ke neeche na dikhe */
.content {
  padding-bottom: 70px; /* Footer height ke hisab se adjust */
}
body {
  margin: 0;
  padding-bottom: 80px;
  background: #111;
  font-family: Arial, sans-serif;
}

/* Footer */
.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #000;
  margin-top: 100px !important;
  border-top: 1px solid #525252;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
}

/* Normal items */
.mobile-footer .item {
  color: #aaa;
  text-decoration: none;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-footer .item i {
  font-size: 18px;
  margin-bottom: 4px;
}

/* Active */
.mobile-footer .item.active {
  color: #f5d547;
}

/* Plus Button */
.plus-btn {
  width: 55px;
  height: 55px;
  background: #f5d547;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.plus-btn i {
  font-size: 22px;
  color: #000;
}

/* Desktop par hide */
@media (min-width: 768px) {
  .mobile-footer {
    display: none;
  }
}
body{
    background:black !important;
    color:#fff;
}

/* Outer Frame */
.main-wrapper{
    min-height:100vh;
    padding:15px;
   
   
}

/* Title */
.page-title{
    font-size:23px;
    font-weight:600;
}

/* Input */
.custom-input{
    background:transparent;
    border:none;
    border-bottom:1px solid #aaa;
    border-radius:0;
    color:#fff;
}
.custom-input:focus{
    box-shadow:none;
    border-color:#fff;
    background:transparent;
    color:#fff;
}

/* Button */
.btn-search{
    background:#f5b400;
    color:#000;
    font-weight:600;
    border-radius:6px;
    padding:6px 22px;
}

/* Dashed Line */
.dashed-line{
    border-top:1px dashed #bbb;
    margin:15px 0;
}

/* Tree Canvas */
.tree-canvas{
    background:#fff;
    height:520px;
    position:relative;
    overflow:auto;
}

/* Node Card */
.node{
    width:120px;
    background:#000;
    color:#fff;
    text-align:center;
    border-radius:6px;
    padding:10px;
    position:absolute;
    left:50%;
    transform:translateX(-50%);
}

.node .avatar{
    width:40px;
    height:40px;
  
    border-radius:50%;
    margin:0 auto 6px;
}

.node small{
    color:#ccc;
}

/* Connector */
.connector{
    width:2px;
    background:#1c3f72;
    position:absolute;
    left:50%;
    transform:translateX(-50%);
}

/* Plus / Minus */
.circle-btn{
    width:20px;
    height:20px;
    background:#fff;
    border:2px solid #f5b400;
    color:#000;
    border-radius:50%;
    font-size:12px;
    line-height:16px;
    font-weight:bold;
    margin:5px auto;
}

/* Responsive */
@media(max-width:768px){
    .tree-canvas{
        height:420px;
    }
}