/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body background and text */
body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
#nev {
    background-color: #6a0dad; /* blueviolet */
    padding: 15px 30px;
}

#nev ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#nev li {
    margin: 0 15px;
}

#nev li:last-child {
    margin-left: auto; /* Push Logout to right */
}

#nev a, #nev button {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

#nev a:hover, #nev button:hover {
    color: #ffd700; /* gold on hover */
}

/* Heading */
h1 {
    text-align: center;
    margin: 30px 0;
    font-size: 2rem;
}

/* Forms */
#authSection {
    width: 350px;
    background-color: white;
    padding: 20px 25px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.auth-toggle {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    background-color: #e0e0e0;
    color: #333;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.toggle-btn.active {
    background-color: #6a0dad;
    color: white;
}

.toggle-btn:hover {
    background-color: #520a97;
    color: white;
}

.auth-form {
    padding: 0;
    margin: 0;
    width: 100%;
    box-shadow: none;
}

form {
    width: 350px;
    background-color: white;
    padding: 20px 25px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

form h2 {
    margin-bottom: 15px;
    color: #6a0dad;
    text-align: center;
}

form input {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s;
}

form input:focus {
    border-color: #6a0dad;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #6a0dad;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #520a97;
}

/* Todo Section */
#todoSection {
    width: 400px;
    background-color: white;
    margin: 30px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#todoSection input {
    width: calc(100% - 70px);
    padding: 10px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

#todoSection button {
    padding: 10px 15px;
    border: none;
    background-color: #6a0dad;
    color: white;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#todoSection button:hover {
    background-color: #520a97;
}

/* Todo List */
#todoList {
    list-style: none;
    margin-top: 15px;
}

#todoList li {
    padding: 8px 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#todoList li button {
    background-color: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
    cursor: pointer;
    font-size: 14px;
}

#todoList li button:hover {
    background-color: #d9363e;
}
