* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Pangolin", Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, color 0.3s;
  color: #1d2b4a;
}

body.snorlax-theme {
  background-color: #899dd2;
}

body.snorlax-theme header {
  background: linear-gradient(to right, #6b82b3, #899dd2);
}

body.snorlax-theme button {
  background: #53679c;
}

body.snorlax-theme button:hover {
  background: #3e4f7c;
}

body.snorlax-theme .left-panel,
body.snorlax-theme .right-panel {
  background: rgba(153, 171, 224, 0.8);
}

body.snorlax-theme #seconds {
  color: #53679c;
}

body.ditto-theme {
  background-color: #d594b7;
}

body.ditto-theme header {
  background: linear-gradient(to right, #d594b7, #f0a8c4);
}

body.ditto-theme button {
  background: #b57f9b;
}

body.ditto-theme button:hover {
  background: #a06687;
}

body.ditto-theme .left-panel,
body.ditto-theme .right-panel {
  background: rgba(229, 164, 199, 0.9);
}

body.ditto-theme #seconds {
  color: #b57f9b;
}

button {
  margin: 5px;
  padding: 10px 12px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 10px;
  border: none;
  transition: 0.2s ease-in-out;
  color: white;
  font-weight: bold;
}

button:hover {
  transform: scale(1.05);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
}

input[type="text"] {
  padding: 10px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #ccc;
}

main {
  flex: 1;
  display: flex;
  height: calc(100vh - 80px);
}

.left-panel,
.right-panel {
  height: calc(100vh - 80px - 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-radius: 10px;
}

.left-panel {
  width: 30%;
}

.right-panel {
  width: 30%;
}

.center-panel {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#themeSection {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#pomodoroSection,
#todoSection {
  width: 100%;
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
}

#snorlaxGif {
  width: 250px;
  margin-bottom: 15px;
}

#snorlaxNote {
  font-size: 1.2em;
  color: white;
  padding: 10px;
  text-align: center;
}

#tasks {
  margin-top: 15px;
  text-align: left;
  min-height: 50%;
  overflow-y: auto;
}

#timerDisplay {
  margin: 10px 0;
  font-size: 2.5em;
  font-weight: bold;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
}

#spotifySection {
  margin-top: 15px;
  width: 100%;
}

#clock {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 160px;
  font-size: 1.5em;
  border-radius: 10px;
}

#hours,
#minutes {
  font-size: 1.5em;
}

#seconds {
  align-self: flex-end;
  margin-left: 5px;
  position: relative;
  bottom: 4px;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 5px;
  border-radius: 8px;
  cursor: grab;
}

.completed {
  text-decoration: line-through;
  color: gray;
}

.task-buttons {
  display: flex;
  gap: 5px;
}

.task-buttons button {
  padding: 5px 8px;
  font-size: 0.9em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.complete-btn {
  background: #4caf50;
  color: white;
}

.complete-btn:hover {
  background: #3d8b3d;
}

.edit-btn {
  background: #ff9800;
  color: white;
}

.edit-btn:hover {
  background: #e08b00;
}

.delete-btn {
  background: #f44336;
  color: white;
}

.delete-btn:hover {
  background: #d32f2f;
}

.completed .task-buttons button {
  background: darkgray;
}

.completed .task-buttons button:hover {
  background: gray;
}

#stickyNotesSection {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  text-align: center;
  margin-top: 15px;
}

.sticky-note {
  background: #fff9a6;
  border: 1px solid #f0e68c;
  padding: 10px;
  border-radius: 5px;
  width: 200px;
  min-height: 200px;
  resize: both;
  overflow: auto;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.drag-handle {
  background: #f0e68c;
  cursor: move;
  padding: 5px;
  text-align: center;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.sticky-note textarea {
  width: 100%;
  min-height: 100px;
  height: calc(100% - 80px);
  border: none;
  background: transparent;
  resize: none;
  font-family: inherit;
  font-size: 1em;
  margin-top: 5px;
}

.delete-note {
  position: absolute;
  bottom: 6px;
  left: 3px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
}

.delete-note:hover {
  background: none;
}

#rssSection {
  width: 50%;
  margin-top: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  text-align: left;
}

#rssSection .rss-entry {
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.2s ease;
}

body.snorlax-theme #rssSection .rss-entry:first-child {
  color: white;
  background: rgba(153, 171, 224, 0.8);
}

body.ditto-theme #rssSection .rss-entry:first-child {
  color: white;
  background: rgba(229, 164, 199, 0.9);
}

#rssSection .rss-entry:not(:first-child) {
  color: gray;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.5;
}

#rssSection .rss-entry:not(:last-child) {
  margin-bottom: 8px;
}

#rssSection .rss-entry a {
  text-decoration: none;
}

body.snorlax-theme #rssSection .rss-entry a {
  color: #53679c;
}

body.ditto-theme #rssSection .rss-entry a {
  color: #a06687;
}

#rssSection .rss-entry a:hover {
  text-decoration: underline;
}
