/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #232121;
    background: rgb(2, 0, 36);
        background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(0, 0, 0, 1) 35%, rgba(0, 212, 255, 1) 100%);
    color: #ffffff;
    /* display: flex;
    justify-content: center;
    align-items: flex-start; */
    height: 100vh;
    
}

.container {
    margin: 40px auto;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    align-self: center;
    position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    /* left: 220px; */
} 

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.input-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

input[type="text"] {
    width: 70%;
    padding: 10px;
    background-color: #333333;
    border: none;
    border-radius: 5px;
    color: #fff;
    outline: none;
}

button {
    width: 25%;
    padding: 10px;
    background-color: #6200ea;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3700b3;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background-color: #333333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

li.completed {
    text-decoration: line-through;
    opacity: 0.7;
}

li button {
    background-color: #d32f2f;
    border: none;
    padding: 5px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

li button:hover {
    background-color: #b71c1c;
}

#sidebar {
    position: fixed;
    top: 0;
    left: -240px;
    /* Hide sidebar initially */
    width: 220px;
    height: 100vh;
    background: #181818;
    color: #fff;
    border-right: 1px solid #333;
    box-sizing: border-box;
    padding: 20px 10px 20px 20px;
    transition: left 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#sidebar.open {
    left: 0;
}

#sidebar h3 {
    margin-top: 50px;
    margin-bottom: 18px;
    font-size: 20px;
    color: #00d4ff;
    letter-spacing: 1px;
    text-align: left;
}

#sidebar div[style*="cursor: pointer"] {
    padding: 8px 6px;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 15px;
    margin-bottom: 2px;
}

#sidebar div[style*="cursor: pointer"]:hover {
    background: #222e3c;
}

#sidebar strong {
    font-weight: 600;
}

#sidebar>div>div {
    background: #232b36;
    margin: 4px 0 8px 0;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #b2eaff;
}


#sidebar {
    position: relative;
    flex-shrink: 0;
}

#sidebar button {
    width: 100%;
    margin: 0;
    border-radius: 8px;
    z-index: 2;
    box-sizing: border-box;
    flex-shrink: 0;
}

.main-footer {
    width: 100vw;
    text-align: center;
    color: #888;
    font-size: 15px;
    letter-spacing: 1px;
    position: fixed;
    left: 0;
    bottom: 0;
    background: transparent;
    padding: 10px 0;
    z-index: 10;
    user-select: none;
}

.main-footer a {
    color: #888;
    text-decoration: underline;
}

#hamburger {
    width: 36px;
    height: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: none;
    border: none;
}

#hamburger .bar {
    width: 28px;
    height: 4px;
    background: #00d4ff;
    border-radius: 2px;
    transition: 0.3s;
}

/* Cross (X) animation */
#hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

#hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

#todo-list {
    max-height: 90px;      /* 2 items ke height ke barabar (adjust as needed) */
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}