* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    color: #fff;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: white;
}

.wrapper {
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(26,14,1,1) 100%);
    width: 100%;
    min-height: 100vh;
}

.container {
    width: 1400px;
    max-width: 90%;
    margin: 0 auto;
}

header {
    padding: 50px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    text-transform: uppercase;
    font-size: 29px;
    font-weight: 800;
}

header nav {
    width: 40%;
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

header nav ul li a {
    color: #fff;
}

header nav ul li.active::after {
    content: '';
    display: block;
    width: 40px;
    height: 5px;
    background: #DC7000;
    border-radius: 10px;
    position: relative;
    top: 10px;
    left: -15px;
}

header nav ul li:not(.active):not(.btn) a:hover {
    border-bottom: 5px solid #DC7000;
}

header nav ul li.btn a {
    background: #FA9021;
    padding: 9px 17px;
    border-radius: 5px;
    transition: 0.3s;
}

header nav ul li.btn a:hover {
    background: #3b2003;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: -5px;
    background: #1b1b1b;
    border-radius: 10px;
    padding: 10px 0;
    display: none;
    min-width: 230px;
    z-index: 10;
}

.dropdown-menu li {
    padding: 10px 20px;
}

.dropdown-menu li a {
    display: block;
    color: white;
}

.dropdown-menu li:hover {
    background: #DC7000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}


.todo-section {
    display: flex;
    justify-content: center;
    padding: 60px 0 100px;
}

.todo-box {
    width: 520px;
    background: rgba(255,255,255,0.03);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.todo-box h1 {
    text-align: center;
    margin-bottom: 20px;
}

.todo-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.todo-input-row input {
    flex: 1;
    height: 50px;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 12px;
    background: #111;
    color: white;
}

.todo-input-row button,
.todo-actions button {
    border: none;
    border-radius: 12px;
    background: #FA9021;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.todo-input-row button {
    padding: 0 18px;
}

.todo-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.todo-actions button {
    flex: 1;
    padding: 12px;
}

.todo-input-row button:hover,
.todo-actions button:hover {
    background: #DC7000;
    transform: scale(1.02);
}

#taskList {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #111;
    border-radius: 14px;
    padding: 14px;
}

.task-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.task-text {
    word-break: break-word;
}

.task-text.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

.delete-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: 0.3s;
}

.delete-btn:hover {
    background: #DC7000;
    border-color: #DC7000;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
    }

    header nav {
        width: 100%;
    }

    header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .todo-box {
        width: 100%;
        max-width: 420px;
    }

    .todo-input-row {
        flex-direction: column;
    }

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