* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    border: none;
    outline: none;
    font-family: 'Tektur', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #4a6fa5;
    color: white;
    padding: 15px 20px;
    text-align: center;
}

h1 {
    margin-bottom: 0;
    font-size: 24px;
}

.todo-form {
    padding: 15px;
    display: flex;
    gap: 10px;
    background-color: #f0f2f5;
    border-bottom: 1px solid #eee;
}

.todo-input {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.todo-input:focus {
    border-color: #4a6fa5;
}

.btn {
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary {
    background-color: #4a6fa5;
    color: white;
}

.primary:hover:not(:disabled) {
    background-color: #3a5b87;
}

.secondary {
    background-color: #e0e0e0;
    color: #333;
}

.secondary:hover:not(:disabled) {
    background-color: #d0d0d0;
}

.success {
    background-color: #4caf50;
    color: white;
}

.success:hover:not(:disabled) {
    background-color: #3d9140;
}

.danger {
    background-color: #ff4d4d;
    color: white;
}

.danger:hover:not(:disabled) {
    background-color: #e04444;
}

.warning {
    background-color: #ffa500;
    color: white;
}

.warning:hover:not(:disabled) {
    background-color: #e09400;
}

.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.todo-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.todo-item:last-child {
    border-bottom: none;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 3px;
}

.todo-text {
    flex: 1;
    font-size: 16px;
    transition: all 0.2s ease;
    word-break: break-word;
}

.todo-text.completed {
    text-decoration: line-through;
    color: #888;
}

.todo-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.todo-edit-form {
    flex: 1;
    display: flex;
    gap: 5px;
}

.todo-edit-input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 16px;
    width: 100%;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.empty-state {
    padding: 30px;
    text-align: center;
    color: #888;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #4a6fa5;
    color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.notification.show {
    opacity: 1;
    pointer-events: unset;
}

@media (max-width: 600px) {
    .container {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .todo-form {
        flex-direction: column;
    }

    .todo-actions {
        flex-wrap: wrap;
    }
}