.task {
    /* ... your existing task styles ... */
    cursor: auto; /* Indicate that tasks are draggable */
}
.task .ui-draggable-handle {
    /* ... your existing task styles ... */
    cursor: move; /* Indicate that tasks are draggable */
}
.task-list {
    /* ... your existing task list styles ... */
    min-height: 100px; /* Ensure drop zones have some height */
}
body {
    font-family: sans-serif;
    margin-top: 74px;
}

h2, h3 {
    margin-top: 20px;
}
.header {
    background-color: #2a2a2a;
    padding: 5px 20px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9;
    box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px, rgba(0, 0, 0, 0.2) 0px 1px 5px 0px;
}

.header-logo img {
  height: 50px; /* Adjust logo height as needed */
}

.header-menu {
    margin-left: 40px;
}

.header-menu a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    margin: 0px 0px 0px 5px;
    color: rgb(0, 0, 0);
    border: 1px solid rgb(42, 42, 42);
    line-height: 20px;
    padding: 6px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    background: rgb(62, 62, 62);
    box-shadow: rgba(0, 0, 0, 0.29) 0px 2px 2px 0px inset, rgba(0, 0, 0, 0.28) 0px 3px 1px -2px inset, rgba(0, 0, 0, 0.33) 0px 1px 5px 0px inset;
    letter-spacing: 1px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 500;
}
.header-menu a.active {
    color: rgb(33, 150, 243);
}

.task-list {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
    min-height: 100px; 
}

.task {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    cursor: move;
}

.task:last-child {
    border-bottom: none;
}

.notes-section {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    z-index: 9999;
}

.notes-textarea {
    width: 100%;
    height: 80px;
    resize: vertical;
}
/* General Styles */
body {
    font-family: 'Arial', sans-serif; /* Choose your preferred font */
    margin: 74px 0 200px;
    padding: 20px;
    background-color: #f4f4f4; /* Light background color */
}

h2, h3 {
    color: #333; /* Dark text color for headings */
}

/* Task Lists */
.task-list {
    background-color: #fff; /* White background for task lists */
    border-radius: 5px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    padding: 20px;
    margin-bottom: 30px;
}

.task {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    display: flex; /* Use flexbox for better layout control */
    align-items: center; /* Vertically align items */
    cursor: auto;
}

.task:last-child {
    border-bottom: none;
}

.task-title {
    flex-grow: 1; /* Allow the title to expand and take available space */
    margin-right: 20px;
}

.task-assigned-to, .task-created-at, .task-completed-at, .task-priority {
    font-size: 0.9em; /* Slightly smaller font for metadata */
    /* Gray text color for metadata */
    margin-right: 10px;
}

/* Buttons */
button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 3px; /* Rounded corners for buttons */
}

button:hover {
    opacity: 0.8; /* Slightly darken on hover */
}

.mark-incomplete-btn {
    background-color: #f44336; /* Red */
}

/* Notes Section */
.notes-section {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: none; /* Initially hidden */
}

.notes-textarea {
    width: 100%;
    height: 80px;
    resize: vertical;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Task Counters */
#task-counters ul {
    list-style: none;
    padding: 0;
}

#task-counters li {
    margin-bottom: 5px;
}

/* Forms */
form label {
    display: block;
    margin-bottom: 5px;
}

form input[type="text"], form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box; /* Include padding and border in the total width */
    margin-bottom: 10px;
}

form input[type="submit"] {
    width: auto; /* Let the submit button take its natural width */
    cursor: pointer;
}
/* ... (Your existing CSS code) ... */

/* Task Priority Colors */
.task:hover {
    background: #313131;
}
.task-priority {
    font-weight: bold;
    padding: 3px 5px;
    border-radius: 3px;
}

.task-priority.High {
    background-color: #f44336; /* Red for High Priority */
    color: white;
}

.task-priority.Medium {
    background-color: #ff9800; /* Orange for Medium Priority */
    color: white;
}

.task-priority.Low {
    background-color: #409ae1; /* Green for Low Priority */
    color: white;
}

.task-priority.None {
    background-color: #eee; /* Light gray for No Priority */
    color: #333;
}

.task input[type="text"] {
    min-width: 50%;
    margin-right: 20px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}
span.draggable.ui-draggable-handle {
    font-size: 30px;
    margin: -4px 0 0 0;
    cursor: move;
    min-width: 30px;
}
.notes-section textarea {
    max-width: 96%;
}
.notes-section {
    display: block;
    position: fixed;
    background: #fff;
    left: 20%;
    right: 20%;
    box-shadow: 0 14px 27px #0000005e;
    top: 50%;
    transform: translateY(-60%);
}
/* Task Priority Colors */
.task-priority {
    font-weight: bold;
    padding: 3px 5px;
    border-radius: 3px;
}

.task-priority.High {
    background-color: #fc4136; /* Updated color for High Priority */
    color: white;
}

.task-priority.Medium {
    background-color: #ff9800; 
    color: white;
}


.task-priority.None {
    background-color: #eee; 
    color: #333;
}
p.loContainer {
    position: absolute;
    right: 2%;
    top: 0;
}
form#createTaskForm {
    display: flex;
    justify-content: center;
    align-items: baseline;
}
form#createTaskForm label {
    margin-right: 10px;
}
form#createTaskForm input {
    max-width: 50%;
    margin-right: 20px;
}
form#createTaskForm select {
    width: 200px;
    margin-right: 20px;
}
.center {
    text-align: center;
}
table#task-counters td {
    width: 100px;
    text-align: center;
    border: 1px solid #ddd;
}
#task-counters {
  margin: 0 auto;  /* Center the table horizontally */
  width: 50%;      /* Or set a specific width for the table */
}
.filter-right {
    position: absolute;
    text-align: right;
    right: 1.5%;
    margin-top: -40px;
}
.createTask {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px 0 10px;
}
#task-counters {
    margin: 0 auto;
    width: 50%;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0px;
}
div#completed-tasks .ui-draggable-handle {
    display: none;
}

/* DARK MODE */
h2, h3, p, span, td, th, input, label, select, textarea {
    color: rgb(33, 150, 243);
}
body {
    font-family: 'Roboto', sans-serif;
    background-color: #2a2a2a;
}
#task-counters {
    background-color: #2a2a2a;
    box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px, rgba(0, 0, 0, 0.2) 0px 1px 5px 0px;
/*    border-bottom: 4px solid rgb(62, 62, 62);*/
    margin-bottom: -36px;
}
table#task-counters td {
    border-color: #3e3e3e;
}
.task-list {
    background-color: #2a2a2a;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0px;
    margin-bottom: 30px;
    box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px, rgba(0, 0, 0, 0.2) 0px 1px 5px 0px;
    border-color: #3e3e3e;
}
.task {
    border-bottom: 1px solid #3e3e3e;
    padding: 15px;
}
select {
    background: #2a2a2a;
    border-color: #3e3e3e;
    border-radius: 3px;
}
select#task-filter {
    padding: 3px;
    font-size: 15px;
}
.createTask {
    background-color: #2a2a2a;
    border-top: 4px solid rgb(62, 62, 62);
}
form input[type="text"], form select {
    border: 1px solid #3e3e3e;
    background: #2a2a2a;
    font-size: 16px;
}
input:focus-visible {
    outline: 2px solid #3e3e3e !important;
}
input[type="submit"] {
    background: #2a2a2a;
    padding: 8px;
    font-size: 15px;
    font-weight: 500;
}
span.task-priority {
    padding: 6px 5px;
    min-width: 60px;
    text-align: center;
    margin-right: 5px;
}
span.task-priority.None {
    background: #8b8b8b;
}
.task-priority {
    color: #2a2a2a !important;
}
button.see-notes-btn {
    background: #737373;
    margin-right: 5px;
}
button {
    color: #2a2a2a;
    font-weight: 600;
}
.notes-section {
    box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px, rgba(0, 0, 0, 0.2) 0px 1px 5px 0px;
    background: #2a2a2a;
    border: 1px solid #3e3e3e;
}
.notes-section textarea {
    box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px, rgba(0, 0, 0, 0.2) 0px 1px 5px 0px;
    background: #2a2a2a;
    border: 1px solid #3e3e3e;
    min-height: 400px;
    padding: 20px;
    font-size: 16px;
}
.notes-section textarea:focus-visible {
    outline: 2px solid #3e3e3e !important;
}
button.save-notes-btn {
    float: right;
    margin: 10px 3px 2px;
}
body#loginPage input {
    width: 400px;
    max-width: 98%;
    height: 40px;
    background: #2a2a2a;
    border: 1px solid #3e3e3e;
    text-align: center;
}
body#loginPage {
    text-align: center;
}
body#loginPage input[type="submit"] {
    margin-top: 20px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 29px;
}
#loginPage form {
    margin-top: 30px !important;
}
.loContainer a {
    color: #ddd;
    font-size: 15px;
    display: block;
    text-align: right;
    text-decoration: none;
}
.existing-notes {
    display: none;
}
div#blackBox {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: #00000094;
    display: none;
}
.task input {
    background: #2a2a2a;
    border: 1px solid #3e3e3e;
    font-size: 16px;
}
.task input:focus-visible {
    outline: 2px solid #3e3e3e !important;
    border: 1px solid #3e3e3e !important
}
.task select {
    font-size: 16px;
    padding: 5px;
    margin-right: 10px;
}
#task-counters td, select option, span.task-assigned-to {
    text-transform: capitalize;
}
body>a {
    color: #535353;
    text-decoration: none;
}
div#completed-tasks span, .greenFont {
    color: #4CAF50;
}
div#completed-tasks .task-priority {
    display: none;
}
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000; /* Ensure it's on top of other elements */
}
.toast {
    background-color: #333;
    color: #2a2a2a;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease-in-out;
}

.toast.show {
    opacity: 1; /* Show the toast */
}

.toast.success {
    background-color: #4CAF50; /* Green background for success */
}

.toast.error {
    background-color: #f44336; /* Red background for error   
 */
}
.note-badge {
    display: inline-block;
    background-color: #FFC107;
    color: white;
    padding: 0;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    margin-right: 5px;
    width: 5px;
    height: 5px;
    margin-left: -11px;
    margin-bottom: 2px;
}
span.task-assigned-to {
    border: 1px solid #3e3e3e;
    border-radius: 3px;
    padding: 5px 0;
    min-width: 68px;
    text-align: center;
    background: #35343482;
    cursor: default;
    margin-right: 10px;
}
span.task-created-at {
    color: #737373;
}
.task-priority {
    cursor: default;
}
.task-title {
    letter-spacing: 0.1px;
}
.task-info {
    display: flex;
    flex-direction: column; /* Stack title and created_at vertically */
    margin-right: 20px; /* Add some space to the right */
    margin-bottom: -6px; 
}
.task-left {
    display: flex;
    align-items: center;
    min-width: 70%;
}
.task {
    justify-content: space-between;
}
.task-actions {
    display: flex;
    align-items: center;
    flex-direction: row;
}
.task-info input {
    min-width: 65vw !important;
}
/*.search-container {
    text-align: center;
    margin: 20px 0 -50px;
}
#global-search {
    padding: 10px;
    border: 1px solid #3e3e3e;
    border-radius: 5px;
    width: 600px;
    background: #2a2a2a;
    font-size: 16px;
    box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px, rgba(0, 0, 0, 0.2) 0px 1px 5px 0px;
}*/
.search-container {
    text-align: center;
    margin-left: auto;
    margin-right: 113px;
}
#global-search {
    padding: 10px;
    border: 1px solid #3e3e3e;
    border-radius: 5px;
    width: 400px;
    background: #2a2a2a;
    font-size: 16px;
    box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 3px 1px -2px, rgba(0, 0, 0, 0.2) 0px 1px 5px 0px;
}
#global-search:focus-visible {
    outline: 1px solid #3e3e3e !important;
}
table#task-counters thead th {
    padding: 3px 0;
}
table#task-counters thead {
    background: #3e3e3e;
}

@media (width <= 1250px) {
    .header-menu {
        display: none;
    }
}