* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
}

body {
  display: flex;
  height: 100vh;
  background: linear-gradient(135deg, #e3f2fd, #fce4ec);
}

.sidebar {
  width: 200px;
  background: #1e2a38;
  padding: 20px;
  color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.sidebar h2 {
  margin-bottom: 30px;
}

.menu-item {
  margin-bottom: 10px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.content {
  flex: 1;
  padding: 20px;
}

.breadcrumbs {
  color: #555;
  margin-bottom: 10px;
  font-size: 14px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header h2 {
  font-size: 26px;
}

.header button {
  padding: 8px 16px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.header button:hover {
  background-color: #1565c0;
}

.search-section {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-section input {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 250px;
}

.columns {
  display: flex;
  gap: 20px;
}

.column {
  flex: 1;
  background: #ffffffcc;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.column h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.task {
  position: relative;
  background: #f9f9fb;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: visible; /* important */
  z-index: 1; 
}

.task:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.task-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.task-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
  z-index: 10;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 20px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  z-index: 9999;
}

.dropdown button {
  display: block;
  padding: 8px 12px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown button:hover {
  background: #f5f5f5;
}

.task:hover .dropdown {
  display: block;
}

.add-new {
  background: #e3f2fd;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  color: #1976d2;
}

.add-new:hover {
  background: #bbdefb;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.teal { background: teal; }
.dot.orange { background: orange; }
.dot.green { background: green; }

/* Task Form */
#taskForm {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  max-width:420px;
}

#taskForm input, #taskForm textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#taskForm button {
  padding: 10px 16px;
  background-color: #1561dbff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#taskForm button:hover {
  background-color: #388e3c;
}

/* History */
.history-heading {
  margin-top: 30px;
  font-size: 16px;
  border-top: 1px solid #444;
  padding-top: 10px;
}

.history-list {
  margin-top: 10px;
  list-style: none;
  padding: 0;
  font-size: 13px;
  color: #ccc;
  max-height: 250px;
  overflow-y: auto;
}

.history-list li {
  margin-bottom: 8px;
  border-bottom: 1px solid #444;
  padding-bottom: 4px;
}

/* Clear History Button */
.clear-history {
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 12px;
  background: #c62828;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.clear-history:hover {
  background: #b71c1c;
}

/* Theme toggle */
.theme-toggle {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 14px;
  z-index: 10;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Dark theme */
.dark-theme {
  background: linear-gradient(135deg, #1c1c1c, #2d2d2d);
  color: white;
}

.dark-theme .content,
.dark-theme .task,
.dark-theme .column,
.dark-theme #taskForm {
  background-color: #2b2b2b !important;
  color: white;
}

.dark-theme input,
.dark-theme textarea {
  background: #444;
  color: #fff;
  border-color: #666;
}

.dark-theme .task-menu,
.dark-theme .dropdown,
.dark-theme .header button,
.dark-theme .add-new {
  background-color: #444;
  color: white;
}
