* {
  font-family: "Poppins", sans-serif;
}

[role="tabpanel"][hidden] {
  display: none;
}

.todo-text {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.todo-item.done .todo-text {
  text-decoration: line-through;
  color: #9ca3af;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.todo-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .todo-input-row {
    flex-direction: row;
  }
}

.todo-input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 2px solid #000;
  color: #000;
  font-size: 0.875rem;
}

.todo-input::placeholder {
  color: #9ca3af;
}

.todo-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #fbbf24;
}

.add-btn {
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  background: #fde047;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
  transition: all 150ms;
  font-size: 0.875rem;
  white-space: nowrap;
}

.add-btn:hover {
  background: #facc15;
}

.add-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.todo-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
  transition: all 150ms;
  font-size: 0.875rem;
}

.filter-btn:hover {
  background: #f3f4f6;
}

.filter-btn.active {
  background: #fde047;
  box-shadow: 3px 3px 0 #000;
}

.filter-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

.timer-modes {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.mode-btn {
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
  transition: all 150ms;
  font-size: 0.75rem;
}

.mode-btn:hover {
  background: #f3f4f6;
}

.mode-btn.active {
  background: #fde047;
  box-shadow: 3px 3px 0 #000;
}

.mode-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

.timer-task-label {
  font-size: 0.75rem;
  color: #222;
  margin-bottom: 0.75rem;
  font-style: italic;
  font-weight: 600;
  padding: 0.5rem;
  border: 2px dashed #000;
  background: #fff9e6;
}

.timer-display {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  text-align: center;
  color: #000;
  margin: 1rem 0;
  font-family: "Courier New", monospace;
  letter-spacing: 0.2em;
  border: 3px solid #000;
  padding: 0.75rem;
  background: #fde047;
  box-shadow: 4px 4px 0 #000;
}

.timer-label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.timer-progress-wrap {
  width: 100%;
  height: 6px;
  border: 2px solid #000;
  background: #fff;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 0 #000;
  overflow: hidden;
}

.timer-progress {
  height: 100%;
  background: #fde047;
  transition: width 0.1s linear;
}

.timer-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ctrl-btn {
  padding: 0.5rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
  transition: all 150ms;
  font-size: 0.75rem;
}

.ctrl-btn.start {
  background: #22c55e;
  border-color: #16a34a;
}

.ctrl-btn.start:hover {
  background: #16a34a;
}

.ctrl-btn.reset {
  background: #ef4444;
  border-color: #dc2626;
}

.ctrl-btn.reset:hover {
  background: #dc2626;
}

.ctrl-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.timer-sessions {
  padding: 0.75rem;
  border: 2px solid #000;
  background: #fff;
  box-shadow: 2px 2px 0 #000;
}

#session-dots {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.session-dot {
  width: 12px;
  height: 12px;
  background: #fde047;
  border: 2px solid #000;
}

/* NOTES STYLES */
.new-note-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  background: #fde047;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
  cursor: pointer;
  transition: all 150ms;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.new-note-btn:hover {
  background: #facc15;
}

.new-note-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

#note-editor {
  margin-bottom: 1.5rem;
}

.note-editor {
  border: 2px solid #000;
  padding: 1rem;
  background: #fff;
  box-shadow: 3px 3px 0 #000;
}

.note-title-input {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid #000;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: "Poppins", sans-serif;
}

.note-title-input::placeholder {
  color: #9ca3af;
}

.note-title-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #fbbf24;
}

.note-body-input {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid #000;
  font-size: 0.875rem;
  min-height: 120px;
  resize: vertical;
  font-family: "Poppins", sans-serif;
  margin-bottom: 0.75rem;
}

.note-body-input::placeholder {
  color: #9ca3af;
}

.note-body-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #fbbf24;
}

.note-toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.color-dot {
  width: 24px;
  height: 24px;
  border: 2px solid #000;
  cursor: pointer;
  transition: all 100ms;
}

.color-dot:hover {
  transform: scale(1.1);
}

.color-dot.selected {
  box-shadow: 0 0 0 3px #000;
}

.save-note-btn {
  margin-left: auto;
  padding: 0.5rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: #22c55e;
  border: 2px solid #16a34a;
  box-shadow: 2px 2px 0 #000;
  cursor: pointer;
  transition: all 150ms;
  font-size: 0.875rem;
}

.save-note-btn:hover {
  background: #16a34a;
}

.save-note-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

.notes-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.note-card {
  border: 2px solid #000;
  padding: 1rem;
  box-shadow: 2px 2px 0 #000;
  position: relative;
  transition: all 150ms;
  border-radius: 0;
}

.note-card:hover {
  box-shadow: 4px 4px 0 #000;
  transform: translate(-2px, -2px);
}

.note-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.note-body {
  font-size: 0.875rem;
  color: #333;
  line-height: 1.5;
  word-break: break-word;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.note-date {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.note-delete-btn {
  width: 100%;
  padding: 0.5rem;
  background: #ef4444;
  border: 2px solid #dc2626;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 100ms;
  box-shadow: 2px 2px 0 #000;
}

.note-delete-btn:hover {
  background: #dc2626;
  box-shadow: 3px 3px 0 #000;
}

.note-delete-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

/* DARK MODE STYLES */
body.dark-mode {
  background-color: #1a1a1a;
  color: #fff;
}

body.dark-mode header {
  background-color: #22c55e !important;
  border-color: #000;
}

body.dark-mode .add-btn,
body.dark-mode .new-note-btn,
body.dark-mode button[role="tab"] {
  background: #3a3a3a;
  color: #fff;
  border-color: #555;
}

body.dark-mode button[role="tab"][aria-selected="true"] {
  background: #22c55e;
  color: #000;
  border-color: #000;
}

body.dark-mode .add-btn:hover,
body.dark-mode .new-note-btn:hover {
  background: #16a34a;
}

body.dark-mode button[role="tab"].bg-yellow-400 {
  background: #22c55e !important;
}

body.dark-mode button[role="tab"]:hover {
  background: #4a4a4a;
}

body.dark-mode button[role="tab"][aria-selected="true"]:hover {
  background: #16a34a;
}

body.dark-mode .filter-btn.active,
body.dark-mode .mode-btn.active {
  background: #22c55e;
}

body.dark-mode .todo-input,
body.dark-mode .note-title-input,
body.dark-mode .note-body-input {
  background: #2a2a2a;
  color: #fff;
  border-color: #000;
}

body.dark-mode .todo-input::placeholder,
body.dark-mode .note-title-input::placeholder,
body.dark-mode .note-body-input::placeholder {
  color: #999;
}

body.dark-mode .todo-input:focus,
body.dark-mode .note-title-input:focus,
body.dark-mode .note-body-input:focus {
  box-shadow: inset 0 0 0 2px #22c55e !important;
}

body.dark-mode div[style*="border: 2px solid #000"],
body.dark-mode div[style*="border-2 border-black"] {
  background: #2a2a2a;
  color: #fff;
}

body.dark-mode .todo-item {
  background: #2a2a2a;
  color: #fff;
}

body.dark-mode .timer-display {
  background: #22c55e;
  color: #000;
}

body.dark-mode .timer-progress {
  background: #22c55e;
}

body.dark-mode .note-card {
  background: #2a2a2a !important;
  color: #fff;
}

body.dark-mode .note-title {
  color: #fff;
}

body.dark-mode .note-body {
  color: #ccc;
}

body.dark-mode .timer-task-label {
  background: #3a3a3a;
  color: #fff;
  border-color: #000;
}

body.dark-mode .timer-modes,
body.dark-mode .timer-progress-wrap,
body.dark-mode .timer-sessions {
  background: #2a2a2a;
  border-color: #000;
  color: #fff;
}

body.dark-mode .session-dot {
  background: #22c55e;
}

body.dark-mode footer {
  background: #1a1a1a;
  border-color: #000;
}

/* Dark mode timer inputs */
body.dark-mode input[type="number"] {
  background: #2a2a2a !important;
  color: #fff !important;
}

body.dark-mode input[type="number"]::placeholder {
  color: #999 !important;
}

body.dark-mode input[type="number"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px #22c55e !important;
}

/* Dark mode timer custom section */
body.dark-mode
  div[style*="border: 2px solid #000; padding: 0.75rem; background: #f9fafb"] {
  background: #2a2a2a !important;
}

body.dark-mode
  div[style*="border: 2px solid #000; padding: 0.75rem; background: #f9fafb"]
  div[style*="font-weight: 700; font-size: 0.75rem"] {
  color: #22c55e !important;
}

body.dark-mode label[style*="font-weight: 700"] {
  color: #22c55e !important;
}

/* Dark mode social icons */
body.dark-mode a.border-yellow-400 {
  border-color: #22c55e;
  color: #22c55e;
  box-shadow: 2px 2px 0 #22c55e;
}

body.dark-mode a.border-yellow-400:hover {
  background: #22c55e;
  color: #000;
}

/* Dark mode footer section headers */
body.dark-mode span.text-yellow-400 {
  color: #22c55e !important;
  border-color: #22c55e !important;
}

/* Dark mode footer logo SVG container */
body.dark-mode div.bg-yellow-400.border-yellow-400 {
  background-color: #22c55e !important;
  border-color: #22c55e !important;
}
