/* General Body Styling - Dark Theme */
body {
    font-family: 'Inter', sans-serif;
    background-color: #1a202c; /* Darker background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

/* Main Container - Dark Theme */
.todo-container {
    width: 100%;
    max-width: 448px;
    background-color: #2d3748; /* Darker card background */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); /* Darker shadow */
    border-radius: 1.25rem;
    padding: 2rem;
    margin: 1rem;
}

/* Header Section - Dark Theme */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #e2e8f0; /* Lighter text for contrast */
}

.header p {
    color: #a0aec0; /* Muted light text */
    margin-top: 0.5rem;
}

/* Input Form - Dark Theme */
.input-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

#taskInput {
    flex-grow: 1;
    width: 100%;
    padding: 0.85rem 1.15rem;
    background-color: #212936; /* Darker input background */
    border: 2px solid #4a5568; /* Darker border */
    border-radius: 0.75rem;
    color: #e2e8f0; /* Lighter text color */
    outline: none;
    transition: all 0.3s ease;
}

#taskInput::placeholder {
    color: #718096; /* Muted placeholder */
}

#taskInput:focus {
    border-color: #63b3ed; /* Brighter blue for focus */
    background-color: #2d3748; /* Slight change on focus */
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2); /* Blue shadow on focus */
}

/* Add Task Button - Dark Theme */
#addTaskBtn {
    background: linear-gradient(145deg, #4299e1, #3182ce); /* Modern blue gradient */
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.25); /* Blue shadow */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#addTaskBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.3);
}

#addTaskBtn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.25);
}

/* Task List - Dark Theme */
#taskList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: #2d3748; /* Darker task item background */
    border: 1px solid #4a5568; /* Darker border */
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle dark shadow */
    transition: all 0.2s ease-in-out;
}

.task-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* More prominent dark shadow on hover */
}

.task-item p {
    margin: 0;
    color: #e2e8f0; /* Lighter text for task items */
}

#alert {
    display: none;
    background-color: #4299e1; /* Blue alert background */
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.5rem;
}

#closeAlertBtn{
    background-color: #3182ce; /* Slightly darker blue for close button */
    border-radius: 5px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    top: 0.5rem;
    right: 0.75rem;
}
#placeholder {
    color: e2e8f0; /* Lighter placeholder text */
}

#warning {
    display:none;
    color: #f56565; /* Red warning text */
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
}