body{
  background:black;
  color:#fff;
  font-family:Segoe UI, sans-serif;
  overflow-x:hidden;
}

.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){
  .top-header .text-end{
    display:block !important;
    text-align:left !important;
    margin-top:6px;
    margin-left: 10px;
  }
  .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; 
    height: auto;
  }
}


.main-wrapper{
  margin-top:100px;
}

.sidebar{
  background:black;
  position:fixed;
  top:92px;                
  left:0;
  width:250px;

  height: calc(100vh - 93px);  
  overflow-y: auto;           
scrollbar-width: thin;
  scrollbar-color: #302f2e #000;
  padding:10px;
  z-index:999;
}

.sidebar::-webkit-scrollbar{
  width: 6px;
}

.sidebar::-webkit-scrollbar-track{
  background: #000;   
}

.sidebar::-webkit-scrollbar-thumb{
  background: #ffc107;  
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover{
  background: #e0a800;
}

.sidebar ul{
  list-style:none;
  padding:10px 0;
  margin:0;
}

.sidebar li a{
  display:flex;
  gap:12px;
  align-items:center;
  padding:13px 20px;
  color:#cbd5e1;
  font-weight: 600;
  text-decoration:none;
  font-size:16px;
  transition:.25s;
    margin-top: 4px;
}

.sidebar li a i{
  font-size:16px;
  min-width:18px;
    font-weight: 600;
}

.sidebar li a:hover,
.sidebar li a.active{
  background:#ffc107;
  border-radius:25px 0 0 25px;
  color:#000;
  font-weight:600;
}

.sidebar .submenu{
  background:black;
  margin-left: -10px;
  font-size: 14px;

}

.sidebar .submenu li a{
  padding:7px 35px;
  font-size:14px;

  color:#9ca3af;
}

.sidebar .submenu li a:hover{
  background: transparent;
  color:#9ca3af;   
  border-radius:0;
}


.nav-link[aria-expanded="true"] .bi-chevron-down{
  transform:rotate(180deg);
  transition:.3s;
}

.sidebar .collapse{
  transition: height .45s ease;
  overflow: hidden;
}

.sidebar .collapse .submenu-item{
  transition: opacity .25s ease, transform .25s ease;
}


.sidebar .collapse.closing .submenu-item{
  opacity:0;
  transform: translateY(-6px);
}

.sidebar a[aria-expanded="true"]{
  background:#ffc107;
  border-radius:25px 0 0 25px;
  color:#000;
  font-weight:600;
}

.content{
  margin-left:250px;
  transition:.3s;
  
}
@media (min-width:992px){
  .sidebar{
    transform:translateX(0);
  }
}
@media (max-width: 991px) {
  .sidebar {
    height: 100vh;
    overflow-y: auto;
    padding-top: 93px;
  }
}   
/* MOBILE */
@media (max-width:991px){
  .sidebar{
    top:0;
    transform:translateX(-100%);
    height:100vh;
    overflow-y:auto;
  }
  .sidebar.show{
    transform:translateX(0);
  }
  .content{
    margin-left:0;
  }
  .tree-wrapper .tree
  {
    margin-left: 150px;
  }
  .tree-controls
  {
    margin-bottom: 100px;
  }
}
.footer{
  background:linear-gradient(
    to right,
    #000000,
    #0b0f14,
    #000000
  );
  border-top:1px solid #1f2937;
  color:#cbd5e1;
}
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.content {
  padding-bottom: 70px; 
}
.footer small{
  font-size:13px;
  letter-spacing:.3px;
}

.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  height: 80px;
  background: #000;
  border-top: 1px solid #525252;
  justify-content: space-around;
  align-items: center;
  z-index: 999;
}
.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;
}
.mobile-footer .item.active {
  color: #f5d547;
}
.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;
}

@media (min-width: 768px) {
  .mobile-footer {
    display: none;
  }
}

body{
  margin:0;
  background:#000;
  font-family:Segoe UI, sans-serif;
}

@media (min-width: 992px) {
  .footer {
    padding-left: 230px;  
  }
}

.tree-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 40px 20px;
  position: relative;
  min-height: 600px;
  border-radius: 10px;
  margin-bottom: 100px;
}
.tree {
  min-width: 1200px; 
  padding: 20px;
  position: relative;
  transform-origin: top center;
}
.tree ul {
  padding-top: 20px;
  position: relative;
  transition: .3s;
  display: flex;
  justify-content: center;
}
.tree li {
  float: left;
  text-align: center;
  list-style: none;
  position: relative;
  padding: 20px 8px 0 8px;
  transition: all 0.3s ease;
}
@media (max-width: 1200px) {
  .tree {
    min-width: 1000px;
    transform: scale(0.9);
  }
}

@media (max-width: 992px) {
  .tree {
    min-width: 800px;
    transform: scale(0.8);
  }
}

@media (max-width: 768px) {
  .tree {
    min-width: 700px;
    transform: scale(0.75);
    padding: 10px;
  }
  
  .tree-wrapper {
    padding: 20px 10px;
  }
  
  .node {
    width: 140px;
    padding: 12px 8px;
  }
}
@media (max-width: 576px) {
  .tree {
    min-width: 600px;
    transform: scale(0.7);
  }
  .node {
    width: 130px;
  }
  
  .avatar {
    width: 45px;
    height: 45px;
  }
  
  .title {
    font-size: 11px;
  }
}

.node {
  background: linear-gradient(145deg, #f8fbff 0%, #e8f0ff 100%);
  border-radius: 12px;
  padding: 15px 10px;
  width: 160px;
  display: inline-block;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
  z-index: 2;
 

}

.node:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.node.red-node::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  border-bottom: 6px solid #fd1717;
  border-radius: 0 0 12px 12px;
}

.node.black-node::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #000, #374151);
  border-radius: 0 0 12px 12px;
}
.node.black-node .title {
  color: #f3f4f6;
}

.node.blank {
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 2px dashed #94a3b8;
  opacity: 0.8;
}
.node.blank .title {
  color: #64748b;
}

.avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.avatar.black {
  border-color: #000;
  background: linear-gradient(135deg, #6b7280 0%, #374151 100%);
  color: white;
}
.avatar.black i {
  font-size: 24px;
  color: #d1d5db;
}
.avatar.plus {
  color: #0d47a1;
  font-size: 35px;
  font-weight: 900;
  border: 5px solid #0d47a1;
  background: #e0f2fe;
}

.title {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  line-height: 1.3;
  word-break: break-word;
}

.tree li::before,
.tree li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid #f1c40f;
  width: 52%;
  height: 20px;
  z-index: 1;
}

.tree li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid #f1c40f;
}

.tree li:only-child::after,
.tree li:only-child::before {
  display: none;
}

.tree li:only-child {
  padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
  border: none;
}

.tree li:last-child::before {
  border-right: 2px solid #f1c40f;
  border-radius: 0 5px 0 0;
}

.tree li:first-child::after {
  border-radius: 5px 0 0 0;
}

.tree ul ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 2px solid #f1c40f;
  width: 0;
  height: 20px;
}

/* Scrollbar styling for tree wrapper */
.tree-wrapper::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.tree-wrapper::-webkit-scrollbar-track {
  background: #1f2937;
  border-radius: 5px;
}

.tree-wrapper::-webkit-scrollbar-thumb {
  background: #f1c40f;
  border-radius: 5px;
}

.tree-wrapper::-webkit-scrollbar-thumb:hover {
  background: #d4ac0d;
}

/* Tree level indicators */
.tree-level {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #f1c40f;
  font-weight: bold;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 1;
}

/* Tree controls */
.tree-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  display: flex;
  gap: 10px;
}

.tree-controls button {
  background: #f1c40f;
  color: #000;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tree-controls button:hover {
  background: #d4ac0d;
  transform: scale(1.1);
}















