
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Andale Mono', monospace, sans-serif;
    background: linear-gradient(135deg, #f5d89f 0%, #f0c77b 100%);
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    max-width: 550px;
    width: 100%;
    background: #fffef9;
    border-radius: 30px;
    padding: 40px 35px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.title-box {
    border: 3px solid #8b6f47;
    border-radius: 15px;
    padding: 10px 20px;
    background: #fffef9;
}

h1 {
    color: #8b6f47;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
}

.subtitle {
    color: #c9a66b;
    font-size: 13px;
    margin-top: 5px;
    text-align: center;
    font-style: italic;
}

.progress-section {
    margin-bottom: 25px;
    padding: 15px;
    background: #fff9ed;
    border-radius: 15px;
    border: 2px solid #e8d5b7;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: #8b6f47;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #f5e6d3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #d4b896;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a66b, #8b6f47);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.input-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff9ed;
    border-radius: 15px;
    border: 2px solid #e8d5b7;
}

.input-group {
    margin-bottom: 12px;
}

.input-group:last-of-type {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #8b6f47;
    font-size: 13px;
    font-weight: 600;
}

input[type="text"], textarea {
    width: 100%;
    padding: 10px 12px;
    background: white;
    border: 2px solid #d4b896;
    border-radius: 10px;
    color: #5d4a2f;
    font-size: 14px;
    font-family: 'Andale Mono', monospace, sans-serif;
}

textarea {
    resize: vertical;
    min-height: 60px;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #8b6f47;
}

.button-group {
    display: flex;
    gap: 8px;
}

button {
    flex: 1;
    padding: 12px 20px;
    background: #8b6f47;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

button:hover {
    background: #6d5436;
}

.cancel-btn {
    background: #c9a66b;
    display: none;
}

.cancel-btn:hover {
    background: #a88954;
}

.todo-list {
    list-style: none;
    margin-bottom: 20px;
}

.todo-item {
    padding: 15px;
    border: 2px solid #e8d5b7;
    border-radius: 15px;
    margin-bottom: 12px;
    background: white;
    transition: all 0.2s;
}

.todo-item:hover {
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.1);
}

.todo-item.completed {
    background: #f5f5f0;
    opacity: 0.8;
}

.todo-item.completed .todo-title {
    text-decoration: line-through;
}

.todo-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid #8b6f47;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-custom.checked {
    background: #8b6f47;
}

.checkbox-custom.checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.todo-content {
    flex: 1;
}

.todo-title {
    font-size: 16px;
    color: #5d4a2f;
    font-weight: 600;
    margin-bottom: 4px;
}

.todo-description {
    font-size: 14px;
    color: #8b6f47;
    line-height: 1.5;
    margin-bottom: 6px;
}

.todo-date {
    font-size: 12px;
    color: #c9a66b;
    font-style: italic;
}

.todo-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.edit-btn, .delete-btn {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
    flex: none;
}

.edit-btn {
    background: #c9a66b;
    border: none;
}

.edit-btn:hover {
    background: #a88954;
}

.delete-btn {
    background: transparent;
    border: 2px solid #c9a66b;
    color: #8b6f47;
}

.delete-btn:hover {
    background: #8b6f47;
    color: white;
    border-color: #8b6f47;
}

.empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #c9a66b;
    font-size: 15px;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fffef9;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid #8b6f47;
}

.modal-header {
    font-size: 20px;
    color: #8b6f47;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-body {
    font-size: 15px;
    color: #5d4a2f;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-confirm {
    background: #8b6f47;
    color: white;
}

.modal-btn-confirm:hover {
    background: #6d5436;
}

.modal-btn-cancel {
    background: #e8d5b7;
    color: #8b6f47;
}

.modal-btn-cancel:hover {
    background: #d4b896;
}

.footer a {
    color: #8b6f47;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
