*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Lato;
    
}

body{
    background:#ffffff;
    padding:12px;
    overflow-y: hidden;
    overflow-x: auto;

}

#loading{
    position:fixed;
    inset:0;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

#loading img{
    width:250px;
    height:auto;
}

.wrapper{
    display:flex;
    border:1px solid #d9d9d9;
    height:calc(100vh - 110px);
}

/* LEFT SIDEBAR */
.sidebar{
    flex: 0 0 270px;
    min-width: 220px;
    border-right:1px solid #d9d9d9;
    background:#fff;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header{
    padding:18px 28px 12px;
    font-size:12px;
    font-weight:400;
    color:rgba(0, 0, 0, 0.45);
    border-bottom:1px solid #d9d9d9;
}

.tabs{
    list-style: none;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.tabs li{
    position:relative;
    padding:16px 28px;
    font-size:14px;
    color:#333;
    cursor:pointer;
    transition:all .2s ease;
    border-right:3px solid transparent;
}

.tabs li:hover{
    background:#E6F4FF;
    color:#1677FF;
}

.tabs li.active{
    background:#E6F4FF;
    color:#1677FF;
    font-weight:700;
    border-right:3px solid #1677FF;
}

/* RIGHT CONTENT */
.content{
    flex:1;
    background:#fff;
    display:flex;
    flex-direction:column;

    min-height:0;
}

.mainBanner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin: 0;
    background:#fff;
    border:1px solid #d9d9d9;
    border-radius:2px;
    padding:16px 24px;
    margin-bottom:8px;
    width: 100%;
}

.banner-left{
    display:flex;
    align-items:center;
    gap:33px;
}

.banner-logo{
    height:30px;
    width:245px;
    display:block;
}

.country-select{
    width: 185px;
    height: 36px;
    border:1px solid #d9d9d9;
    border-radius:4px;
    padding:0 12px;
    background:#fff;
    margin: 0;
    font-size:14px;
    color:#333;
}

.audience-title{
    margin:0;
    font-size:14px;
    font-weight:700;
    color:rgba(0, 0, 0, 0.88);
}

.audience-description{
    margin-top:8px;
    font-size:12px;
    font-weight: 400;
    line-height:1.8;
    color:rgba(0, 0, 0, 0.65);
    max-width:550px;
}

.audience-panel{
    padding:12px;
}

.middle-panel{
    flex: 0 0 490px;
    min-width: 320px;
    display:flex;
    flex-direction:column;
    background:#fff;
    overflow:hidden;
    border-right:1px solid #d9d9d9;
    min-height:0;
}

.right-panel{
    width: 800px;
    min-width: 360px;
    background:#fff;
    padding:24px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.search-container{
    padding: 0 12px 12px;
}

.search-box{
    position:relative;
    width:100%;
}

.search-box input{
    width:100%;
    height:36px;

    padding-left:42px;
    padding-right:12px;

    border:1px solid #d9d9d9;
    border-radius:6px;

    background:#fff;

    font-size:14px;
    color:#333;

    outline:none;
    transition:border-color .15s ease;
}

.search-box input:focus{
    border-color:#0b63ff;
}

.search-box input::placeholder{
    color:#a8a8a8;
    font-size:14px;
    font-weight:400;
}

.search-icon{
    position:absolute;
    left:14px;
    top:50%;
    transform:translateY(-50%);
    color:#9b9b9b;
    font-size:16px;
    pointer-events:none;
}

.tree-section{
    flex:1;
    overflow-y:auto;
    overflow-x:hidden;
    min-height:0;
    padding:12px;
    border-top:1px solid #e6e6e6;
    background:#FAFAFA;
}

.tree-node{
    margin-bottom:4px;
     position:relative;
}


.tree-children > .tree-node::before{
    content:"";
    position:absolute;
    left: -36px;
    top:14px;
    width:32px;
    height:1px;
    background:#D9D9D9;
}

.tree-row{
    display:flex;
    align-items:center;

    min-height:28px;

    cursor:pointer;

    border-radius:4px;

    font-size:14px;

    color:#333;
}

.tree-row:hover{
    background:#E6F4FF;
}
.tree-toggle:empty {
    display: none;
}
.tree-toggle{
    width:18px;
    text-align:center;

    color:#888;

    font-size:11px;

    flex-shrink:0;
}

.tree-label{
    flex:1;
    padding-left: 4px;
}

.tree-children{
    margin-left:9px;
    border-left:1px solid #D9D9D9;
    padding-left:36px;
    position:relative;
    transition:all 0.2s ease;
}


.tree-node.collapsed > .tree-children{
    display:none;
}

.tree-row.selected{
    background:#E6F4FF;
    border-radius:4px;
    font-weight:500;
}

.tree-toggle{
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-right:0px;
    flex-shrink:0;
}

.toggle-box{
    width:16px;
    height:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
}

.toggle-icon{
    width:18px;
    height:18px;
    display:block;
}

.tree-row.search-match{
    background:#f3f4f6;
    border-radius:4px;
}

.tree-row.search-match:hover{
    background:#eceef1;
}

.search-text-highlight{
    background:#dbdbdb;
    color:#000;
    border-radius:3px;
}

.no-results{
    text-align:center;
    padding:40px 20px;
    color:#8c8c8c;
}

.no-results-title{
    font-size:14px;
    font-weight:600;
    color:#595959;
    margin-bottom:6px;
}

.no-results-text{
    font-size:12px;
    color:#8c8c8c;
}

.details-header-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.details-left{
    flex:1;
}

.details-right{
    text-align:left;
    min-width:120px;
    background: #FAFAFA;
    border-radius: 8px;
    padding: 16px 12px;
}

.details-title{
    font-size:16px;
    font-weight:700;
    color:rgba(0, 0, 0, 0.88);
}

.details-description{
    padding-top: 8px;
    font-size:12px;
    font-weight:400;
    line-height:1.6;
    color:rgba(0, 0, 0, 0.65);
}

.details-count{
    font-size:16px;
    font-weight:700;
    color:rgba(0, 0, 0, 0.88);
}

.details-count-label{
    font-size:12px;
    font-weight: 400;
    color:rgba(0, 0, 0, 0.65);
    margin-top:2px;
}

.details-meta{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.meta-item{
    display:flex;
    justify-content:space-between;
    font-size:13px;
}

.meta-label{
    color:#8c8c8c;
}

.meta-value{
    color:#262626;
    font-weight:500;
}

.details-divider{
    height:1px;
    background:#f0f0f0;
    margin:16px 0;
}


.details-breadcrumb{
    font-size:12px;
    color:rgba(0, 0, 0, 0.65);
    padding-bottom:16px;
    display:flex;
    flex-wrap:wrap;
    gap:4px;
    line-height:1.4;
}

.breadcrumb-current{
    color:rgba(0,0,0,0.88);
}

/* breadcrumb separator styling */
.details-breadcrumb{
    letter-spacing:0.1px;
}

.sentiment-section{
    margin-top:20px;
}

.sentiment-title{
    font-size:14px;
    font-weight:600;
    color: rgba(0, 0, 0, 0.65);
    margin-bottom:12px;
}

.sentiment-cards{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
}

.sentiment-card{
    min-width:170px;
    border-radius:8px;
    padding:16px;
    border:1px solid;
}

.sentiment-label{
    font-size:14px;
    font-weight:700;
    margin-bottom:10px;
}

.sentiment-value{
    font-size:14px;
    font-weight: 400;;
    color:rgba(0,0,0,.88);
}

.sentiment-card.positive{
    background:#F6FFED;
    border-color:#52C41A;
}

.sentiment-card.negative{
    background:#FFF2F0;
    border-color:#FF4D4F;
}

.sentiment-card.neutral{
    background:#FAFAFA;
    border-color:#8C8C8C;
}

.tree-loader{
    padding:8px 0;
}

.loader-line{
    height:18px;
    border-radius:4px;
    margin-bottom:12px;

    background:linear-gradient(
        90deg,
        #f1f1f1 25%,
        #e5e5e5 50%,
        #f1f1f1 75%
    );

    background-size:200% 100%;
    animation:skeleton-loading 1.4s infinite;
}

.loader-line.short{
    width:70%;
}

@keyframes skeleton-loading{
    0%{
        background-position:200% 0;
    }
    100%{
        background-position:-200% 0;
    }
}

.details-actions{
    padding-top:16px;
    display:flex;
    gap:10px;
}

.details-actions .btn{
    padding:8px 12px;
    border-radius:4px;
    font-size:14px;
    font-weight: 700;
    cursor:pointer;
    border:1px solid transparent;
}

.details-actions .btn.primary{
    background:#1677ff;
    color:#fff;
    width: 152px;
}

.details-actions .btn.secondary{
    background:#fff;
    border:1px solid #d9d9d9;
    color:rgba(0, 0, 0, 0.88);
    width:142px;
}

.details-actions .btn:hover{
    opacity:0.9;
}

.coi-card {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
}

.coi-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(0,0,0,.88);
    line-height: 2.0;
}

.coi-description {
    font-size: 12px;
    color: rgba(0,0,0,.65);
    margin-bottom: 16px;
    line-height: 1.5;
    font-weight: 400;
}

.coi-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.coi-row {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.coi-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

.coi-label {
    color: rgba(0,0,0, 0.65);
    margin-right: 6px;
    font-size: 14px;
    font-weight: 600;
}

.coi-value {
    color: rgba(0,0,0,.65);
    font-size: 14px;
    font-weight: 400;
}

.details-actions .btn:focus,
.details-actions .btn.focus,
.details-actions .btn:active {
    outline: none !important;
    box-shadow: none !important;
}


/* Custom dropdown */
.custom-dropdown {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 185px;
  margin: 0;
}

.custom-dropdown select {
    font-weight: 500;
    outline: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}
/*Hiding the select arrow for IE10*/
.custom-dropdown select::-ms-expand {
    display: none;
}

.custom-dropdown::before,
.custom-dropdown::after {
  /* content: ""; */
  position: absolute;
  pointer-events: none;
}

.custom-dropdown::after { /*  Custom dropdown arrow */
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\f107";
  top: calc(30% + 2px);
  right: 11px;
}

.custom-dropdown::after {
  color: rgba(0, 0, 0, 0.25);
}

.custom-dropdown select[disabled] {
  background-color: #eee;
  cursor: not-allowed;
}

.empty-state {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    color: rgba(0, 0, 0, 0.65);
}

.empty-state-icon {
    width: 151px;
    height: auto;
    margin-bottom: 24px;
}

.empty-state h2 {
    font-size: 24px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.88);
    margin: 0 0 8px 0;
}

.empty-state p {
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
    color: rgba(0, 0, 0, 0.45);
}

#nodeDetails {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#nodeDetails:has(.empty-state) {
    justify-content: center;
    align-items: center;
}