* {
    margin: 0;
    padding: 0;
}

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

.container {
    width: 100%;
    background-color: white;
}

header {
    background: #fa652a;
    color: white;
    padding: 25px;
}

main {
    padding: 25px;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: #6c757d;
}

.input-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

input, button {
    padding: 12px 15px;
    border: none;
}

input {
    flex: 1;
    min-width: 200px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

input:focus {
    border-color: #fa652a;
}

button {
    background: #fa652a;
    color: white;
    cursor: pointer;
    min-width: 120px;
}

.tasks-section {
    margin-top: 20px;
}

h2 {
    margin-bottom: 15px;
    color: #333;
}

.task-item {
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #fa652a;
}

.task-content {
    flex: 1;
}

.task-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.task-date {
    font-size: 0.85rem;
    color: #777;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: auto;
}

.edit-btn {
    background: #00b09b;
}

.delete-btn {
    background: #ff416c;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #777;
}

.empty-state h3 {
    margin-bottom: 10px;
    font-weight: 500;
}

.popup-overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    /*фиксация всплывашки на экране*/
    position: fixed; 
    /*ставит всплывашку наверх - чем больше число тем выше слой*/
    z-index: 1000;
}

.popup {
    background: white;
    padding: 30px;
    max-width: 400px;
    width: 90%;
}

.popup h3 {
    color: #333;
    text-align: center;
}

.popup-input {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px 15px;
}

.popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cancel-btn {
    background: #6c757d;
}

footer {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}

@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
    }
    
    input, button {
        width: 100%;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .task-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
}