/* Reset i zmienne */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; background-color: #f4f4f9; color: #333; display: flex; flex-direction: column; min-height: 100vh; }

/* Flexbox */
header { background: #2c3e50; color: white; padding: 1rem 10%; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; }
nav ul { list-style: none; display: flex; gap: 20px; }
nav a { color: white; text-decoration: none; font-weight: 500; }
nav a.active, nav a:hover { color: #3498db; }

/* Kontenery */
.container { max-width: 1000px; margin: 0 auto; padding: 2rem; flex: 1; }
footer { text-align: center; padding: 1rem; background: #2c3e50; color: #7f8c8d; margin-top: auto; }

/* Sekcja zadań */
.input-group { display: flex; gap: 10px; margin-bottom: 2rem; }
input { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
button { padding: 10px 20px; background: #3498db; color: white; border: none; border-radius: 4px; cursor: pointer; }
button:hover { background: #2980b9; }

/* Grid Layout */
.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.task-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: flex; flex-direction: column; justify-content: space-between; }
.delete-btn { background: #e74c3c; margin-top: 10px; align-self: flex-end; font-size: 0.8rem; }
.delete-btn:hover { background: #c0392b; }

/* Licznik */
#taskCount { background: #3498db; color: white; padding: 2px 8px; border-radius: 50%; font-size: 0.8em; margin-left: 10px; }

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 10px; }
    nav ul { padding: 0; }
    .grid-container { grid-template-columns: 1fr; }
    .input-group { flex-direction: column; }
}