/* General Body Styling */
body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background-color: #121212;
  color: #ffffff;
}

/* Info Bar Styling */
#info-bar {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: #1e1e1e;
  color: #ffffff;
  font-size: 13px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  border-bottom: 1px solid #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#current-date-time {
  flex: 1;
  padding-left: 15px;
}

#sunrise-sunset {
  display: flex;
  gap: 10px;
  align-items: center;
}

#sunrise, #sunset {
  display: flex;
  align-items: center;
}

#weather-forecast {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-left: 15px;
}

#task-summary {
  flex: 1;
  text-align: right;
  padding-right: 40px;
}

/* Responsive design for smaller screens */
@media (max-width: 600px) {
  
  #info-bar {
  padding: 5px;
  }

  #sunrise-sunset {
    flex: 1;
    flex-wrap: wrap;
    gap: 0px;
    align-items: center;
  }

  #sunrise {
    align-items: flex-end;
  }

  #sunset {
    align-items: flex-start;
  }

  /* Smaller icon sizes for mobile */
  #sunrise img, #sunset img {
    width: 16px;
    height: 16px;
  }

  #weather-forecast {
    flex: 1;
    flex-wrap: wrap;
    gap: 0px;
    align-items: center;
    padding-left: 15px;
  }

  #weather-forecast img {
    padding: 0px 5px;
  }
}

#notification {
  position: absolute;
  top: calc(5px + var(--info-bar-height)); /* Adjust based on the info bar’s height */
  right: 30px;
  font-size: 16px;
  color: yellow;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 8px 12px;
  border-radius: 4px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Heading Styles */
h1, h2 {
  color: #ffffff;
}

/* Align Action Buttons in a Row */
#action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

/* Form Styling */
form {
  margin-bottom: 20px;
}

/* Input Fields */
input {
  padding: 10px;
  margin-right: 10px;
  font-size: 16px;
  background-color: #333333;
  border: 1px solid #444444;
  color: #ffffff;
}

input::placeholder {
  color: #aaaaaa;
}

/* Buttons */
button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #1e88e5;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1565c0;
}

/* Task List */
ul {
  list-style-type: none;
  padding: 0;
}

li {
  background-color: #1e1e1e;
  padding: 10px;
  margin-bottom: 5px;
  border: 1px solid #333333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Align task buttons to the right on wider screens */
li .task-buttons {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

/* Completed Task Text */
li.completed span {
  text-decoration: line-through;
  color: #888888;
}

/* Bold Task Titles */
.task-info strong {
  font-weight: bold;
  color: #93b9ff;
}

/* Tag styles */
.tag {
  display: inline-block;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  border-radius: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: outline 0.3s ease;
}

.tag.selected {
  outline: 2px solid #fff;
}

#add-tag-container {
  margin-top: 5px;
}

#edit-tag-container {
  margin-top: 5px;
}

/* Complete Button */
li button.complete-btn {
  background-color: #4caf50;
  margin-left: 5px;
}

li button.complete-btn:hover {
  background-color: #388e3c;
}

/* Delete Button */
li button.delete-btn {
  background-color: #ff4d4d;
  margin-left: 5px;
}

li button.delete-btn:hover {
  background-color: #e60000;
}

/* Edit Button */
li button.edit-btn {
  margin-left: 5px;
}

/* Task Content Styling */
.task-content {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.task-date {
  font-size: 12px;
  color: #aaaaaa;
  margin-bottom: 5px;
}

.due-date {
  font-size: 12px;
  color: #ffcc00;
  margin-top: 5px;
}

.completed-date {
  font-size: 12px;
  color: #4caf50;
  margin-top: 5px;
}

.task-info {
  font-size: 16px;
  color: #ffffff;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #2e2e2e;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* Media Query for Narrow Screens (phones) */
@media (max-width: 600px) {
  li .task-buttons {
    flex-direction: column;
    gap: 5px;
  }

  button {
    padding: 8px 16px;
    font-size: 14px;
  }

  #action-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Scrollbar Styling for Dark Mode */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: #121212;
}

::-webkit-scrollbar-thumb {
  background-color: #555;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #777;
}
