body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("../images/bkg.b13457bfc625.jpg") no-repeat center center/cover;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

.todo-container {
    position: relative;
    z-index: 1;
    width: 500px;
    padding: 35px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(8, 153, 189, 0.2);

    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.tasks-wrapper {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    padding-right: 5px;
}

.tasks-wrapper::-webkit-scrollbar {
    display: none;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.input-group {
    display: flex;
    margin-bottom: 30px;
}

.input-group input {
    flex: 1;
    padding: 14px;
    border-radius: 12px 0 0 12px;
    border: 1px solid #ddd;
    font-size: 15px;
    outline: none;
}

.input-group input:focus {
    border-color: #0691a3;
}

.add-btn {
    background: #0691a3;
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 0 12px 12px 0;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s ease;
}

.add-btn:hover {
    background: #046470;
}

/* =======================
   Task Styles
   ======================= */
.task {
    background: rgba(255, 255, 255, 0.5);
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transition: background 0.2s ease;
    flex-wrap: wrap;
}

.task:hover {
    background: #ffffffc5;
}

.task-text {
    flex: 1;
    font-size: 16px;
}

.task-description {
    width: 100%;
    /* Ocupa a largura inteira, empurrando-se para a linha debaixo */
    display: none;
    /* Escondido até receber o clique */
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.task-meta {
    font-size: 11px;
    font-weight: normal;
    color: #888;
    margin-top: 6px;
}

.btn-group {
    display: flex;
    gap: 12px;
}

.btn {
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
}

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

.btn-edit:hover {
    background: #d68910;
}

.btn-finish {
    background: #06a389;
    color: white;
}

.btn-finish:hover {
    background: #04856f;
}

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

.btn-delete:hover {
    background: #973327;
}

.footer {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.clear-btn {
    background: #075886;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

.clear-btn:hover {
    background: #054063;
}

/* =======================
   Pop-up (Modal) Styles
   ======================= */
/* Dark background behind the Pop-up */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

/* The white box of the Pop-up */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}

/* Description text area*/
.modal-content textarea,
#modalTaskTitle,
.modal-input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 25px;
    box-sizing: border-box;
    outline: none;
}

.modal-content textarea:focus,
#modalTaskTitle:focus,
.modal-input:focus {
    border-color: #0691a3;
}

/* Pop-up buttons */
.modal-buttons {
    display: flex;
    justify-content: space-between;
}

.confirm-btn,
.cancel-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s ease;
    font-weight: 600;
    width: 48%;
}

.confirm-btn {
    background: #0691a3;
    color: white;
}

.confirm-btn:hover {
    background: #046470;
}

.cancel-btn {
    background: #ff7675;
    color: white;
}

.cancel-btn:hover {
    background: #d63031;
}