/* style.css */

/* Global Styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
  margin: 0;
  padding: 40px;
  color: #212529;
}

/* Centered Container */
.container {
  max-width: 600px;
  margin: auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Header */
h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2.2rem;
  color: #343a40;
  margin-bottom: 20px;
}

/* Input Group */
.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#todo-input {
  flex: 1;
  padding: 10px 15px;
  font-size: 1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: border-color 0.3s;
}

#todo-input:focus {
  border-color: #495057;
  outline: none;
}

/* Buttons */
button {
  padding: 10px 15px;
  font-size: 1rem;
  background-color: #0d6efd;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.delete-btn{

display: flex;
flex-direction: row;
justify-content: right;
align-items: end;

}


.btn-wrapper {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f2f4f7;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 8px;
}


button:hover {
  background-color: #084298;
}

/* Todo List */
ol {
  padding-left: 0;
  list-style: none;
}

li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f3f5;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Todo Text */
li span {
  flex: 1;
  word-break: break-word;
  margin-right: 10px;
  font-size: 1rem;
  color: #212529;
}

/* Action Buttons */
li button {
  margin-left: 6px;
  background-color: #6c757d;
}

li button:hover {
  background-color: #495057;
}

li button.delete {
  background-color: #dc3545;
}

li button.delete:hover {
  background-color: #a71d2a;
}

li button.edit {
  background-color: #198754;
}

li button.edit:hover {
  background-color: #116c44;
}
