i* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;

    background: #000;
    color: #fff;

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 600px;

    background: #111;

    padding: 35px;

    border-radius: 18px;

    box-shadow: 0 0 30px rgba(255, 255, 255, 0.08);

    text-align: center;
}

h1 {
    margin: 0 0 10px;

    font-size: 38px;
}

.subtitle {
    color: #aaa;

    margin-bottom: 30px;
}

.input-area {
    display: flex;
    gap: 10px;

    width: 100%;
}

input {
    flex: 1;

    min-width: 0;

    padding: 13px 15px;

    border: 1px solid #444;

    border-radius: 8px;

    background: #222;

    color: white;

    font-size: 16px;

    outline: none;
}

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

button {
    border: none;

    padding: 12px 18px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 15px;

    font-weight: bold;
}

button:hover {
    opacity: 0.8;
}

.add-btn {
    background: white;
    color: black;
}

h2 {
    text-align: left;

    margin-top: 35px;

    border-bottom: 1px solid #333;

    padding-bottom: 10px;
}

#taskList {
    list-style: none;

    padding: 0;

    margin: 20px 0;
}

.task-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    background: #1c1c1c;

    padding: 12px 15px;

    margin-bottom: 10px;

    border-radius: 8px;

    text-align: left;
}

.task-title {
    flex: 1;

    word-break: break-word;
}

.delete-btn {
    background: #ff3333;

    color: white;

    padding: 8px 12px;

    flex-shrink: 0;
}

.status {
    color: #888;

    margin-top: 20px;
}


/* Mobile */

@media (max-width: 600px) {

    body {
        padding: 15px;
    }

    .card {
        padding: 25px 18px;
    }

    h1 {
        font-size: 30px;
    }

    .input-area {
        flex-direction: column;
    }

    input {
        width: 100%;
    }

    .add-btn {
        width: 100%;
    }

    .task-item {
        align-items: center;
    }

    .delete-btn {
        padding: 8px 10px;
    }
}
