: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;
    transform: translate(-50%, -150%) rotate(90deg);
    opacity: 0;
}


[data-theme='dark'] .sun-icon {
 transform: translate(-50%, -50%) rotate(360deg);
    opacity: 1;
    color: #ffca28;
}
[data-theme='dark'] .theme-btn {
    box-shadow: 0 0 15px rgba(255, 202, 40, 0.4);
    background: #2c2c2c;
}
.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: 50px;
    top: 8px;
}
.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 {
    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);
}

/* ====== 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 */

.siznazanin{
    font-size: 30px;
}
.logo{
    width: 60px;
    border-radius: 100%;
}
.meno{
    background-color: rgb(226, 226, 226);
    position: fixed;
    width: 100%;
    z-index: 2;
}
.textmeno{
    color: rgb(46, 138, 86);
    font-size: 23px;
    padding-top: 24px;
    font-family: IRANSansBold-Edit;
}
.textmeno:hover{
   background-color: rgb(189, 189, 189);
   color: rgb(46, 138, 86);;
}
.titr5{
    text-align: center;
    color: green;
    font-family: Vazirmatn-Bold;
    font-size: 48px;
    font-style: bold;
}
.p1{
    font-family: Vazirmatn-Regular;
text-align: center;
font-size: 24px;
color: gray;
font-style: normal;
}
.img_Site{
    width: 950px;
    height: 650px;
    border-radius: 15px;
}
.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;

}
.box1:hover{
        box-shadow: 0 15px 15px rgba(0,0,0,0.3);
            transform: scale(1.10);
    box-shadow: 0 15px 15px rgba(0,0,0,0.3);
}
.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);
    box-shadow: 0 15px 15px rgba(0,0,0,0.3);
}
.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);
    box-shadow: 0 15px 15px rgba(0,0,0,0.3);
}
.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;
}
.img_end{
display: flex;
justify-content: center;
background-color: rgb(239, 239, 239);
width: 100%;
margin-left: 20px;
}
.img_end_nemoodar{
display: flex;
text-align: center;
    justify-content: center;
    background-color: rgb(239, 239, 239);
    width: 107%;
    margin-right: -112px;
}
.text1{
    background-color: white;
    box-shadow: 0 15px 15px rgba(0,0,0,0.3);
    width: 600px;
    margin: auto;
    border-radius: 20px;
    padding-bottom: 10px;
    padding-top: 10px;
}
.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);
}

[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;
    /* takalif.php */
}
.inputs_task{
    width: 400px !important;
    margin:auto;
    border-radius: 25px;
    box-shadow: 0 12px 15px rgba(0,0,0,0.3);
}
.inputs_task_3{
    width: 500px !important;
    margin:auto;
    border-radius: 24px !important;
    box-shadow: 0 12px 15px rgba(0,0,0,0.3);
}
.labels2{
    margin-left: 55%;
}
.labels3{
    margin-left: 49%;
}
.labels4{
    margin-left: 38%;
}
.labelmodal1{
margin-bottom: 10px;
}
.labelmodal2{
    margin-bottom: 10px;
}
.btn_school{
    background: linear-gradient(45deg, rgb(35, 196, 255), rgb(12, 74, 97));
    margin-top: 15px;
    padding-left: 220px;
    padding-right:220px;
    height: 60px;
    border-radius: 17px;
    border: none;
    color: white;
     transition: 0.3s;
}
.btn_school:hover{
box-shadow: 0 15px 15px rgba(0,0,0,0.3);
transform: scale(1.10);
}
.btn_schoo2{
    background: linear-gradient(45deg, rgb(0, 250, 217), rgb(64, 83, 90));
    margin-top: 15px;
    padding-left: 220px;
    padding-right:220px;
    height: 60px;
    border-radius: 17px;
    border: none;
    color: white;
     transition: 0.3s;
}
.btn_school2:hover{
box-shadow: 0 15px 15px rgba(0,0,0,0.3);
transform: scale(1.10);
}
.item_meno{
    margin-right: 300px;
    margin-top: 20px;
}
.chart_style{
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    height: 360px;
    width: 720px !important;
    margin-right: 160px;
}
#simpleChart{
    height: 330px !important;
    /* width: 700px !important;
    margin-right: -10px; */
}
.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;
}
.alerts{
    font-family: Vazirmatn-SemiBold;
    font-size: 17px;
}


.btn_nemoodar.active {
    border: 4px solid rgb(52, 152, 219);
    background-color: #3d3d3d;
}
.icon_nemoodar{
    margin-bottom: 20px;
}
.tamas{
    font-family: IRANSansBold-Edit !important;
    font-size: 100%  !important;
}
.copyright_main{
    width: 100%;
    float: left;
    background-color: #17ad74; 
	height: 7%;
    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; 
}