/* @import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background-color: rgb(232, 238, 238);
}

.container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.input-container{
    width: 100%;
    max-width: 500px;
    text-align: center;
    padding: 20px;
}

.input-container input{
    border: none;
    outline: none;
    padding: 12px;
    margin-block: 12px;
    border-radius: 4px;
    font-size: 16px;
}

.input-container input[type="text"]{
    width: 70%;
}

.input-container input[type="button"]{
    background-color: #3da33d;
    color: #fff;
    font-weight: 700;
    margin-left: 8px;
    cursor: pointer;
    padding: 12px 24px;
}

.input-container input[type="button"]:hover{
    background-color: #60b160;
}

ul{
    width: 80%;
    max-width: 400px;
}

ul li{
    list-style-type: none;
    cursor: pointer;
    margin-block-end: 12px;
    border-radius: 8px;
    border: 0.125px solid #a19f9f;
    padding: 6px 12px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.5s;
}

ul li:hover{
    background-color: #cbcaca;
}

ul li p{
    flex-grow: 1;
    padding: 2px;
}
.btn{
    border: none;
    outline: none;
    font-size: 16px;
    background: none;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
}

.deleteBtn{
    color: #ff0000;
}

.editBtn{
    color: #008000;
} */

/* General Styling */
*{
    margin: 0;
    padding: 0;
    font-family: 'Roboto',cursive, sans-serif;
}
body {
    background: url('./Images/bg.jpeg') no-repeat center center/cover;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* Container Styling */
.container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Heading */
.container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #00adb5;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* Input Field Styling */
.input-container input[type="text"] {
    width: 70%;
    display: inline;
    padding: 12px;
    border: 1px solid #393e46;
    border-radius: 25px;
    background: #222831;
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
    transition: 0.3s ease-in-out;
}

.input-container input[type="text"]::placeholder {
    color: #888888;
}

.input-container input[type="text"]:focus {
    border: 1px solid #00adb5;
    box-shadow: 0 0 10px #00adb5;
}

/* Add Button */
.input-container input[type="button"] {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 25px;
    background: #00adb5;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-container input[type="button"]:hover {
    background: #007a83;
    /* transform: scale(1.1); */
}

/* To-do List */
ul.todoList {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

ul.todoList li p{
    flex-grow: 1;
    text-align: left;
}

ul.todoList li {
    background: #393e46;
    padding: 15px 20px;
    margin: 10px 0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e0e0e0;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: 0.3s ease-in-out;
}
ul.todoList li:hover {
    /* transform: translateX(10px); */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
    background: #4e555b;
}

/* Scrollbar Customization */
ul.todoList::-webkit-scrollbar {
    width: 8px;
}

ul.todoList::-webkit-scrollbar-thumb {
    background: #00adb5;
    border-radius: 10px;
}

ul.todoList::-webkit-scrollbar-thumb:hover {
    background: #007a83;
}

/* Button Styling Inside List Items */
ul.todoList li .btn {
    border: none;
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px; /* Add space between buttons */
}

/* Edit Button Styling */
ul.todoList li .editBtn {
    background: #00adb5; /* Teal color */
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

ul.todoList li .editBtn:hover {
    background: #007a83; /* Darker teal */
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Delete Button Styling */
ul.todoList li .deleteBtn {
    background: #f44336; /* Red color */
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

ul.todoList li .deleteBtn:hover {
    background: #d32f2f; /* Darker red */
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 20px;
    }

    .input-container input[type="text"] {
        width: 70%;
    }

    .input-container input[type="button"] {
        padding: 8px 16px;
    }
}