/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* BODY */
body {
  background: #f4f5ff;
  padding-top: 120px;
  transition: 0.3s;
}

/* HEADER */
.app-header {
  width: 100%;
  padding: 18px 40px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  box-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

.title h2 {
  color: #6a00ff;
  font-size: 1.6rem;
  font-weight: 600;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* DATE TIME */
.datetime {
  text-align: right;
}

.datetime h3 {
  font-size: 1.2rem;
}

/* TOGGLE */
.switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 30px;
  cursor: pointer;
}

.slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider {
  background: #6a00ff;
}

input:checked + .slider::before {
  transform: translateX(24px);
}

/* MAIN PAGE GRID */
.page-grid {
  width: 90%;
  margin: 24px auto;
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

/* LEFT COLUMN */
.main-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ADD TASK */
.add-task-panel {
  background: white;
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.add-task-panel h3 {
  color: #6a00ff;
  font-size: 1rem;
  margin-bottom: 10px;
}

.task-input-row {
  display: flex;
  gap: 12px;
}

.task-input-row input {
  flex: 1;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0 12px;
}

.task-input-row button {
  padding: 0 18px;
  height: 40px;
  background: #6a00ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* TASK SECTION */
.task-section {
  width: 100%;
}

/* TABS */
.tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
}

.tab {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding-bottom: 6px;
  color: #555;
}

.tab.active {
  color: #6a00ff;
  border-bottom: 3px solid #6a00ff;
  font-weight: 600;
}

/* TASK LIST */
.task-list li {
  background: white;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.task-list input {
  margin-right: 12px;
}

.delete-btn {
  background: #ff4b5c;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}

/* RIGHT COLUMN */
.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 140px;
}

/* QUOTE */
.quote-panel,
.side-widget {
  background: white;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.quote-panel h3,
.side-widget h4 {
  color: #6a00ff;
  margin-bottom: 8px;
}

/* DARK MODE */
body.dark {
  background: #111;
  color: #eee;
}

body.dark .app-header,
body.dark .add-task-panel,
body.dark .task-list li,
body.dark .quote-panel,
body.dark .side-widget {
  background: #1e1e1e;
}

body.dark input {
  background: #262626;
  color: #fff;
  border-color: #3a3a3a;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: 1fr;
  }
}
