* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: #f4efe8;
    color: #2a211d;
    padding: 30px 15px;
}

.app {
    max-width: 1050px;
    margin: auto;
}

.hero {
    background: #3b261f;
    color: white;
    padding: 35px;
    border-radius: 22px;
    margin-bottom: 20px;
}

.tag {
    color: #f4b183;
    font-weight: bold;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stats div,
.panel {
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stats div {
    padding: 22px;
}

.stats strong {
    display: block;
    font-size: 30px;
    color: #7a3428;
}

.stats span {
    color: #6d625d;
}

.panel {
    padding: 25px;
    margin-bottom: 20px;
}

h2 {
    margin-bottom: 18px;
}

label {
    display: block;
    margin: 12px 0 6px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #ddd0c7;
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    outline: none;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

button {
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: bold;
}

#saveBtn {
    background: #7a3428;
    color: white;
}

#cancelBtn {
    background: #eadfd6;
    color: #2a211d;
    display: none;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.toolbar input {
    max-width: 280px;
}

.task-list {
    display: grid;
    gap: 12px;
}

.task-card {
    border: 1px solid #eadfd6;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.task-card h3 {
    margin-bottom: 6px;
}

.task-card p {
    color: #6d625d;
    margin-bottom: 8px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    background: #f4efe8;
    color: #7a3428;
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.edit-btn {
    background: #2f6f4e;
    color: white;
}

.delete-btn {
    background: #b33939;
    color: white;
}

.empty {
    text-align: center;
    color: #6d625d;
    padding: 25px;
}

@media (max-width: 750px) {
    .stats,
    .row {
        grid-template-columns: 1fr;
    }

    .toolbar,
    .task-card {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar input {
        max-width: 100%;
    }
}
