/* Responsiveness for Mobile Screens */
@media (max-width: 768px) {
  .main-content-wrapper {
    padding: 10px !important;
  }

  .autad-container {
    padding: 10px !important;
  }

  .autad-card .card-body {
    padding: 10px !important;
  }

  .topbar-autad {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    text-align: center;
  }

  .toggle-buttons-autad {
    justify-content: center !important;
  }

  .font-slider-container {
    justify-content: center !important;
    margin-left: 0 !important;
  }

  .arabic-content {
    font-size: 1.5rem !important;
    text-align: center;
  }

  .latin, .translation {
    font-size: 0.85rem !important;
    text-align: center;
  }

  .sidebar-container {
    margin-top: 20px;
  }
}



/* Scroll untuk submenu panjang */
li.menu-item-has-children > ul.sub-menu {
  max-height: 300px;       /* Boleh disesuaikan */
  overflow-y: auto;
  overflow-x: hidden;
  position: absolute;
  z-index: 9999;
  background-color: #fff;  /* agar tidak transparan */
  border: 1px solid #ddd;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* POP UP */
/* CSS Khusus untuk Popup Menarik */
  .bg-light-purple { background-color: #f3e5ff; color: #6e48aa; }
  .bg-light-blue { background-color: #e3f2fd; color: #1976d2; }
  .bg-light-green { background-color: #e8f5e9; color: #388e3c; }
  .bg-light-orange { background-color: #fff3e0; color: #fb8c00; }
  .bg-light-pink { background-color: #fce4ec; color: #d81b60; }
  
  .btn-purple {
    background: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
    color: white;
    border: none;
  }
  
  .benefits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255,255,255,0.7);
  }
  
  .benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }
  
  .benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
  }
  
  .benefit-text h6 {
    margin-bottom: 2px;
    color: #333;
  }
  
  .text-purple {
    color: #6e48aa !important;
  }
  /* END POP UP */

/* Style untuk popup Google Calendar */
/* Calendar Modal Custom Styles */
#calendarModal .modal-dialog {
  max-width: 95%;
  height: 85vh;
  margin: 2.5vh auto;
}

#calendarModal .modal-content {
  height: 100%;
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

#calendarModal .modal-body {
  padding: 0;
  overflow: hidden;
}

#calendarModal iframe {
  border: none;
  min-height: 70vh;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #calendarModal .modal-dialog {
    height: 90vh;
    margin: 5vh auto;
    max-width: 98%;
  }
  
  #calendarModal .modal-header {
    padding: 0.75rem;
  }
  
  #calendarModal .modal-title {
    font-size: 1.1rem;
  }
  
  #calendarModal .btn-close {
    font-size: 0.8rem;
  }
}

/* Mobile Landscape Optimization */
@media (max-width: 992px) and (orientation: landscape) {
  #calendarModal .modal-dialog {
    height: 95vh;
  }
  
  #calendarModal iframe {
    min-height: 80vh;
  }
}

/* Animasi muncul halus */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}

/* Tombol khusus */
.btn-calendar {
  background-color: var(--bs-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
}

.btn-calendar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* /Style untuk popup Google Calendar */