html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1; /* يخلي المحتوى ياخد كل المساحة المتاحة */
}
footer {
  margin-top: auto; /* يخلي الفوتر دائمًا في أسفل الصفحة */
}
.font-ar {
    font-family: "Zain", sans-serif;
}
.mt-5 {
    margin-top: 1.25rem !important;
}
.font-en {
    font-family: 'Momo Trust Display', sans-serif;
}
 .hero-bg {
      background: linear-gradient(135deg, #f97316, #1e3a8a);
    }
    .glass-card {
      backdrop-filter: blur(12px);
      background: rgba(255, 255, 255, 0.15);
    }
body.no-scroll {
    overflow: hidden;
}

body.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

body.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* تلوين الأيام الماضية */
.fc-day-past {
    background-color: #f1f1f1 !important;
    opacity: 0.6;
    pointer-events: none;
}



.sidebar {
    background-color: #3a393f;
    color: white;
    min-height: 100vh;
}

.sidebar a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: #eee;
    transition: all 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: #e77d0d;
    color: white;
}

/* تخصيص الكاليندر */
.fc-day-past {
    background-color: #f1f1f1 !important;
    opacity: 0.6;
    pointer-events: none;
}

.btn-training {
    display: block;
    margin: 6px auto;
    padding: 6px 10px;
    background-color: #e77d0d;
    color: white;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.3s ease;
    width: 90%;
    text-align: center;
    font-weight: 800;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.btn-training:hover {
    background-color: #d36e09;
}

.fc-button {
    background: #e77d0d !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    margin: 0 5px !important;
}

.fc-button:hover {
    background: #e77d0d !important;
}

@media (max-width: 768px){
    .sidebar {
    min-height: auto;
}
  .logout-link {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* حجم التقويم و العناوين */
  .fc-toolbar-title {
    font-size: 1rem !important;
  }

  .fc-toolbar-chunk button {
    font-size: 0.8rem !important;
    padding: 5px 8px !important;
  }

  /* الخلايا في العرض الشهري */
  .fc-daygrid-day {
    min-height: 90px !important;
    position: relative;
  }

  /* زر عرض التمارين في الموبايل */
  .btn-training {
    width: 85%;
    font-size: 12px;
    padding: 10px;
    margin-top: 6px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e77d0d, #f09d43);
  }

  /* يجعل الضغط أسهل */
  .fc-daygrid-day-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* إخفاء النصوص الطويلة داخل الخلايا */
  .fc-daygrid-day-number {
    font-weight: bold;
    color: #333;
  }
}

/* ==================== تحسين العرض في التابلت ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .btn-training {
    font-size: 13px;
    padding: 8px 12px;
    width: 90%;
  }
}

.rotate-notice {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.rotate-box {
  max-width: 300px;
}

.rotate-box img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  animation: rotateIcon 2s infinite ease-in-out;
  text-align: center
}

.rotate-box p {
  font-size: 16px;
  line-height: 1.6;
}

@keyframes rotateIcon {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}

