/*new stuffs*/
.sound-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9999;
}

.sound-dropdown {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #222;
  border: 1px solid #555;
  min-width: 100px;
  border-radius: 5px;
}

.mode-dropdown-container {
  position: relative;
  display: inline-block;
  margin-left: 10px;
}

.sort-btn {
  position: absolute;
  right: 101px;
  top: 1px;
}

.mode-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #222;
  border: 1px solid #555;
  border-radius: 5px;
  min-width: 100px;
  z-index: 9999;
}

.mode-item {
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
}

.mode-item:hover {
  background-color: #333;
}

/* لو أردت إبراز الوضع المختار */
.mode-item.selected {
  background-color: #0f0;
  color: #141414;
}

.sound-dropdown .dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
}

.sound-dropdown .dropdown-item:hover {
  background-color: #333;
}

/* Burger Menu Styles */
.burger-menu-btn {
  display: none;
  background-color: #005000;
  color: #e8e6e3;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  top: 10px;
  right: 10px;
  z-index: 10000;
}

.burger-menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: #222;
  border: 1px solid #555;
  border-radius: 5px;
  min-width: 150px;
  z-index: 9999;
  padding: 10px;
}

.burger-menu button,
.burger-menu a button {
  display: block;
  width: 100%;
  margin: 5px 0;
  text-align: center;
}

.burger-menu .mode-dropdown-container {
  display: block;
  margin: 5px 0;
  width: 100%;
}

.burger-menu .mode-dropdown {
  position: relative;
  top: 5px;
  width: 100%;
}

.burger-menu #soundBtn {
  margin: 5px 0;
}

.fa-solid.fa-bars {
  position: absolute;
  top: 12px;
  left: 10px;
}

/* wnd of new stuffs */

body {
  direction: rtl;
  text-align: right;
  background-color: #141414;
  font-family: "Cairo";
}

.todo-container {
  margin-top: 50px;
  text-align: center;
}

#taskInput {
  padding: 18px;
  margin-right: 10px;
  font-size: 16px;
  border-radius: 30px;
  background-color: #121212;
  border: solid #8c8273;
  color: #e8e6e3;
}
#taskInput:focus {
  outline: none;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #181a1b;
  margin: 5px 0;
  border-radius: 5px;
  color: #e8e6e3;
  position: relative;
}

span.task-time {
  margin-top: 2px;
  cursor: pointer;
  position: absolute;
  right: 24%;
}

span.task-name {
  margin-top: 2px;
}

button {
  background-color: #005000;
  color: #e8e6e3;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 30px;
}

button:hover {
  background-color: #141414;
}

button.add-task {
  margin-right: 7px;
}

button.add-task:hover {
  background: #4caf50;
}

/* الدائرة */
.timer-circle {
  position: relative;
  border-radius: 50%;
  width: 350px;
  height: 350px;
  margin: 20px auto;
  background: #202325;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 62px;
  color: white;
  border: 8px solid #8c8273;
}

/* النص في منتصف الدائرة */
#timeDisplay {
  pointer-events: none;
}

/* أزرار + و - ، مخفية افتراضيًا */
.adjust-btn {
  display: none;
  position: absolute;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  text-align: center;
  line-height: 40px;
}

/* زر + على يمين */
.plus-btn {
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
}

/* زر - على يسار */
.minus-btn {
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
}

/* زر الإعادة لصوت القرآن */
.reset-quran-btn {
  margin-left: 8px;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 14px;
}
.quran-item:hover .reset-quran-btn {
  display: inline-block;
}

/* أزرار تتلون عند الوقوف */
.adjust-btn:hover {
  background-color: #4caf50;
}

/* إظهار الأزرار إذا التايمر يعمل */
.timer-circle.is-running:hover .adjust-btn {
  display: block;
}

.timer-container {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto;
  margin-top: 41px;
  transition: all 0.3s;
}

.timer-container:hover {
  transform: translateY(+1%) scale(1.05);
  .pause-btn {
    display: block;
  }
  .finish-button {
    display: block;
  }
}

.timer-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #202325;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3em;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  font-size: 62px;
}

.pause-btn {
  position: absolute;
  bottom: 17%;
  left: 47%;
  transform: translateX(-50%);
  padding: 12px 30px;
  font-size: 1.2em;
  background-color: #005000;
  color: #e8e6e3;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  display: none;
}

.pause-btn.paused {
  background-color: #6f0000;
  color: #e8e6e3;
}

.pause-btn.paused:hover {
  background-color: #6f0000;
  color: #e8e6e3;
}

.pause-btn.continue {
  background-color: #005000;
  color: #e8e6e3;
}

.pause-btn.continue:hover {
  background-color: #45a049;
}

#promptCancelBtnForBreak,
#promptCancelBtnForEdit,
#promptCancelBtnForAdjusment,
#promptCancelBtn {
  background-color: #6f0000;
  color: #e8e6e3;
}

.pause-btn:hover {
  background: #4caf50;
  transform: translateX(-50%) scale(1.05);
}

.finish-button {
  position: absolute;
  bottom: 0%;
  left: 47%;
  transform: translateX(-50%);
  padding: 12px 30px;
  font-size: 1.2em;
  background-color: #6f0000;
  color: #e8e6e3;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  display: none;
}

.finish-button:hover {
  background: #ff4757;
  transform: translateX(-50%) scale(1.05);
}

.delete-btn {
  background-color: #6f0000;
  color: #e8e6e3;
}

.delete-btnS {
  position: absolute;
  left: 1%;
  background-color: #6f0000;
  color: #e8e6e3;
}
.delete-btnS:hover {
  background-color: #e03e4e;
}

.priority-text {
  font-weight: bold;
  position: absolute;
  left: 40%;
}

.priority-text.urgent-important {
  color: #b71c1c;
}
.priority-text.urgent-not-important {
  color: #ff9800;
}
.priority-text.not-urgent-important {
  color: #009688;
}
.priority-text.not-urgent-not-important {
  color: #9e9e9e;
}

/* تنسيق أزرار الأولوية */
.priority-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  align-items: center;
}

/* زر الديدلاين */
.deadline-btn {
  background-color: #444;
  color: #fff;
  border-radius: 20px;
  padding: 6px 10px;
  margin: 2px;
  font-size: 13px;
  position: absolute;
  right: 37%;
}

/* GIF */
#breakGif1 {
  position: absolute;
  bottom: 333px;
  right: 188px;
  width: 368px;
  height: auto;
  z-index: 1000;
  display: none;
}
#breakGif2 {
  position: absolute;
  bottom: 333px;
  left: 188px;
  width: 368px;
  height: auto;
  z-index: 1000;
  display: none;
}

.task-name,
.task-time {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 250px;
}

.completed-task {
  text-decoration: line-through;
  color: gray;
}
/* تنسيق التقويم ليظهر في وسط الشاشة */
#calendarModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #181a1b;
  padding: 20px;
  border-radius: 10px;
  z-index: 10000;
}

.start-btnS {
  position: absolute;
  right: 70%;
}
.start-btnS:hover {
  background: #4caf50;
}

.start-btn {
  display: none;
}

/* Modal overlay (dark background) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal box */
.modal {
  background-color: #181a1b;
  color: #e8e6e3;
  border-radius: 8px;
  padding: 20px;
  min-width: 300px;
  text-align: center;
}

/* Input field in prompt modal */
#promptInput,
#promptInputForBreak {
  width: 80%;
  padding: 8px;
  margin: 10px 0;
  background-color: #121212;
  border: solid #8c8273;
  color: #e8e6e3;
  border-radius: 30px;
}
#promptInput:focus,
#promptInputForBreak:focus {
  outline: none;
}

#promptModalForAdjusment input {
  width: 40%;
  padding: 8px;
  margin: 10px 0;
  background-color: #121212;
  border: solid #8c8273;
  color: #e8e6e3;
  border-radius: 30px;
}
#promptModalForAdjusment input:focus {
  outline: none;
}

#promptInputForEdit:focus {
  outline: none;
}
#promptSelectForEdit:focus {
  outline: none;
}

/* Buttons in prompt modal */
.modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

/* تنسيق مودال التنبيه العام */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.custom-modal {
  background-color: #181a1b;
  border-radius: 8px;
  padding: 20px 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: #e8e6e3;
}
.custom-modal-message {
  font-size: 16px;
  margin-bottom: 20px;
}
.custom-modal-buttons {
  display: flex;
  justify-content: space-between;
}
.custom-modal-button {
  background-color: #3d8c40;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}
.custom-modal-button:hover {
  background-color: #45a049;
}
#customModalCancelBtn {
  background-color: #ff4757;
}
#customModalCancelBtn:hover {
  background-color: #e03e4e;
}

/* الصوت */
#hero {
  opacity: 0;
  width: 1px;
  height: 1px;
}

/* زر "حذف الكل" */
.clear {
  left: -1409px;
  top: -37px;
  background-color: #6f0000;
  color: #e8e6e3;
  display: none;
  margin-bottom: 20px;
  margin-top: 21px;
}
.clear:hover {
  background-color: #e03e4e;
}

/* عنصر تراكمي يمثل تعبئة المهمة */
.progress-overlay {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  pointer-events: none;
  z-index: 0;
  transition: width 0.2s linear;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.edit-btn {
  background-color: #1b4958;
  color: #e8e6e3;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 30px;
  position: absolute;
  left: 13%;
  top: 20%;
}
.edit-btn:hover {
  background-color: #1c6e89;
}

footer {
  background-color: #141414;
  padding: 0px;
  text-align: center;
  margin-top: 187px;
  color: #fff;
  font-family: "Cairo", sans-serif;
  border-top: 1px solid #444;
}

footer p {
  margin: 0;
  line-height: 1.6;
}

footer a {
  color: #4caf50;
  text-decoration: none;
  font-weight: bold;
}
footer a:hover {
  color: #45a049;
}

@media (max-width: 600px) {
  footer {
    padding: 15px;
  }
  footer p {
    font-size: 14px;
  }
}

/* استجابات سابقة - نفس الموجود عندك */
@media only screen and (max-width: 785px) {
  #taskList li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    height: 130px;
  }
  .deadline-btn {
    position: absolute;
    right: 47%;
    top: 65%;
  }
  .buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  .start-btnS,
  .delete-btnS,
  .edit-btn {
    position: static;
    margin: 5px 0;
  }
  span.task-name {
    position: static !important;
    width: auto;
    margin: 5px 0;
    text-align: center;
  }
  span.task-time {
    position: static;
    margin: 5px 0;
    text-align: center;
    cursor: pointer;
  }
  .priority-text {
    width: auto;
    margin: 4px 20px;
    text-align: center;
    top: 10px;
  }
  .priority-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 5px;
  }
  .priority-btn {
    flex-basis: 37%;
    box-sizing: border-box;
    font-size: 14px;
  }
  .breakGif1 {
    display: none;
  }
  .breakGif2 {
    display: none;
  }
}

@media only screen and (max-width: 487px) {
  .priority-btn {
    flex-basis: 61%;
    box-sizing: border-box;
    font-size: 14px;
  }
  .breakGif1,
  .breakGif2 {
    display: none;
  }
}

@media only screen and (max-width: 362px) {
  .breakGif1,
  .breakGif2 {
    display: none;
  }
}
@media only screen and (max-width: 363px) {
  .add-task {
    position: absolute;
    top: 589px;
    left: 24px;
  }
}

/* Mobile Responsive Styles for Burger Menu */
@media only screen and (max-width: 768px) {
  .burger-menu-btn {
    display: block;
  }

  .sound-menu > button:not(.burger-menu-btn),
  .sound-menu > a,
  .sound-menu > .mode-dropdown-container {
    display: none;
  }

  .burger-menu {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .burger-menu button {
    margin: 8px 0;
  }

  /* Adjust dropdown positioning for mobile */
  .burger-menu .sound-dropdown,
  .burger-menu .mode-dropdown {
    position: relative;
    top: 5px;
    right: 0;
    width: 100%;
    margin-top: 5px;
  }
}
