:root {
    --theme-color: #1c1a99;
    /* Default theme color */
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 50px 10px 0 10px;
    padding: 0;
    height: 100vh;
}

#todo-container {
    width: 80%;
    max-width: 600px;
    margin: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding-bottom: 40px;
}

#todo-header,
#completed-header {
    background-color: var(--theme-color);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.task-list {
    padding: 10px;
}

.task-item {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.completed .task-item {
    background-color: #e0e0e0;
}

.task-text {
    display: flex;
    align-items: center;
}

.checkbox {
    margin-right: 10px;
}

.date-info {
    margin-top: 5px;
    font-size: 14px;
}

.empty-message {
    padding: 10px;
    text-align: center;
    color: #999;
}

#toast {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Existing CSS */

#completed-list {
    width: 80%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* New CSS for delete button */
.delete-completed-button {
    width: 50%;
    margin: 20px auto 50px;
    /* Add bottom margin */
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #aa0000;
    /* Dark red color */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-completed-button:hover {
    background-color: #880000;
    /* Slightly darker red on hover */
}

/* New CSS for edit and delete icons */
.edit-icon,
.delete-icon {
    cursor: pointer;
    margin-left: 10px;
}

.action-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.delete-icon {
    color: #e74c3c;
}

.add-task-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

#new-todo {
    width: 80%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#new-todo:focus {
    outline: none;
    border-color: var(--theme-color);
}

button {
    width: calc(20% - 20px);
    /* Subtracting padding for button */
    padding: 8px;
    border: none;
    border-radius: 5px;
    background-color: var(--theme-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.completed .action-icons .edit-icon {
    display: none;
}

/* Update position of theme-color-picker to top right */
#theme-color-picker {
    position: absolute;
    top: 10px;
    right: 10px;
}

.footer {
    text-align: center;
    position: fixed;
    bottom: 0; /* Place it at the bottom of the viewport */
    left: 0;
    width: 100%; /* Make it span the full width */
    background-color: var(--theme-color); /* Adjust the background color as needed */
    color: white;
    padding: 10px 0; /* Add some padding for spacing */
    font-size: 14px; /* Adjust the font size as needed */
}

.footer a {
    color: unset;
    text-decoration: none;
    font-weight: 900;
    border-bottom: 2px dotted; /* Add an underline on hover for the hyperlink */
}

.footer a:hover {
    border-bottom: 2px dotted; /* Add an underline on hover for the hyperlink */
}

a.external::after {
    content: "↗";
    color: white;
    position: relative;
    top: -3px;
    right: -2px;
}

/* CSS for copy icon */
.copy-icon {
    cursor: pointer;
    margin-left: 10px;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    color: #555;
    transition: color 0.3s;
}

.copy-icon:hover {
    color: #888;
}
