:root{
--bg-body: rgb(215, 215, 215);
--text-primary: rgb(26, 26, 26);
--base-font-size: 16px;

--card-bg: rgb(255, 255, 255);
}
[data-theme="dark"]{
    --bg-body:#121212; 
    --text-primary:#e0e0e0;
    --card-bg: #1e1e1e;
}

.sun-icon {
    display: none;
}


[data-theme='dark'] .moon-icon {
    display: none;
    opacity: 0;
}


[data-theme='dark'] .sun-icon {
    opacity: 1;
    color: #ffca28;
}
[data-theme='dark'] .theme-btn {
    box-shadow: 0 0 15px rgba(255, 202, 40, 0.4);
    background: #2c2c2c;
    border: 0.5px solid yellow;
}
.theme-btn {
    background: rgba(96, 96, 96, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    width: 60px;
    height: 60px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 1px;
    top: 5px;
}
.mode-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: all 0.5s ease;
    opacity: 0;
}
#sun-img{
    top: 150%;
}
#moon-img{
    opacity: 1;
    color: #5d5d5d;
}

[data-theme="dark"] #sun-img { top: 50%; transform: translate(-50%, -50%) rotate(360deg); 
}
[data-theme="dark"] #moon-img { top: -50%; 
}
@font-face{
font-family: Byekan;
src: url('Byekan/Byekan/BYEKAN.ttf');
   }
@font-face{
font-family: nazanin;
src: url('Bnazanin/BNAZANB.ttf');
   }
   @font-face{
font-family: Vazirmatn-Bold;
src: url('ttf/Vazirmatn-Bold.ttf');
   }
   @font-face{
font-family: Vazirmatn-SemiBold;
src: url('ttf/Vazirmatn-SemiBold.ttf');
}
   @font-face{
font-family: IRANSansBold-Edit;
src: url('fontiransans/IRANSans-Edit.ttf');
}
   @font-face{
font-family: Vazirmatn-Regular;
src: url('ttf/Vazirmatn-Regular.ttf');
}
.body1{
background-color: var(--bg-body);
color: var(--text-primary);
transition: all 0.5s ease;
font-size: var(--base-font-size) !important;
}
h1, h2, h3, p, a, button, input, label, td, th ,div {
    font-size: calc(var(--base-font-size) * 0.9); /* متناسب‌سازی برای المان‌های مختلف */
}
h1 { font-size: calc(var(--base-font-size) * 2.5) !important; }
h2 { font-size: calc(var(--base-font-size) * 2) !important; }
.card{
    background-color: var(--card-bg);
}
 /* تنظیمات پایه برای حفظ ظاهر قبلی تو */
/* تنظیمات اختصاصی منو */

/* استایل Badge */
.badge-count {
display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background-color: #e41e3f;
    border-radius: 10px;
    margin-top: -42px;
    vertical-align: middle;
    margin-left: -13px;
}

/* اگر عدد بیشتر از 9 باشد */
.badge-count.small {
    min-width: 24px;
    font-size: 10px;
}

.meno-container {
    background-color: rgb(226, 226, 226) !important;
    border-bottom: 2px solid rgb(46, 138, 86);
    padding: 10px 0 !important;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2500;
}

.logo-text {
    font-family: 'IRANSansBold-Edit', sans-serif !important;
    color: rgb(46, 138, 86) !important;
    font-size: 22px !important;
}

/* جادوی نرم شدن باز و بسته شدن */
.collapsing {
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* استایل حالت گوشی */

.titr5{
    text-align: center;
    color: green;
    font-family: Vazirmatn-Bold;
    font-size: 48px;
    text-shadow: 0 13px 20px rgba(0, 0, 0, 0.3);
}
.p1{
    font-family: Vazirmatn-Regular;
text-align: center;
font-size: 24px;
color: gray;
font-style: normal;
}
.img_Site{
    width: 990px;
    height: 650px;
    border-radius: 15px;
    min-height: 100px;
    min-width: 300px;
    max-width: 990px;
    max-height: 650px;
}
.box1{
background-color: rgb(255, 255, 255);
    margin-left: 170px;
    float: left;
    text-align: center;
    width: 20%;
    height: 290px;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
 transition: 0.3s;
}
.boxs_img{
    border-radius: 10px;
}
.boxs_div2{
    font-family: vazirmatn-SemiBold;
    color: rgb(88, 88, 88);
    font-size: 19px;
}
.boxs_div1{
    font-family: Vazirmatn-Bold;
    font-size: 24px;
}
.box1:hover{
        box-shadow: 0 15px 15px rgba(0,0,0,0.3);
            transform: scale(1.10);
}
.box2{
    background-color: rgb(255, 255, 255);
    margin-left: 5px;
    margin: auto;
    text-align: center;
    width: 25%;
    height: 290px;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
      transition: 0.3s;
}
.box2:hover{
        box-shadow: 0 15px 15px rgba(0,0,0,0.3);
            transform: scale(1.10);
}
.box3{
    background-color: rgb(255, 255, 255);
    margin-top: -286px;
    margin-right: 120px;
    float: right;
    text-align: center;
    width: 25%;
    height: 290px;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
      transition: 0.3s;
}
.box3:hover{
        box-shadow: 0 15px 15px rgba(0,0,0,0.3);
            transform: scale(1.10);
}
.btn_start{
    display: block;
    width: 400px;
    margin: 0 auto;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, rgb(77, 77, 255), green);
    color: white;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 15px;
    padding-top: 15px;
    font-family: IRANSansBold-Edit;
      transition: 0.3s;
}
.btn_start:hover{
    transform: scale(1.10);
    box-shadow: 0 15px 15px rgba(0,0,0,0.3);
}
.p2{
    text-align: center;
    font-family: IRANSansBold-Edit;
    font-size: 25px;
    color: rgb(63, 63, 63);
}
.img_end{
display: flex;
justify-content: center;
background-color: rgb(239, 239, 239);
width: 100%;
margin-left: 20px;
}


::selection {
  background-color: rgb(27, 161, 27); /* رنگ پس‌زمینه سبز */
  color: white; /* رنگ متن سفید (اختیاری، برای خوانایی بهتر) */
}

/* برای مرورگرهای قدیمی‌تر که ممکنه ::selection رو پشتیبانی نکنند */
::-moz-selection {
  background-color: green;
  color: white;
}


body::-webkit-scrollbar {

  width: 14px; /* عرض نوار اسکرول */

}

body::-webkit-scrollbar-track {
  background: rgba(0, 128, 0, 0); /* رنگ پس‌زمینه نوار اسکرول */
  top: 30px;
}

body::-webkit-scrollbar-thumb {
  background: green; /* رنگ خود نوار اسکرول */
  border-radius: 6px; /* گرد کردن گوشه‌های نوار اسکرول */

}

body::-webkit-scrollbar-thumb:hover {
  background: rgb(0, 94, 0);
  cursor: grab;
}

body::-webkit-scrollbar-thumb:active {
  background: rgb(0, 76, 0);
  cursor: grabbing;
}



.text2{
    background-color: white;
    box-shadow: 0 15px 15px rgba(0,0,0,0.3);
    width: 600px;
    margin: auto;
    border-radius: 20px;
    padding-bottom: 5px;
    padding-top: 20px;
}
.col_Explanation{
    margin: auto;
  width: 75%;
    background-image: linear-gradient(to bottom, #adc2b9 50%, rgba(255,255,255,0) 0%);
    background-position: center;
    background-size: 2px 20px; 
    background-repeat: repeat-y;
}
.box_Explanation{
    background-color: white;
    height: 350px;
    border-radius: 30px;
    box-shadow: 0 12px 15px rgba(0,0,0,0.3);
}
.box_Explanation div{
    color: rgb(111, 111, 111);
    font-family: Vazirmatn-Regular;
    font-size: 25px;
}
.box_Explanation p{
color: green;
font-family: Vazirmatn-Bold;
font-size: 35px;
}
.box_Explanation img{
width: 60px;
height: 60px;
}
.box_Explanation_img_2_3{
    border-radius: 10px !important;
    margin-left: 20px !important;
    float: left !important;
    margin-top: -270px !important;
    width: 350px !important;
    height: 300px !important;
}
.box_Explanation_img_1{
    border-radius: 10px !important;
    margin-left: 20px !important;
    float: left !important;
    margin-top: -195px !important;
    width: 350px !important;
    height: 300px !important;
}
.box_Explanation_img_4{
    border-radius: 10px !important;
    margin-left: 20px !important;
    float: left !important;
    margin-top: -230px !important;
    width: 350 !important;
    height: 300px !important;
}
[data-theme="dark"] .box_Explanation, 
[data-theme="dark"] .box1, 
[data-theme="dark"] .box2, 
[data-theme="dark"] .box3,
[data-theme="dark"] .text1 {
    background-color: var(--card-bg);
    border: 1px solid #363636; 
}
[data-theme="dark"] .box_Explanation div, 
[data-theme="dark"] .p1 {
    color: var(--text-primary) !important;
}
[data-theme="dark"] .titr5 {
    color: #2f9c2f !important;
    text-shadow: 0px 0px 10px green;
}
/* takalif.php */
.inputs_task{
    width: 400px !important;
    margin:auto;
    border-radius: 25px;
    box-shadow: 0 12px 15px rgba(0,0,0,0.3);
}
.btn_sabt{
margin-top:55px;
margin: auoto;
padding-left: 60px;
padding-right: 60px;
padding-top: 10px;
padding-bottom: 10px;
background: linear-gradient(to right, #6A5ACD, #8A2BE2); /* بنفش متوسط به سمت بنفش آبی */
  color: white; /* متن سفید برای خوانایی عالی روی بنفش */
   /* کمی بزرگتر */
  border: none;
  border-radius: 10px; /* گردتر */
  cursor: pointer;
  font-size: 18px; /* فونت بزرگتر */
  font-weight: bold;
  transition: 0.4s;
  box-shadow: 0 5px 10px rgba(106, 90, 205, 0.4); /* سایه با رنگ بنفش */
}
.btn_sabt:hover{
    background: linear-gradient(to right, #6d56f1, #8a61db); /* بنفش روشن‌تر به سمت بنفش متوسط */
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(123, 104, 238, 0.5); /* سایه قوی‌تر و با رنگ غالب */
  color: white;
}
.labelmodal1{
margin-bottom: 10px;
}
.labelmodal2{
    margin-bottom: 10px;
}
.item_meno{
    margin-right: 40px;
    margin-top: 20px;
}
#simpleChart{
    height: 330px !important;
}
.mybooks{
display: flex;
justify-content: center;
gap: 15px;
padding: 20px;
flex-wrap: wrap;
}
.btn_nemoodar{
    width: 140px;
    height: 140px;
    background-color: #4a4a4a;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* فرستادن متن به پایین */
    align-items: center;
    padding-bottom: 15px;
    text-decoration: none !important;
    color: #3498db !important;
    font-family: Vazirmatn-SemiBold;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn_nemoodar:hover {
    border-color: #3498db;
    transform: translateY(-8px); /* پریدن دکمه به بالا */
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
    background-color: #555;
}
.btn_nemoodar.active {
    border: 4px solid #3498db;
    background-color: #3d3d3d;
}
.icon_nemoodar{
    margin-bottom: 20px;
}
.welcome-toast {
    position: fixed;
    right: -450px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-right: 5px solid #3498db;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 20px;
}

.welcome-toast.show {
    right: 30px; /* وقتی کلاس show اضافه شد، بیاید داخل صفحه */
}

.toast-content p {
    margin: 0;
    font-weight: bold;
    font-size: 18px;
}

.toast-content small {
    opacity: 0.7;
    font-size: 12px;
}

.dropdown-user {
    position: relative;
    display: inline-block;
}

/* ظاهر لینک اصلی نام کاربری */
.user-profile-link {
    cursor: pointer;
    font-weight: bold !important;
    color: #2e8a56 !important; /* رنگ سبز مشابه منوی شما */
}

/* باکس محتویات که در حالت عادی مخفی است */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--card-bg); /* هماهنگ با تم تاریک و روشن */
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 12px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}

/* استایل آیتم‌های داخل منو */
.dropdown-content a {
    color: var(--text-primary); /* هماهنگ با تم */
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: IRANSansBold-Edit; /* فونت منوی شما */
    transition: 0.3s;
}

/* تغییر رنگ هنگام رفتن موس روی آیتم‌ها */
.dropdown-content a:hover {
    background-color: rgba(46, 138, 86, 0.1);
    color: #2e8a56;
}

/* نمایش منو وقتی موس روی dropdown-user می‌رود */
.dropdown-user:hover .dropdown-content {
    display: block;
    animation: fadeInSlide 0.4s ease;
}

/* انیمیشن باز شدن نرم */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.edit-container {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
}

.edit-card {
    background: var(--card-bg);
    color: var(--text-primary);
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.512);
}
.edit-header {
    text-align: center;
    margin-bottom: 30px;
}
.profile-avatar {
    width: 80px;
    height: 80px;
    background: #2e8a56;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 15px;
}

.edit-input {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: Vazirmatn-SemiBold;
}
.disabled{
    opacity: 0.6;
    cursor: not-allowed;
}

.did{
    right: 90%;
    position: absolute;
    background: #ffffff00;
    border: none;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    color: #464646;
}

.edit-input.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.edit-input:focus-visible{
    border: none;
    outline: none;
}

.edit-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-save {
    background: #2e8a56;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    flex: 2;
    transition: 0.6s;
    font-family: Vazirmatn-Regular;
    font-size: 19px;
}
.btn-save:hover {
    background: #0b572c;
    transform: rotateX(336deg);
}
.btn-cancel {
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    transition: 0.6s;
}
.btn-cancel:hover {
    background: #af1100;
    transform: rotateX(336deg);
}
.alerts{
    font-family: Vazirmatn-SemiBold;
    font-size: 17px;
}
.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #2e8a56;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999; /* حتما عدد بزرگی باشد تا روی بقیه المان‌ها بیاید */
    display: none; /* توسط جاوااسکریپت تغییر می‌کند */
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: #3498db; /* تغییر رنگ به آبی موقع هاور */
    transform: scale(1.1);
}

/* انیمیشن برای ظاهر شدن */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.avatar-selection {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.avatar-item input {
    display: none; /* دکمه رادیویی مخفی شود */
}

.avatar-item img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.3s;
}

/* وقتی رادیو باتن انتخاب شد، استایل عکس تغییر کند */
.avatar-item input:checked + img {
    border-color: #2e8a56; /* رنگ سبز سایت شما */
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(46, 138, 86, 0.5);
}
.btn_upload{
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    font-family: Vazirmatn-SemiBold;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 15px 0 rgba(16, 185, 129, 0.39);
    width: 400px; /* اگر می‌خواهی تمام عرض باشد */
    margin-top: 15px;
    
}

/* افکت زمان نگه داشتن موس */
.btn_upload:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 14px 0 rgb(9, 98, 68);
}

/* افکت زمان کلیک کردن */
.btn_upload:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(46, 138, 86, 0.2);
}
.img_upload{
    /* border-radius: 10px;
    width: 1000px;
    height: 600px; */
    width: 100%; max-width: 550px; border-radius: 20px;
}
/* ظرف نگهدارنده */
.custom-upload-container {
    margin: 20px 0;
    text-align: center;
}
.hidden-input {
    display: none;
}
.custom-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--card-bg); /* هماهنگ با تم سایت شما */
    color: #2e8a56;
    border: 2px dashed #2e8a56;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'IRANSansBold-Edit', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.custom-upload-label:hover {
    background-color: #2e8a56;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(46, 138, 86, 0.2);
    border-style: solid;
}

.custom-upload-label svg {
    transition: transform 0.3s ease;
}
.custom-upload-label:hover svg {
    transform: scale(1.2);
}
.nav-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* کاملاً گرد */
    object-fit: cover; /* جلوگیری از کشیدگی عکس */
    margin-left: 8px;
    border: 1.5px solid #2e8a56; /* یک خط ظریف دور عکس با رنگ تم سایتت */
    vertical-align: middle;
}
.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%; /* کاملاً گرد */
    object-fit: cover; /* جلوگیری از کشیدگی عکس */
    margin-left: 8px;
    border: 2.5px solid #2e8a56; /* یک خط ظریف دور عکس با رنگ تم سایتت */
    vertical-align: middle;
}
.profile-img-svg {
    width: 100px;
    height: 100px;
    margin-left: 8px;
}
/* راه نما */
.my_accordion{
    width: 80%;
    margin: auto !important;
    border-radius: 10px;
}
/* رسپانسیو */
.custom-navbar {
    background-color: rgb(226, 226, 226) !important;
    border-bottom: 2px solid rgb(46, 138, 86);
    direction: rtl;
    width: 100%;
    z-index: 1000000000;
}

.logo-font {
    font-family: IRANSansBold-Edit !important;
    color: black !important;
    font-size: 22px !important;
}

.textmeno-new {
    font-family: 'IRANSansBold-Edit', sans-serif !important;
    color: rgb(46, 138, 86) !important;
    padding: 12px 13px !important;
    transition: 0.3s;
    margin-top: 15px;
    
}

.textmeno-new:hover {
    background-color: rgba(46, 138, 86, 0.1);
    border-radius: 8px;
}

.wallet2{
    background-color: #b5e4ff;
    padding: 5px;
    font-family: Vazirmatn-SemiBold;
}


/* جادوی نرم شدن انیمیشن */
.collapsing {
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.copyright_main{
    width: 100%;
    float: left;
    background-color: #17ad74; 
	height: 7%;
    padding-bottom: 5px;
    padding-top: 5px; 
    align-items: center;
    display: flex;
}
.copyright_main_sargarmi{
    width: 100%;
    float: left;
    background-color: #17ad74; 
	height: 3%;
    padding-bottom: 5px;
    padding-top: 5px; 
    align-items: center;
    display: flex;
}
.copy_text{
    font-family: IRANSansBold-Edit;
    font-weight: 700;
    margin-top: auto;
    margin-bottom: auto;
    width: 100%; 
    float: left;
    text-align: center; 
    color: #ffffff;   
    margin-left: 0px; 
    margin-right: 0px; 
}

/* ====== START books.php */

.col_row_button{
    text-align: center;
    margin-top: 5%;
}

.button_books{
    border: none;
    padding: 10px;
    border-radius: 10px;
    background-color: #10b981;
    color: white;
    transition: 0.3s;
    /* box-shadow: 0px 10px 7px gray; */
}
.button_books:hover{
    box-shadow: 0px 10px 7px rgba(128, 128, 128, 0.442);
    transform: scale(1.1);
}


.aitem {
    border: 2px solid gray;
    width: 43%;
    margin-right: auto;
    margin-left: auto;
    padding: 10px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40%;
}

.img_books {
    width: 25%;
    border-radius: 10px;
}

.content_left { /* یک کلاس جدید برای نگهداری عکس و متن */
    display: flex;
    align-items: center;
}

.btn_container { /* یک کانتینر برای دکمه‌ها */
    display: flex;
    gap: 10px; /* فاصله بین دکمه‌ها */
}


.btn_upload_books {
    border: 2px solid rgba(0, 139, 139, 0);
    padding: 7px;
    border-radius: 5px;
    background-color: darkcyan;
    color: white;
    transition: 0.4s;
    cursor: pointer; /* برای اینکه مشخص شود قابل کلیک است */
}

.btn_upload_books:hover {
    transform: translateY(-5px);
    background-color: white;
    color: darkcyan;
    border: 2px solid darkcyan;
}



.col_page{
    width: 100%;
    background-color: var(--card-bg);
    margin-top: -10px;
    /* height: 100%; */
}



/* ====== END books.php */

/* ====== START loader */

/* استایل‌های خود لودینگ رو که بالا گذاشتم، اینجا کپی کن */

/* این استایل برای مخفی کردن محتوا در ابتدا */
#page-content {
  display: none; /* فعلا مخفی */
  /* بقیه استایل‌های صفحه رو اینجا بذار */
}

/* استایل اصلی لودینگ */
.loader-container {
  position: fixed; /* تا روی همه چیز بمونه */
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* بالاتر از همه چی */
  transition: opacity 0.4s ease, visibility 0.4s; /* افکت محو شدن */
}

.loader-container.hidden { /* وقتی این کلاس رو گرفت، مخفی میشه */
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
  width: 90px;
  height: 90px;
}

.loader span {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top: 4px solid #38bdf8;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}

.loader span:nth-child(2) {
  width: 65px;
  height: 65px;
  top: 12.5px;
  left: 12.5px;
  border-top-color: #818cf8;
  animation-duration: 0.9s;
  animation-direction: reverse;
}

.loader span:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 25px;
  left: 25px;
  border-top-color: #f472b6;
  animation-duration: 0.7s;
}

.loading-text {
  color: white;
  font-size: 18px;
  font-family: IRANSansBold-Edit;
  letter-spacing: 2px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}


/* ====== END loader */

/* ====== START darkhast */

/* .col_darkhast{
    background-color: red;
    border: 2px solid gray;
} */
 
.box_darkhast{
    width: 70%;
    /* height: 300px; */
    border: 2px solid #acacac;
    margin: auto;
    border-radius: 22px;
    margin-top: 30px;
}

.header_darkhast{
    height: 60px;
    width: 100%;
    background-color: #c1c1c13b;
    border-radius: 17px 17px 0px 0px;
    border-bottom: 2px solid #acacac;
    text-align: right;
    overflow: hidden;
    direction: rtl;
    /* display: flex;
    align-items: center; */
}

.khrid{
    width: 80px;
    height: 100%;
    color: #4f4f4f;
    border: none;
    font-size: 20px;
    font-family: Vazirmatn-Regular;
    font-weight: 400;
    border-bottom: 4px solid blue;
    /* background-color: #83aff562; */
    height: 101%;
    /* color: #4747ff; */
}

.khrid:hover{
    cursor: pointer;
    background-color: rgba(56, 132, 255, 0.384);
}


.frosh{
    width: 153px;
    height: 100%;
    /* background-color: #e6e6e600; */
    /* color: #4f4f4f; */
    border: none;
    font-size: 20px;
    font-family: Vazirmatn-Regular;
    font-weight: 400;
    margin-right: -3px;
    margin-left: -3px;
    transition: 0.2s;
}

.frosh:hover{
    cursor: pointer;
    background-color: #c4c4c4;
}

.tabdil{
    width: 80px;
    height: 100%;
    /* background-color: #e6e6e600;
    color: #4f4f4f; */
    border: none;
    font-size: 20px;
    font-family: Vazirmatn-Regular;
    font-weight: 400;
    transition: 0.2s;
}

.tabdil:hover{
    cursor: pointer;
    background-color: #c4c4c4;
}

.col_matn_darkhast{
    background-color: white;
    border: 1px solid gray;
    width: 80%;
    margin: auto;
    font-family: Vazirmatn-Bold;
    padding: 10px;
    border-radius: 10px;
}

/* ====== END darkhast */

/* ===== DatePicker Styles ===== */
.date-input-wrapper {
    position: relative;
    display: inline-block;
}

.date-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 220px;
    text-align: center;
    cursor: pointer;
    background: #fff;
}

.calendar-popup {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 15px;
    width: 300px;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cal-header button {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.cal-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
}

.day-name {
    font-weight: bold;
    color: #888;
    font-size: 12px;
    padding: 5px;
}

.day {
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.day:hover { background: #e8f4fc; }
.day.selected { background: #3498db; color: white; }
.day.other-month { color: #ccc; }

.time-section {
    border-top: 1px solid #eee;
    margin-top: 15px;
    padding-top: 15px;
}

.time-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.time-num {
    width: 60px;
    padding: 8px;
    font-size: 18px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.time-sep {
    font-size: 24px;
    font-weight: bold;
    color: #888;
}

.btn-ok {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}






        
        .upload-container {
            max-width: 600px;
            margin: 50px auto;
            padding: 30px;
            background: #f5f5f5;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: none;  /* ✅ مخفی به صورت پیش‌فرض */
            font-family: 'Vazirmatn-Bold';
        }

        .upload-container.show {
            display: block;  /* ✅ نمایش وقتی کلاس show اضافه شود */
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .h2_up {
            text-align: center;
            color: #333;
        }
        
        .upload-area {
            border: 3px dashed #ccc;
            border-radius: 10px;
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 20px;
        }
        
        .upload-area:hover {
            border-color: #4CAF50;
            background: #e8f5e9;
        }
        
        .upload-area.dragover {
            border-color: #4CAF50;
            background: #c8e6c9;
        }
        
        input[type="file"] {
            display: none;
        }
        
        .preview-container {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 20px 0;
        }
        
        .preview-item {
            position: relative;
            width: 100px;
            height: 100px;
        }
        
        .preview-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
            border: 2px solid #ddd;
        }
        
        .remove-btn {
            position: absolute;
            top: -8px;
            right: -8px;
            width: 24px;
            height: 24px;
            background: #f44336;
            color: white;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 14px;
            line-height: 24px;
        }
        
        .submit-btn {
            width: 100%;
            padding: 15px;
            background: #4CAF50;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .submit-btn:hover {
            background: #45a049;
        }
        
        .submit-btn:disabled {
            background: #ccc;
            cursor: not-allowed;
        }
        
        .progress-bar {
            width: 100%;
            height: 20px;
            background: #e0e0e0;
            border-radius: 10px;
            margin-top: 15px;
            overflow: hidden;
            display: none;
        }
        
        .progress-bar .progress {
            height: 100%;
            background: linear-gradient(90deg, #4CAF50, #8BC34A);
            width: 0%;
            transition: width 0.3s;
        }
        
        .status-message {
            text-align: center;
            padding: 10px;
            margin-top: 15px;
            border-radius: 5px;
            display: none;
        }
        
        .status-message.success {
            background: #d4edda;
            color: #155724;
        }
        
        .status-message.error {
            background: #f8d7da;
            color: #721c24;
        }


.btn-ok:hover { 
    background: #219a52;
 }









 /* مودال ستاره‌دهی */
#ratingModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000000001;
    justify-content: center;
    align-items: center;
    font-family: 'Vazirmatn-Bold' !important;
}

#ratingModal.show {
    display: flex;
}

#ratingModal .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

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

#ratingModal .close {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

#ratingModal .close:hover {
    color: #333;
}

#ratingModal h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 22px;
}

/* ستاره‌ها */
.stars-container {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 25px;
}

.star-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s;
}

.star-item:hover {
    background: #f5f5f5;
}

.star-item .star {
    font-size: 40px;
    color: #ddd;
    transition: color 0.2s, transform 0.2s;
}

.star-item:hover .star,
.star-item.active .star {
    color: #FFD700;
    transform: scale(1.1);
}

/* برچسب زیر ستاره */
.star-item .label {
    margin-top: 5px;
    font-size: 11px;
    color: #666;
    min-height: 16px;
}

/* دکمه ثبت */
#submitRatingBtn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

#submitRatingBtn:hover:not(:disabled) {
    background: #45a049;
}

#submitRatingBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* پیام نتیجه */
#ratingMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

#ratingMessage.success {
    display: block;
    background: #d4edda;
    color: #155724;
}

#ratingMessage.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
}




.btn_select_student{
    border-radius: 50px;
    padding: 11px 48px;
    background: steelblue;
    border: 2px solid steelblue;
    color: white;
    transition: 0.2s;
}

.btn_select_student:hover{
    background: rgb(218, 228, 237);
    color: steelblue;
    border: 2px solid steelblue;
    box-shadow: 0px 2px 7px 5px #4996d64f;
}



/* تنظیمات مخصوص گوشی */
@media (max-width: 1199px) {
    /* .navbar-collapse {
        background-color: rgb(226, 226, 226);
        border-top: 1px solid rgba(0,0,0,0.1);
    } */
    
.navbar-nav {
    padding: 20px 0;
}
.nav-item {
    width: 100% !important;
    text-align: right !important; /* متن‌ها بره سمت راست */
}
.textmeno-new {
    width: 100% !important;
    display: block !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 20px;
}
.theme-btn{
    margin-right: 1%;
    top: 1px;
}
.img_Site{
    width: 70%;
    height: 55%;
}
.box1{
background-color: rgb(255, 255, 255);
    /* margin-left: 170px; */
    
    float: none;
    margin: auto !important;
    text-align: center;
    width: 430px;
    height: 290px;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
 transition: 0.3s;
}
.box1:hover{
        box-shadow: 0 15px 15px rgba(0,0,0,0.3);
        transform: scale(1.10);
}
.box2{
    background-color: rgb(255, 255, 255);
    /* margin-left: 5px; */
    float: none;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
    width: 430px;
    height: 290px;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
      transition: 0.3s;
}
.box2:hover{
        box-shadow: 0 15px 15px rgba(0,0,0,0.3);
            transform: scale(1.10);
}
.box3{
    background-color: rgb(255, 255, 255);
    float: none;
    margin: auto !important;
    text-align: center;
    width: 430px;
    height: 290px;
    border-radius: 20px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
      transition: 0.3s;
}
.box3:hover{
        box-shadow: 0 15px 15px rgba(0,0,0,0.3);
            transform: scale(1.10);
}
.btn_start{
    display: block;
    width: 90%;
    margin:auto;
    border: none;
    border-radius: 40px;
    background: linear-gradient(45deg, rgb(114, 114, 255), rgb(0, 139, 0));
    color: white;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 25px;
    padding-top: 25px;
    font-family: IRANSansBold-Edit;
    font-size: 25px;
    transition: 0.3s;
}
.btn_start:hover{
    transform: scale(1.10);
    box-shadow: 0 15px 15px rgba(0,0,0,0.3);
}
.box_Explanation div{
    color: rgb(111, 111, 111);
    font-family: Vazirmatn-Regular;
    font-size: 90%;
}
.box_Explanation p{
color: green;
font-family: Vazirmatn-Bold;
font-size: 110%;
}
.box_Explanation img{
width: 6%;
height: 14%;
}
.box_Explanation_img_2_3{
    border-radius: 10px !important;
    margin-left: 18px !important;
    float: left !important;
    margin-top: -180px !important;
    width: 326px !important;
    height: 267px !important;
}
.box_Explanation_img_1{
    border-radius: 10px !important;
    margin-left: 29px !important;
    float: left !important;
    margin-top: -137px !important;
    width: 326px !important;
    height: 267px !important;
}
.box_Explanation_img_4{
    border-radius: 10px !important;
    margin-left: 20px !important;
    float: left !important;
    margin-top: -157px !important;
    width: 326px !important;
    height: 267px !important;
}
}