html.dark-mode {
    --primary-bg-color: #121212;
    --secondary-bg-color: #1e1e1e;
    --accent-color: #81c784;
    --button-hover-color: #66bb6a;
    --table-bg-color: #2c2c2c;
    --task-day-bg-color: #81c784;
    --task-hover-day-bg-color: #437a4f;
    --low-priority-bg-color: #81c784;
    --medium-priority-bg-color: #fa9135;
    --high-priority-bg-color: #e57373;
    --danger-color: #e57373;
    --current-day-bg: #55a7ff;
    --edit-button-color: #55a7ff;
    --calendar-header-bg: #777777;
    --calendar-grid-hover-bg: #757575;
    --calendar-grid-bg: #424242;
    --calendar-body-bg: #303030;
    --font-bg-color: #ffffff;
    --view-button-bg: #969696;
    --no-color-bg: #ffffff00;
}

html.light-mode {
    --primary-bg-color: #f0f0f0;
    --secondary-bg-color: white;
    --accent-color: #81c784;
    --button-hover-color: #258a3b;
    --table-bg-color: #f8f8f8;
    --task-day-bg-color: #81c784;
    --task-hover-day-bg-color: #96ffad;
    --low-priority-bg-color: #d4edda;
    --medium-priority-bg-color: #fff3cd;
    --high-priority-bg-color: #f8d7da;
    --danger-color: #fc5364;
    --current-day-bg: #c0deff;
    --edit-button-color: #55a7ff;
    --calendar-header-bg: #969696;
    --calendar-grid-hover-bg: #d3d3d3;
    --calendar-grid-bg: #ffffff;
    --calendar-body-bg: #e9ecef;
    --font-bg-color: #000000;
    --view-button-bg: #969696;
    --no-color-bg: #ffffff00;
}
body.no-scroll {
    overflow: hidden;
}
body {
    font-family: Arial, sans-serif;
    background-color: var(--primary-bg-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    cursor: default;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 120px);
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    display: none;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
    padding-top: 40px;
    padding-bottom: 80px;
}

.content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 25px;
    justify-content: center;
    align-items: center;
    cursor: auto;
    position: relative;
}

.overlay-card {
    background-color: var(--secondary-bg-color);
    width: 400px;
    max-width: 90%;
    max-height: 90%;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
    position: relative;
}


.overlay-card.low {
    border-top: 5px solid var(--low-priority-bg-color);
}

.overlay-card.medium {
    border-top: 5px solid var(--medium-priority-bg-color);
}

.overlay-card.high {
    border-top: 5px solid var(--high-priority-bg-color);
}

.overlay-no-btn{
    display: none;
    bottom: 0;
    width: 6%;
    margin-bottom: 1%;
    justify-content: center;
    position: fixed;
    background-color: var(--danger-color);
    z-index: 1000;
    opacity: 0.3;
}

.overlay-no-btn:hover{
    background-color: var(--danger-color);
    opacity: 1;
}

::-webkit-scrollbar {
    width: 4px;
    height: 8px;
}


::-webkit-scrollbar-track {
    background: var(--no-color-bg);
    border-radius: 10px;
}


::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}


.task-title {
    max-width: 400px;
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
}

.task-description {
    display: inline-block;
    white-space: normal;
    word-wrap: break-word;
    max-width: 400px;
}

.close-btn {
    color: var(--font-bg-color);
    background-color: var(--no-color-bg) ;
    position: absolute;
    font-size: large;
    width: 40px;
    left: 90.7%;
    top: 0.5%;
}

.close-btn:hover {
    color: var(--danger-color);
    background-color: var(--no-color-bg) ;
}

.window {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    justify-content: center;
    grid-gap: 15px;
    color: var(--font-bg-color);
}

.material-icons:not(.copy) {
    position: absolute;
    user-select: none;
    top: 0.6%;
    right: 0.1%;
    margin: 10px;
    color: var(--font-bg-color);
    font-size: 14px;
    line-height: 2px;
    cursor: pointer;
}

.container {
    background: var(--secondary-bg-color);
    width: 808.8px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

form {
    display: grid;
    grid-gap: 15px;
}

.form-group {
    min-width: 0%;
    display: flex;
    flex-direction: column;
}

input, textarea, select, button {
    padding: 10px;
    font-size: 14px;
    max-width: 100%;
    background-color: var(--table-bg-color);
    color: var(--font-bg-color);
    border: 1px solid var(--calendar-grid-hover-bg);
    border-radius: 4px;
}

.overlayTextarea {
    max-width: 379px;
    min-width: 379px;
    min-height: 160px;
}

textarea {
    max-width: 97%;
    min-height: 173px;
    max-height: 173px;
    min-width: 97%;
}

.hidden {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1)
}

html.light-mode input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0)
}

button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: var(--button-hover-color);
}

.cfStrong {
    justify-self: center;
}

.cfButton {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.cfButton button {
    width: 100px;
}

.cfButton button.no-btn{
    background: var(--danger-color)
}

.no-btn:hover {
    opacity: 0.8;
}

.task-container {
    order: 1;
    overflow-x: auto;
    background: var(--secondary-bg-color);
    width: 1672.6px;
    padding: 20px;
    padding-top: 0px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
    
}

th {
    background-color: var(--table-bg-color);
    max-width: 400px;
}

td.priority-low {
    background-color: var(--low-priority-bg-color);
}

td.priority-medium {
    background-color: var(--medium-priority-bg-color);
}

td.priority-high {
    background-color: var(--high-priority-bg-color);
}

.name{
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.description {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actions {
    align-content: center;
}

.actions button {
    background-color: var(--danger-color);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    
    cursor: pointer;
}

.actions button.edit {
    background-color: var(--edit-button-color);
}

.actions button.view {
    background-color: var(--view-button-bg);
}

.actions button:hover {
    opacity: 0.8;
}

.actions button.material-icons {
    background-color: var(--no-color-bg);
    float: right;
    color: var(--font-bg-color);
    font-size: 18px;
}

.calendar {
    background: var(--secondary-bg-color);
    width: 808.8px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--calendar-header-bg);
    color: white;
    padding: 1rem;
}

.calendar-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    text-align: center;
    flex-grow: 1;
}

.day-box.today{
    background-color: var(--current-day-bg);
}

.day-box.today:hover{
    background-color:var(--current-day-bg);
    filter: invert(0.2);
    color: var(--font-bg-color);
}

.day-box.low {
    background-color: var(--low-priority-bg-color);
}

.day-box.medium {
    background-color: var(--medium-priority-bg-color);
}

.day-box.high {
    background-color: var(--high-priority-bg-color);
}

.day-box.low:hover {
    background-color: var(--low-priority-bg-color);
    filter: invert(0.2);
    color: var(--font-bg-color);
}

.day-box.medium:hover {
    background-color: var(--medium-priority-bg-color);
    filter: invert(0.2);
    color: var(--font-bg-color);
}

.day-box.high:hover {
    background-color: var(--high-priority-bg-color);
    filter: invert(0.2);
    color: var(--font-bg-color);
}

.calendar-body {
    padding: 1rem;
}
.week-Days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    background-color: var(--calendar-header-bg);
    color: #ffffff;
    flex-direction: row;
}
.week-End {
    background-color: #5f5f5f;
    color: #dfdfdf;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: var(--calendar-body-bg);
}

.grid-container div {
    background: var(--calendar-grid-bg);
    padding: 28px 0;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}

.grid-container div:hover {
    background-color: var(--calendar-grid-hover-bg);
    color: white;
}

.grid-container .blank-day {
    background: var(--calendar-blank-bg);
        cursor: default;
    color: #757575;
}
.grid-container .blank-day:hover {
    background: var(--calendar-blank-bg);
    color: #757575;
}

@media screen and (max-width: 768px) {
    .description {
      display: none; /* Hides the element */
    }
    .due-date {
        display: none; /* Hides the element */
      }
}