/* General styling */
body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
  overflow-y: auto;
}

.container {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

h1 {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}

/* Matrix layout for quadrants */
.matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

/* Quadrant container */
.quadrant {
  border: 1px solid #000;
  padding: 10px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h2 {
  margin: 0;
}

.fa-plus-circle {
  cursor: pointer;
  color: #28a745;
  font-size: 1.5em;
}

/* Task container for scrolling */
.task-container {
  overflow-y: auto;
  flex-grow: 1;
  margin-top: 10px;
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Individual task item */
li {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  margin-top: 5px;
  border-radius: 5px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
}

.task-text {
  padding: 10px;
  overflow: hidden;
  white-space: normal;
  word-wrap: break-word;
}

/* Button styles */
button {
  padding: 5px;
  border-radius: 5px;
  cursor: pointer;
  background-color: ##f7f7f7;
  font-size: 0.85em;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.small-icon-btn {
  display: block;
  margin-bottom: 5px;
}

/* Vertically stacking icons */
.icon-stack {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  padding: 5px 10px;
}

.icon-label {
  display: block;
  font-size: 0.7em;
}

span {
  font-size: 0.9em;
  margin-left: 8px;
}

/* Styling for completed tasks */
.completed-task {
  background-color: #d4edda;
  color: #155724;
  text-decoration: line-through;
}

/* Focus states for accessibility */
button:focus, input:focus, .fa-plus-circle:focus {
  outline: 2px solid #005a9e;
}
