* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f9;
}

header, footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 15px;
}

footer {
  margin-top: 20px;
}

nav {
  display: flex;
  justify-content: center;
  background: #555;
}

nav a {
  color: white;
  padding: 15px;
  text-decoration: none;
}

nav a:hover {
  background: #444;
}


main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 20px;
}

.content {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

label {
  display: block;
  margin-top: 10px;
}

input, textarea, button {
  width: 100%;
  margin-top: 5px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

button {
  background: #4CAF50;
  color: white;
  border: none;
  margin-top: 15px;
  cursor: pointer;
}

button:hover {
  background: #45a049;
}

/* To-Do List */
.sidebar {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.sidebar ul {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 8px;
  margin-bottom: 5px;
  background: #eee;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
}

.gallery {
  margin: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#galleryContainer {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

#galleryContainer img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
  }
  nav {
    flex-direction: column;
  }
}

.completed {
  text-decoration: line-through;
  background: #c8e6c9; 
  color: #2e7d32;
}

.sidebar li button {
  margin-left: 4px;
  padding: 3px 6px;       
  min-width: 40px;         
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;        
  background-color: #4CAF50; 
  color: white;
  transition: 0.2s;
  text-align: center;
}

.sidebar li button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}
