.nselementory-section .nscourse-section .nspanel-group .nscourse-panel-heading {
    border-top: 1px solid #e9ecef;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 20px 15px;
    cursor: pointer;
    -webkit-transition: background-color .2s ease-out;
    transition: background-color .2s ease-out
}

.nselementory-section .nscourse-section .nspanel-group .nscourse-panel-heading.active,
.nselementory-section .nscourse-section .nspanel-group .nscourse-panel-heading:hover {
    background-color: #f8f9fa
}


.nspanel-heading-left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1
}

 .nstitle {
  margin-bottom: 0px;
}

.nscourse-lesson-icon {
    line-height: 1;
    margin-left: 15px
}

.nscourse-lesson-icon i {
    color: #d4d9dd;
    font-size: 20px;
    -webkit-transition: color .2s ease-out;
    transition: color .2s ease-out
}

 .nsbadge-item {
    padding: 2px 6px;
    display: inline-block;
    font-size: 12px;
    border-radius: 2px;
    margin-left: 6px;
    line-height: 1.2;
    text-transform: capitalize;
    order: -9999;
}

 .panel-heading-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
}

.nselementory-section .nscourse-section .nspanel-group .nscourse-panel-heading .private-lesson {
    margin-left: 6px;
    padding-right: 0
}

.private-lesson .fa.green-lock {
    color: #48af3b
}

    .nselementory-section .nscourse-section .nspanel-group .nscourse-panel-heading .private-lesson i {
        margin-right: 0!important
    }

.preview-button {
    background-color: #ff6060;
    color: #fff;
    border-radius: 30px
}

.preview-button.gray {
    background-color: #bac2c5;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

.preview-button.gray:hover {
    opacity: 0.7;
    transform: none;
}

.nsdownload-button {
    background-color: #4ece3d;
    color: #fff;
    height: 34px;
    border-radius: 30px;
    svg{
        fill:#fff;
    }
}

.nsdownload-button.gray {
    background-color: #bac2c5;
    margin-right: 8px;
    color: #fff;
    border-radius: 30px;
    cursor: not-allowed;
    opacity: 0.7;
}

.nsdownload-button.gray:hover {
    opacity: 0.7;
    transform: none;
}


 .nsdownload-button,
 .preview-button,
.private-lesson {
    font-size: 14px;
    line-height: normal;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
span.nsspanpreviewtext {
    line-height: 0;
}
.nselementory-section .nscourse-section i{
    display: flex;
    align-items: center;
}


.nselementory-section .nscourse-section .nspanel-group .nscourse-panel-heading .preview-button i,
.nselementory-section .nscourse-section .nspanel-group .nscourse-panel-heading .private-lesson i {
    display: flex;
    align-items: center;}

.nselementory-section .nscourse-section .nspanel-group .nspanel-content {
    overflow: hidden;
    background-color: #f8f9fa;
}

.nselementory-section .nscourse-section .nspanel-group .nspanel-content .nsnspanel-content-inner {
    padding: 15px 15px 20px 15px;
    background: #fff;
    font-size: 13px;
    text-align: justify;
    border: 1px solid #e9ecef
}


.course-wrapper-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px
}

.course-main-wrapper.shop-sidebar-left .course-wrapper-inner {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse
}

.course-wrapper-inner .courses-holder {
    position: relative;
    width: 100%;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px
}


.courses-holder .courses-top-bar {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 1.875rem;
    padding: 1rem 1.25rem
}

.courses-holder .term-description {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 1.875rem;
    padding: 1rem 1.25rem
}

.courses-holder .courses-top-bar .courses-top-bar-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
}

.courses-holder .courses-top-bar .courses-top-bar-inner .courses-top-bar-left {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
}

.courses-holder .courses-top-bar .courses-top-bar-inner .courses-top-bar-left .woocommerce-result-count {
    margin-bottom: 0
}

.courses-holder .courses-top-bar .layout-switcher {
    margin-right: 1rem
}

@media (max-width:767.98px) {
    .courses-holder .courses-top-bar .layout-switcher {
        display: none
    }
}

.courses-holder .courses-top-bar .layout-switcher>a {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 2px;
    padding: .5rem .625rem;
    margin-right: .3125rem
}

.courses-holder .courses-top-bar .layout-switcher>a.active {
    background-color: #1e83f0;
    border-color: #1e83f0
}

.courses-holder .courses-top-bar .layout-switcher>a.active svg {
    fill: #fff
}

.courses-holder .courses-top-bar .layout-switcher>a svg {
    fill: #495057;
    width: 20px;
    height: 20px;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out
}


.nselementory-section .nscourse-section-title-elementory {
    margin: 0;
    padding: 5px 10px;
    display: flex;
    align-items: center;
}

.nselementory-section .nscourse-section-title-elementory.cursor-pointer {
    cursor: pointer
}

.nselementory-section .nscourse-section-title-elementory .far {
    padding: 4px 0 4px 10px;
    color: #7b868a
}

.nsarrowicon {
	    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: auto;
    margin-left: 12px;
    font-size: 25px;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    color: #bdbdbd;
}

.nselementory-section .nscourse-section-title-elementory img {
  margin-left: 15px;
  display: inline-block;
}

.nselementory-section .nscourse-section-title-elementory .nsgheadlinel {
    display: inline-block;
    margin-right: 7px;
    color: #111;
}
.nselementory-section .nscourse-section-title-elementory .nsgheadlinel span {
  font-size:18px;
  font-weight: 600;
}
.nselementory-section .nscourse-section-title-elementory .nsgheadlinel p {
  margin-bottom: 0;
}

@keyframes rotateIconnias {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(90deg) scale(0.5);
    }
    100% {
        transform: rotate(180deg) scale(1);
    }
}
@keyframes rotateIconbacknias {
    0% {
        transform: rotate(180deg) scale(1);
    }
    50% {
        transform: rotate(90deg) scale(0.5);
    }
    100% {
        transform: rotate(0deg) scale(1);
    }
}
.nscourse-section .nsarrowicon, 
.toggle_section .nsarrowicon, 
.toggle_lesson .nsarrowicon {
    animation: rotateIconbacknias 0.5s forwards;
    -webkit-animation: rotateIconbacknias 0.5s forwards; /* برای مرورگرهای قدیمی‌تر */
    -moz-animation: rotateIconbacknias 0.5s forwards;    /* برای مرورگرهای قدیمی‌تر */
    -ms-animation: rotateIconbacknias 0.5s forwards;     /* برای مرورگرهای قدیمی‌تر */
    -o-animation: rotateIconbacknias 0.5s forwards;      /* برای مرورگرهای قدیمی‌تر */
}

.nscourse-section.active .nsarrowicon, 
.toggle_section.active .nsarrowicon, 
.toggle_lesson.active .nsarrowicon {
    animation: rotateIconnias 0.5s forwards;
    -webkit-animation: rotateIconnias 0.5s forwards; /* برای مرورگرهای قدیمی‌تر */
    -moz-animation: rotateIconnias 0.5s forwards;    /* برای مرورگرهای قدیمی‌تر */
    -ms-animation: rotateIconnias 0.5s forwards;     /* برای مرورگرهای قدیمی‌تر */
    -o-animation: rotateIconnias 0.5s forwards;      /* برای مرورگرهای قدیمی‌تر */
}
.nselementory-section .nscourse-section {
	background: #fff;
    border: 1px solid #e9ecef;
	border-radius: 10px;
}


.nspanel-group.deactive {
    display: none;
}

/*panel content nias*/

.nspanel-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.nspanel-content.active {
  max-height: 1000px; /* Set a default max-height value */
}
.nscourse-section-title-elementory.cursor-pointer img, .nscourse-section-title-elementory img {
    max-height: 58px;
        max-width: 58px !important;
    margin-left: 15px;
    display: inline-block;
        height: auto!important;
}

.nselementory-section .nscourse-section .nspanel-group .nscourse-panel-heading .nspanel-heading-left .nstitle {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    flex-direction: column;
}
.nssubtitle{
    margin: 0;
}

.ns-icon-wrapper2 svg , .ns-icon-wrapper svg{
    width: fit-content;
}


/*private text*/

.ns-private-lesson {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px;
    border-radius: 30px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

/* حالت قفل شده (کاربر دسترسی نداره) */
.ns-private-lesson.locked {
    background-color: #ffe0e0;
    border: 1px solid #ffcccc;
    cursor: not-allowed;
}

.ns-private-lesson.locked i {
    color: #dc3545;
}

.ns-private-lesson.locked span {
    color: #dc3545;
    font-weight: 600;
}

/* حالت باز شده (کاربر دسترسی داره) */
.ns-private-lesson.unlocked {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.ns-private-lesson.unlocked i {
    color: #28a745;
}

.ns-private-lesson.unlocked span {
    color: #28a745;
    font-weight: 600;
}

.ns-private-lesson > span {
    position: absolute;
    top: -46px;
    width: max-content;
    background-color: #252525;
    padding: 2px 10px;
    border-radius: 11px;
    color: white !important;
    opacity: 0;
    transform: scale(0) rotate(45deg);
    transition: 0.5s;
    font-weight: normal !important;
}

.ns-private-lesson > span:before {
    content: "";
    position: absolute;
    bottom: -6px;
    right: calc(50% - 10px);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #252525;
}

.nscourse-panel-heading:hover .ns-private-lesson > span {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
.nscourse-panel-heading.active .ns-icon-wrapper i , .nscourse-panel-heading:hover .ns-icon-wrapper i{
    color:red;
}
.video-lesson-preview.preview-button {
    gap: 10px;
}
.nspanel-content-inner p{
margin: 0!important;
}
.nspanel-content-inner{
    padding: 10px;
}

/*spot player*/
.ns-spotlicense {
    background-color: #6611dd;
    color: white;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
}

textarea.nsspotlicense {
    width: 100%;
    border-radius: 10px;
 resize: none;
      
}

button.nsspotcopybtn {
    padding: 12px 24px;
    border-radius: 15px;
    border: none;
    font-family: unset;
    background-color: #2a2a2a;
    color: white;
    cursor: pointer;
}

p.ns-spotconfirm {
    text-align: center;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    color: #6611dd;
    font-weight: bold;
    font-size: 16px;
}

.ns-spotdlicon a svg {
    width: 50px;
    height: 50px;
}

.ns-spotdlicon a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    border: 1px solid #6611dd;
    border-radius: 15px;
}

.ns-spotdlicon {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}
p.ns-spotdltitle {
    width: 100%;
    text-align: center;
    padding: 5px;
    border-bottom: 3px solid #6611dd;
    margin-bottom: 20px;
    color: #6611dd;
    font-weight: bold;
}
/*fix load svg*/
.nsarrowicon svg , .nscourse-panel-heading svg{
    width: 1em;
    height: 1em;
    position: relative;
    display: block;
}

.nias-preview-tag{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    color: unset;
}
.nsdownload-button{
    color: white;
}

.nias-lesson-text {
    flex-direction: column;
    gap: 5px !important;
    align-items: flex-start !important;
}


ul.lessons_list {
    padding-right: 0;
}

.nias-left-head,
.nias-right-head,
.nias-left-head *:not(a),
.nias-right-head *:not(a) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.nias_course_section {
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.lesson_header img {
    width: 30px;
    height: 30px;
}


.section_content li:not(.lesson_content li) {
    list-style: none;
}

.section_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px;
    cursor: pointer;
    gap: 20px;
}

.section_title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.section_subtitle {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.section_content {
    padding: 10px;
    border-top: 1px solid #ddd;
}

.lesson_item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 10px;
}

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

.lesson_title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.lesson_content {
    margin-top: 10px;
    display: none;
}

button.toggle_section,
button.toggle_lesson {
    background-color: #0073aa;
    color: #fff;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
}

.lesson_header:hover span {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.nias-course-icon svg {
    width: 1em;
    height: 1em;
    position: relative;
    display: block;
}
.h_iframe-aparat_embed_frame {
    aspect-ratio: 16/9;
}

/* استایل لینک آزمون */
.nsexam-link-button {
    background-color: #ffa500;
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    line-height: normal;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nsexam-link-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.nsexam-link-button svg {
    fill: #fff;
    width: 1em;
    height: 1em;
}

.nsexam-link-button.gray {
    background-color: #bac2c5;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

.nsexam-link-button.gray:hover {
    opacity: 0.7;
    transform: none;
}

.nsexamlink-text {
    line-height: 1;
}

.nsexamlink-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* استایل متن دکمه دانلود */
.nsdownload-text {
    line-height: 1;
    margin-right: 5px;
}

/* استایل درس غیرفعال */
.nscourse-panel-heading.nsdisabled-lesson {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
    background-color: #e8e8e8 !important;
}

.nsdisabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.nsdisabled-text {
    background-color: #dc3545;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.5);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulseDisabled 2s ease-in-out infinite;
}

@keyframes pulseDisabled {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(220, 53, 69, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.7);
    }
}

.nsdisabled-lesson .nstitle,
.nsdisabled-lesson .nscourse-lesson-icon,
.nsdisabled-lesson .panel-heading-right {
    filter: grayscale(100%);
}

/* رسپانسیو برای تبلت */
@media only screen and (max-width: 991px) {
    .nselementory-section .nscourse-section .nspanel-group .nscourse-panel-heading {
        padding: 15px 10px;
    }
    
    .panel-heading-right {
        gap: 8px;
        flex-wrap: wrap;
    }
}

/* رسپانسیو برای موبایل */
@media only screen and (max-width: 768px) {
    /* تنظیم header اصلی */
    .nselementory-section .nscourse-section-title-elementory {
        padding: 10px;
        gap: 10px;
    }
    
    .nselementory-section .nscourse-section-title-elementory img {
        margin-left: 10px;
        max-height: 48px;
        max-width: 48px !important;
    }
    
    /* دکمه‌ها را زیر عنوان قرار بده */
    .nselementory-section .nscourse-section .nspanel-group .nscourse-panel-heading {
        flex-wrap: wrap;
        padding: 15px 10px;
    }
    
    .nspanel-heading-left {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .panel-heading-right {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        order: 2;
    }
    
    /* دکمه‌ها تمام عرض */
    .video-lesson-preview.preview-button,
    .nsdownload-button,
    .nsdownload-button.gray,
    .nsexam-link-button {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        padding: 12px 10px;
    }
    
    /* نمایش متن‌ها در موبایل */
    .nsexamlink-text,
    .nsdownload-text,
    .nsspanpreviewtext {
        display: inline-block !important;
        font-size: 14px;
    }
    
    /* ns-private-lesson هم تمام عرض */
    .ns-private-lesson {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        padding: 12px 10px;
        border-radius: 30px;
    }
    
    .ns-private-lesson.locked {
        background-color: #ffe0e0;
        border: 1px solid #ffcccc;
    }
    
    .ns-private-lesson.unlocked {
        background-color: #d4edda;
        border: 1px solid #c3e6cb;
    }
    
    /* تنظیم آیکون‌ها */
    .nscourse-lesson-icon {
        margin-left: 10px;
    }
    
    /* تنظیم عنوان درس */
    .nsstitlecourse {
        font-size: 15px !important;
    }
    
    .nssubtitle {
        font-size: 13px;
    }
    
    /* تنظیم badge */
    .nsbadge-item {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* رسپانسیو برای موبایل‌های کوچک */
@media only screen and (max-width: 480px) {
    .nselementory-section .nscourse-section-title-elementory {
        padding: 8px;
    }
    
    .nselementory-section .nscourse-section-title-elementory .nsgheadlinel .nstitleseson {
        font-size: 16px !important;
    }
    
    .nselementory-section .nscourse-section-title-elementory .nsgheadlinel .nssubtitle-lesson {
        font-size: 13px;
    }
    
    .nselementory-section .nscourse-section .nspanel-group .nscourse-panel-heading {
        padding: 12px 8px;
    }
    
    .nsstitlecourse {
        font-size: 14px !important;
    }
    
    .nssubtitle {
        font-size: 12px;
    }
    
    /* دکمه‌ها در موبایل کوچک */
    .video-lesson-preview.preview-button,
    .nsdownload-button,
    .nsdownload-button.gray,
    .nsexam-link-button {
        font-size: 13px;
        min-height: 40px;
        padding: 10px 8px;
    }
    
    .nsdisabled-text {
        font-size: 14px;
        padding: 10px 18px;
    }
}

/* ========================================
   استایل باکس دانلود جزوات
   ======================================== */
.ns-notes-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.ns-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.ns-notes-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.ns-notes-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ns-notes-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.ns-notes-button svg {
    fill: #fff;
    width: 18px;
    height: 18px;
}

.ns-notes-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* حالت قفل شده باکس */
.ns-notes-box.ns-notes-locked {
    opacity: 0.9;
}

.ns-notes-button.locked {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    cursor: not-allowed;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.ns-notes-button.locked:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.ns-notes-button:disabled {
    pointer-events: none;
}

/* ========================================
   استایل پاپ‌آپ دانلود جزوات
   ======================================== */
.ns-notes-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ns-notes-popup.active {
    display: flex;
    opacity: 1;
}

.ns-notes-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.ns-notes-popup-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ns-notes-popup-content h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.ns-notes-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #95a5a6;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.ns-notes-close:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
    transform: rotate(90deg);
}

.ns-notes-list {
    overflow-y: auto;
    max-height: calc(80vh - 150px);
    padding-left: 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* استایل اسکرول بار */
.ns-notes-list::-webkit-scrollbar {
    width: 8px;
}

.ns-notes-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.ns-notes-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.ns-notes-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* ========================================
   استایل آیتم‌های جزوه
   ======================================== */
.ns-note-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ns-note-item:hover {
    background-color: #fff;
    border-color: #667eea;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.ns-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.ns-note-icon svg,
.ns-note-icon i {
    fill: #fff;
    color: #fff;
    width: 24px;
    height: 24px;
}

.ns-note-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ns-note-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.ns-note-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    width: fit-content;
}

.ns-private-badge {
    background-color: #d4edda;
    color: #28a745;
    border: 1px solid #c3e6cb;
}

.ns-private-badge i {
    display: flex;
    align-items: center;
}

.ns-private-badge svg {
    fill: #28a745;
    width: 12px;
    height: 12px;
}

.ns-public-badge {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.ns-locked-badge {
    background-color: #ffe0e0;
    color: #dc3545;
    border: 1px solid #ffcccc;
}

.ns-locked-badge svg {
    fill: #dc3545;
    width: 12px;
    height: 12px;
}

.ns-note-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #4ece3d;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ns-note-download svg,
.ns-note-download i {
    fill: #fff;
    color: #fff;
    width: 18px;
    height: 18px;
}

.ns-note-item:hover .ns-note-download {
    transform: scale(1.1) rotate(10deg);
}

/* حالت قفل شده آیتم جزوه */
.ns-note-item.ns-note-locked {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.ns-note-item.ns-note-locked:hover {
    transform: none;
    box-shadow: none;
    border-color: #dee2e6;
    background-color: #f8f9fa;
}

.ns-note-item.ns-note-locked .ns-note-icon {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.ns-note-item.ns-note-locked .ns-note-download {
    background-color: #95a5a6;
}

.ns-note-item.ns-note-locked .ns-note-title {
    color: #6c757d;
}

/* ========================================
   رسپانسیو تبلت
   ======================================== */
@media only screen and (max-width: 991px) {
    .ns-notes-header {
        flex-direction: column;
        align-items: stretch;
    }

    .ns-notes-button {
        width: 100%;
        justify-content: center;
    }

    .ns-notes-popup-content {
        max-width: 90%;
        padding: 25px;
    }

    .ns-note-item {
        padding: 12px 15px;
    }

    .ns-note-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* ========================================
   رسپانسیو موبایل
   ======================================== */
@media only screen and (max-width: 768px) {
    .ns-notes-box {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .ns-notes-title {
        font-size: 16px;
        text-align: center;
    }

    .ns-notes-button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .ns-notes-popup-content {
        width: 95%;
        max-width: none;
        padding: 20px;
        max-height: 90vh;
        border-radius: 15px;
    }

    .ns-notes-popup-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }

    .ns-notes-close {
        top: 10px;
        left: 10px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }

    .ns-notes-list {
        gap: 10px;
        padding-left: 0;
    }

    .ns-note-item {
        padding: 12px 15px;
        gap: 12px;
        border-radius: 10px;
    }

    .ns-note-item:hover {
        transform: translateX(-3px);
    }

    .ns-note-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
        border-radius: 10px;
    }

    .ns-note-icon svg,
    .ns-note-icon i {
        width: 20px;
        height: 20px;
    }

    .ns-note-title {
        font-size: 14px;
    }

    .ns-note-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .ns-note-download {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .ns-note-download svg,
    .ns-note-download i {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   رسپانسیو موبایل کوچک
   ======================================== */
@media only screen and (max-width: 480px) {
    .ns-notes-box {
        padding: 12px;
        border-radius: 10px;
    }

    .ns-notes-title {
        font-size: 15px;
    }

    .ns-notes-button {
        padding: 10px 16px;
        font-size: 13px;
    }

    .ns-notes-popup-content {
        padding: 15px;
        max-height: 92vh;
    }

    .ns-notes-popup-content h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .ns-note-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .ns-note-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .ns-note-icon svg,
    .ns-note-icon i {
        width: 18px;
        height: 18px;
    }

    .ns-note-title {
        font-size: 13px;
    }

    .ns-note-badge {
        font-size: 10px;
        padding: 2px 8px;
    }

    .ns-note-download {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .ns-note-download svg,
    .ns-note-download i {
        width: 14px;
        height: 14px;
    }
}