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

body {
    background-color: #1f242d;
    color: white;
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
}

header {
    font-size: 1.5rem;
}

header,
form {
    min-height: 14vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

form input,
form button {
    padding: 0.5rem;
    padding-left: 1rem;
    font-size: 1.8rem;
    border: none;
    background: white;
    border-radius: 2rem;
}

form button {
    color: #7cf03d;
    background: white;
    cursor: pointer;
    transition: all, 0.3 ease;
    margin-left: 0.5rem;
}

form button:hover {
    color: white;
    background: #7cf03d;
}

.fa-plus-circle {
    margin-top: 0.3rem;
    margin-left: -8px;
}

.todo-container {
    display: flex;
    justify-content: left;
    align-items: normal;
}

.todo-list {
    min-width: 30%;
    list-style: none;
}

.todo {
    margin: 0.5rem;
    padding-left: 0.5rem;
    background: white;
    color: black;
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s;
    border-radius: 2rem;
}

.todo li {
    flex: 1;
    padding: 0 0.5rem;
}

.trash-btn,
.complete-btn,
.edit-btn {
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Style for the complete button */
.complete-btn {
    background: #7cf03d;
}

/* Style for the trash button */
.trash-btn {
    border-top-right-radius: 1.75rem;
    border-bottom-right-radius: 1.75rem;
    background: rgb(171, 171, 171);
}

/* Style for the edit button */
.edit-btn {
    background: #1e3a5f; /* Updated background color */
    color: white; /* White icon color */
    border: none; /* No border */
    padding: 1rem; /* Same padding as other buttons */
    cursor: pointer; /* Pointer cursor for interactivity */
    font-size: 1.5rem; /* Match font size of other buttons */
    border-radius: 1%; /* Circular button */
    transition: 0.3s ease; /* Smooth transition on hover */
    margin-left: 0rem; /* Space between buttons */
    

}

/* Hover effect for the edit button */
.edit-btn:hover {
    background: #16304a; /* Slightly darker shade of #1e3a5f for hover */
}

.todo-item {
    padding: 0rem 0.5rem;
}

.fa-trash,
.fa-check-circle,
.fa-edit {
    pointer-events: none;
}

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

.slide {
    transform: translateX(10rem);
    opacity: 0;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    border: none;
}

.select {
    margin: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
}

select {
    color: black;
    width: 10rem;
    height: 3.2rem;
    cursor: pointer;
    padding: 1rem;
}

.select::after {
    content: "\25BC";
    position: absolute;
    background: #7cf03d;
    top: 0;
    right: 0;
    padding: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.select::hover::after {
    background: white;
    color: #7cf03d;
}

/* Main container for centering form and task count */
.container {
    width: 700px; /* Fixed width */
    background-color: #323946;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(41, 33, 63, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* Start alignment for child elements */
    height: auto; /* Auto height */
    position: relative; /* For positioning child elements like .task-summary */
    margin: auto; /* Center the container on the page */
    margin-top: 40px; /* Additional top margin */
}

/* Task summary styling */
.task-summary {
    display: flex; /* Align items horizontally */
    justify-content: space-between; /* Space out the elements */
    position: absolute; /* Allow precise positioning inside the container */
    bottom: -0.8vh; /* Place it slightly above the bottom of the container */
    width: 90%; /* Ensure it spans most of the container */
    left: 50%; /* Center horizontally relative to the container */
    transform: translateX(-50%); /* Adjust for perfect centering */
    padding: 10px; /* Add padding for spacing inside */
    border-radius: 8px; /* Add rounded corners */
    min-height: 0.1vh; /* Ensure it doesn't take up too much space */
}
