/* ================ CORE PANEL ================ */

#bc-nc-panel {
    position: fixed;
    right: 20px;
    bottom: 70px;
    width: 360px;
    max-height: 65vh;

    display: flex;
    flex-direction: column;

    background: rgba(25, 25, 30, 0.75);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;

    box-shadow: 0 6px 28px rgba(0,0,0,0.35);

    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: all .25s ease;
    z-index: 999999;
}

#bc-nc-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ================ HEADER ================ */

.bc-nc-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.bc-nc-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.bc-nc-btn.sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.bc-nc-btn.sm:hover {
    background: rgba(255,255,255,0.15);
}

/* ================ SEARCH ================ */

.bc-nc-search {
    padding: 8px 14px;
    background: rgba(255,255,255,0.03);
}

.bc-nc-search input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
}

.bc-nc-search input::placeholder {
    color: #aaa;
}

/* ================ TABS ================ */

/* اصلاح شده: به جای .tab از .bc-nc-tab استفاده کنید */
.bc-nc-tabs .bc-nc-tab {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: none;
    padding: 6px;
    margin: 5px;
    border-radius: 10px;
    font-size: 12px; /* کمی کوچکتر برای جا شدن دسته‌های زیاد */
    color: #cfcfcf;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

.bc-nc-tabs .bc-nc-tab.active {
    background: rgba(90, 120, 255, 0.4);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}





/* ================ LIST ================ */

.bc-nc-list-wrapper {
    overflow-y: auto;
}

.bc-nc-list {
    padding: 10px;
}

.bc-nc-item {
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: 0.25s;
}

.bc-nc-item.unread {
    border-left: 4px solid #5a78ff;
    background: rgba(90,120,255,0.1);
}

.bc-nc-item:hover {
    background: rgba(200,200,255,0.12);
}

.bc-nc-item-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.bc-nc-item-time {
    font-size: 12px;
    color: #bbb;
}

/* ================ TOAST POPUP ================ */

#bc-nc-toast {
    position: fixed;
    right: 25px;
    bottom: 30px;
    background: rgba(30, 30, 40, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: all .25s ease;
    max-width: 260px;
    z-index: 9999999;
}

#bc-nc-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}




/* ================ badge ================ */


.bc-nc-bell{
position:relative;
display:inline-block;
}

.bc-nc-badge{
position:absolute;
top:-5px;
right:-8px;
background:#ff3b30;
color:white;
font-size:11px;
padding:2px 6px;
border-radius:20px;
font-weight:600;
}




/* notification body */

.bc-nc-item-body{
    color:#ddd;
    font-size:13px;
    margin-top:8px;
    line-height:1.5;

    max-height:0;
    overflow:hidden;
    opacity:0;

    transition:max-height .25s ease, opacity .25s ease;
}

/* when expanded */

.bc-nc-item.open .bc-nc-item-body{
    max-height:200px;
    opacity:1;
}

/* smoother click */

.bc-nc-item{
    cursor:pointer;
}







/* notification body container */

.bc-nc-item-body{
    color:#ddd;
    font-size:13px;
    margin-top:8px;
    line-height:1.5;

    max-height:0;
    overflow:hidden;
    opacity:0;

    transition:max-height .25s ease, opacity .25s ease;
}

/* expanded */
.bc-nc-item.open .bc-nc-item-body{
    max-height:300px;
    opacity:1;
}



/* action button */
.bc-nc-action-btn{
    display:inline-block;
    margin-top:10px;
    padding:6px 12px;
    background:#5a78ff;
    border-radius:8px;
    font-size:12px;
    color:white;
    cursor:pointer;
    transition:0.2s;
}

.bc-nc-action-btn:hover{
    background:#3e5aff;
}


.bc-nc-group-title{
    font-weight: 600;
    font-size: 13px;
    color: #777;
    margin: 14px 0 6px 0;
    padding-left: 8px;
    text-transform: uppercase;
}

.bc-nc-item-meta{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    color:#888;
    margin-top:4px;
}

.bc-nc-item-time{
    font-size:12px;
}

.bc-nc-item-cat{
    background:rgba(255,255,255,0.06);
    padding:2px 6px;
    border-radius:4px;
    font-size:11px;
}
.loading{
    font-weight: 600;
    font-size: 13px;
    color: #777;
    margin: 14px 0 6px 0;
    padding-left: 8px;
    text-transform: uppercase;
}


.bc-nc-tab{
    border:0;
    padding:6px 12px;
    border-radius:6px;
    cursor:pointer;
    background:rgba(255,255,255,0.05);
    color:#ddd;
    font-size:12px;
}

.bc-nc-tab.active{
    color:#fff;
}

.bc-nc-item{
    border-left:3px solid transparent;
    padding-left:10px;
}

.bc-nc-item-cat{
    font-size:10px;
    padding:2px 6px;
    border-radius:6px;
    font-weight:600;
}


/* read-more text */

.bc-nc-read-more{
    display:block;
    color:#8aa0ff;
    font-size:12px;
    margin-top:6px;
    opacity:0.8;
    cursor:pointer;
}

.bc-nc-item.open .bc-nc-read-more{
    display:none;
}

