html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  text-align: right !important;
  /* font-family: "cai"; */
  font-weight: normal;
}

body > #footer {
  margin-top: auto;
}

/* Start profile page */

.student-profile {
  margin-top: 110px;
  margin-bottom: 50px;
}

.part1-student-profile {
  background: var(--light-color);
}

/* الحاوية الأساسية */
.main-profile-wrapper {
  /* background: var(--third-color); */
  /* border-radius: 20px; */
  /* padding: 30px; */
  /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); */
  /* max-width: 900px; */
  /* margin: 0 auto; */
}

/* قسم الصورة والترحيب */
.profile-header-section {
  display: flex;
  text-align: right;
  margin-bottom: 40px;
  padding: 20px 0;

}

.user-img-container {
        /* position: relative; */
        width: 190px;
        height: 190px;
        margin: 0 auto;
        border-radius: 50px;
        border: 4px solid var(--main-color);
        overflow: hidden;
      }



@media (max-width: 767px) {
  .user-img-container {
    width: 260px;
    height: 260px;
  }
}

.user-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--white-color);
}


.welcome-student {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

/* الاسم */
.welcome-student h3 {
  font-family: "zanjabeel";
  font-weight: 900;
  color: var(--six-color);
  font-size: 28px;
  margin-bottom: 15px;
}

/* الوصف */
.welcome-student p {
  font-family: "IBM Plex Arabic";
  color: var(--gary-color);
  font-size: 17px;
  line-height: 1.8;
  max-width: 600px;
  margin: 0;
}

/* موبايل */
@media (max-width: 768px) {
  .welcome-student h3 {
    font-size: 24px;
  }

  .welcome-student p {
    font-size: 15px;
  }

  .user-img-container {
    margin-bottom: 20px;
  }
}

.change-photo-btn {
  position: absolute;
  bottom: -10px;
  right: 45px;
  background: var(--main-color);
  color: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.highlight-text {
  color: var(--secondry-color);
}

/* النقاط */
.points-card {
  background: var(--main-color);
  color: #fff;
  padding: 20px;
  border-radius: 20px;
}

.points-card h2 {
  font-size: 28px;
  font-weight: bold;
}

/* الرانك */
.rank-box {
  background: rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 15px;
  text-align: center;
}

.rank-box span {
  font-size: 22px;
  font-weight: bold;
}


/* كارت المساعدة */
.help-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shdow-light-color);
}

.help-card h4 {
  color: var(--four-color);
}

.help-card p {
  color: var(--gary-color);
}

/* زر */
.btn-outline-main {
  border: 2px solid var(--main-color);
  color: var(--main-color);
}

.btn-outline-main:hover {
  background: var(--main-color);
  color: #fff;
}


.info-card-student {
  background: var(--white-color);
  padding: 15px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  transition: 0.3s;
  border: 1px solid transparent;
  box-shadow: 0 4px 10px 0 var(--shdow-light-color);
  margin-bottom: 25px;
}

.info-card-student:hover {
  border-color: var(--secondry-color);
  transform: translateY(-5px);
}

.card-icon-student {
  width: 45px;
  height: 45px;
  background: #fff;
  color: var(--main-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-left: 15px;
}

.card-details label {
  font-family: "IBM Plex Arabic";

  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 2px;
}

.card-details span {
  font-family: "IBM Plex Arabic";
  font-weight: bold;
  color: var(--black-color);
  font-size: 0.95rem;
}

/* تصميم المودال للقص */
.custom-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  max-width: 450px;
  margin: 50px auto;
  border-radius: 15px;
  padding: 20px;
}

.img-crop-container {
  width: 100%;
  max-height: 350px;
  margin-bottom: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.btn-confirm {
  background: var(--main-color);
  color: #fff;
  border: none;
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-cancel {
  background: #eee;
  border: none;
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.info-card {
  padding: 10px;
  background: var(--white-color);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  height: 100%;
}

@property --progress {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.icon-circle {
  width: 120px; /* حدد عرض ثابت للدائرة */
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    var(--secondry-color) calc(var(--progress) * 1%),
    transparent 0
  );
  padding: 5px;
  animation: progressAnimation 1.5s ease-out forwards;
  transition: --progress 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes progressAnimation {
  from {
    --progress: 0;
  }
}

.img-icon {
  background: var(--white-color); /* لون خلفية الأيقونة من الداخل */
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--black-color); /* البوردر الأسود اللي إنت عامله */
}

.icon-circle img {
  padding: 30px;
}

.stats {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 5px;
}

.done,
.total {
  display: flex;
  justify-content: space-between !important;
  align-items: center;
}

.done p,
.total p {
  font-weight: 700;
  margin-bottom: 0px;
  font-size: 14px;
  text-align: right;
}

.total p {
  color: var(--main-color);
}

.number-done {
  font-size: 14px;
  background: var(--black-color);
  border-radius: 30px;
  padding: 0px 10px;
  color: var(--white-color);
}

.number-total {
  font-size: 14px;
  background: var(--third-color);
  border-radius: 30px;
  padding: 0px 10px;
  color: var(--black-color);
}

.word-progress {
  text-align: center;
}

.word-progress p {
  font-weight: 700;
  margin-bottom: 0px;
  font-size: 14px;
  text-align: right;
}

.number-progress {
  content: calc(var(--progress) * 1%);
  color: var(--main-color);
  font-size: 30px;
  font-weight: 700;
}

/* Dark Mode Overrides for Profile Page */
body.dark .part1-student-profile {
  background: var(--five-color);
}

body.dark .welcome-student h3 {
  color: var(--white-color);
}

body.dark .welcome-student p {
  color: var(--light-color);
}

body.dark .points-card {
  background: var(--five-color);
  border: 1px solid var(--secondry-color);
}

body.dark .help-card {
  background: var(--five-color);
  box-shadow: 0 5px 15px var(--shdow-dark-color);
}

body.dark .help-card h4 {
  color: var(--white-color);
}

body.dark .help-card p {
  color: var(--light-color);
}

body.dark .info-card-student {
  background: var(--five-color);
  box-shadow: 0 4px 10px 0 var(--shdow-dark-color);
}

body.dark .card-icon-student {
  background: var(--six-color);
  color: var(--white-color);
}

body.dark .card-details label {
  color: var(--light-color);
}

body.dark .card-details span {
  color: var(--white-color);
}

body.dark .info-card {
  background: var(--five-color);
}

body.dark .img-icon {
  background: var(--five-color);
  border-color: var(--white-color);
}

body.dark .done p,
body.dark .total p,
body.dark .word-progress p {
  color: var(--white-color);
}

/* End profile page */
