/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 15 May 2020, 19:07:03
    Author     : Nathan
*/

/* Modern Top Bar Styling - Keeping original structure */
#siteTopBar {
    height: 70px;
    background: linear-gradient(135deg, #4361ee 0%, #4895ef 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: none;
    position: relative;
    z-index: 1000;
}

#siteTopBar img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: none;
    transition: transform 0.3s ease;
}

#siteTopBar img:hover {
    transform: scale(1.05);
}

#siteTopBar .w3-display-left {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#siteTopBar .w3-button {
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

#siteTopBar .w3-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#siteTopBar h6.w3-button {
    font-weight: 500;
    font-size: 16px;
    padding: 8px 16px;
    font-family: 'Raleway', sans-serif;
}

/* Typography Enhancements */
body {
    font-family: 'Raleway', Verdana, sans-serif;
}

/* Original styles below */
body{
    margin: 0px;
    padding: 0px;
    font-family: Verdana,sans-serif;
    height: 100%;
}

#siteTopBar{
    height: 70px;
    border-bottom: 4px solid #0182aa;
}
#logout{


}
.tooltip {
    position: relative;
    display: inline-block;
}
.assignedToMe {
    border: 2px solid rgb(5, 7, 141) !important;
    background-color: #fff8e1; /* Light yellow background */
    position: relative;
  }
  
  /* Add a badge to indicate assignment */
  .assignedToMe::before {
    content: "Assigned to You";
    position: absolute;
    top: 3px;
    left: 10px;
    background-color: rgb(47, 9, 185);
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
  }
#addButton {
    font-size: 24px;
    padding: 10px 20px;
    line-height: 1;
}

#addModal .w3-button {
    text-align: left;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 320px;
    margin-left: 10px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
}
.workflow-help-text {
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}
#burgerMenu{
    width: 40px;
    height: 40px;
    padding: 10px;
    font-size: 30px;
    background-color: #ffffff;
    color: #020024;
    text-align: center;
    position: absolute;
    top: 20px;
    right: 3vw;
    text-shadow: none;
    border: 2px solid #0182aa;

}
#mobileMenu{
    font-size: 14px;
    padding: 0px;
    background-color: #ffffff;
    color: #020024;
    text-align: center;

    text-shadow: none;
}
.noDecoration{
    text-decoration: none;
}
.failedUpdate{
    color: #ff0000;
    border: 1px solid #ff0000;
}
#welcome{
    padding-top: 20vh;
    font-size: 4vh;

    font-weight: bolder;
}
#gobutton{
    text-transform: uppercase;
    padding-top: 10vh;
    font-size: 3vh;
    font-weight: bold;

}
#gobutton a:hover{
    font-size: 3.5vh;
}
#signinTitle{
    font-size: 3.5vw;
    padding-bottom: 7.5vh;
}
#signinBox{
    padding-top: 15vh;
}
.center{
    text-align: center;
}
.signinText{
    display: inline-block;
    width: 12vw;
    text-align: right;
    font-size: 2vw;
}
.signinButton{
    font-size: 2vw;
    width: 20vw;
}
.signinSubmit{
    padding-top: 7.5vh;
}
a{
    -o-transition:.25s;
    -ms-transition:.25s;
    -moz-transition:.25s;
    -webkit-transition:.25s;
    /* ...and now for the proper property */
    transition:.25s;
    color: #000080;
}

#letsgo{
    padding-top: 100px;
    font-size: 4vh;
    animation: fadeInAnimation ease 1s ;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
.fadeonhover:hover{
    animation: fadeInAnimation ease 1s ;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes fadeOutAnimation {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
#sortable {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 1.4em;
}
#sortable li {
    margin: 0 13px 13px 13px;
    padding: 0.4em;
    padding-left: 1.5em;
}
#sortable li span {
    position: absolute;
    margin-left: -1.3em;
}
#pageTaskList {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 1.4em;
}
#pageTaskList li {
    margin: 0 13px 13px 13px;
    padding: 0.4em;
    padding-left: 1.5em;
}
#pageTaskList li span {
    position: absolute;
    margin-left: -1.3em;
}
#pageWorkflowList {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 1.4em;
}
#pageWorkflowList li {
    margin: 0 13px 13px 13px;
    padding: 0.4em;
    padding-left: 1.5em;
}
#pageWorkflowList li span {
    position: absolute;
    margin-left: -1.3em;
}

#pageWorkflowTasksList {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 1.4em;
}
#pageWorkflowTasksList li {
    margin: 0 13px 13px 13px;
    padding: 0.4em;
    padding-left: 1.5em;
}
#pageWorkflowTasksList li span {
    position: absolute;
    margin-left: -1.3em;
}


.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin: auto;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}




/*
ON OFF SWITCHES
*/


.onoffswitch-inner-friday:after {
    content: "Friday (off)";
}
.onoffswitch-inner-saturday:after {
    content: "Saturday (off)";
}
.onoffswitch-inner-sunday:after {
    content: "Sunday (off)";
}



/* end of on off switches*/

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
.spinner {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3498db;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Flexbox centering */
.w3-flexbox {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.email-option {
    cursor: pointer;
    font-size: smaller;
}
.email-dropdown-menu {
    position: fixed;
    z-index: 1000;
    display: none;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.email-dropdown-menu a {
    color: black;
    padding: 12px 16px;
    display: block;
}
.email-dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.cancel-email-option {
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
}
.phone-option {
    cursor: pointer;
    font-size: smaller;
}
.phone-dropdown-menu {
    position: fixed;
    z-index: 1000;
    display: none;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.phone-dropdown-menu a {
    color: black;
    padding: 12px 16px;
    display: block;
}
.phone-dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.cancel-phone-option {
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
}


.custom-context-menu {
    display: none;
    position: absolute;
    background-color: #333; /* Darker background for a modern look */
    border: none; /* Remove border for a clean look */
    border-radius: 5px; /* Rounded corners for a sleek appearance */
    padding: 10px 0; /* Padding on top and bottom of the menu */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Stronger shadow for depth */
    color: #fff; /* White text color */
    font-family: 'Segoe UI', Arial, sans-serif; /* Modern font family */
    font-size: 16px; /* Slightly larger font size for readability */
    min-width: 150px; /* Minimum width to ensure menu items do not feel cramped */
    box-sizing: border-box; /* Ensures padding is included in width */
}

.menu-item {
    background-color: #444; /* Button-like background */
    margin: 5px 0; /* Spacing between button-like items */
    padding: 10px 20px; /* Button-like padding */
    border-radius: 3px; /* Rounded corners for button-like items */
    cursor: pointer;
    transition: background-color 0.2s; /* Smooth transition for hover effect */
}

.menu-item a {
    text-decoration: none; /* Remove underlines from links */
    color: #fff; /* White text color for readability */
    display: block; /* Make the links fill the entire menu item for a larger click area */
}

.menu-item:hover {
    background-color: #555; /* Slightly lighter background color on hover for contrast */
}
#searchInput{
    margin-left: 20px;
    margin-top: 20px;
}

#addModal .w3-modal-content header {
    background-color: #0182aa !important;
    color: white;
}

#addModal #newWorkflow-f {
    background-color: #3498db !important; 
}

#addModal #newTask-f {
    background-color: #2980b9 !important;
}

#addModal #newInvoice-f {
    background-color: #1c638e !important;
}

#addModal .w3-button {
    color: white;
    margin-bottom: 10px;
    text-align: left;
}

#addModal .w3-button:hover {
    opacity: 0.8;
}

.wf_manage_category-item {
    padding: 5px 0;
    margin: 10px 0;
    margin-bottom: 5px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    position: relative;
    align-items: center;
    list-style-type: none;
}
#wf_manage_categoryList {
    position: relative;
    z-index: 1;
    list-style-type: none;
    padding-left: 0;
}
.wf_manage_category-item:hover {
    background-color: #e0e0e0;
}
.folder-icon {
    display: none;
    width: 20px;
    text-align: center;
    transition: transform 0.3s;
}
.wf_manage_category-item i {
    margin-right: 10px; /* Increase right margin of the icon */
    color: #ffd700;
    font-size: 24px;
}
.wf_manage_category-item.expanded > .folder-icon {
    transform: rotate(90deg);
}
#wf_manage_workflowList li {
    padding: 10px;
    margin: 5px 0;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 3px;
    list-style-type: none;
}
.folder-content {
    display: block !important;
    margin-left: 20px;
}
.ui-draggable-dragging {
    opacity: 0.7;
}
.ui-state-hover {
    background-color: #f0f0f0;
}
.wf_manage_category-item.expanded > .folder-content {
    display: block;
}
/* Add styles for workflows */
.workflow-item {
    padding: 10px;
    margin: 5px 0;
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 3px;
    list-style-type: none;
}
#wf_manage_workflowList li[data-top-level="true"] {
    display: block !important;
}
.top-level-drop-zone {
    border: 2px dashed #ccc;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    background-color: #f9f9f9;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.top-level-drop-zone.ui-state-hover {
    background-color: #e9e9e9;
    border-color: #999;
}
.top-level-drop-zone-visible {
    opacity: 1;
    transition: opacity 0.3s ease;
}
.workflow_folderupdate_loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.workflow_folderupdate_loadingSpinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: workflow_folderupdate_spin 1s linear infinite;
}




@keyframes workflow_folderupdate_spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wf_manage_category-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 15px; /* Add left padding here */
    padding-right: 15px; /* Add right padding for balance */

}
.folder-name {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Allow the folder name to take up available space */

}


.delete-folder-btn {
    padding: 2px 8px;
    border: 1px solid red;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    margin-right: 20px;
    color: red;
    font-size: 14px;
    flex-shrink: 0;
}

.delete-folder-btn:hover {
    background-color: #ffeeee;
}
.minus-symbol {
    color: red;
    font-size: 18px;
    line-height: 1;
}
.folder-actions {
    display: inline-flex;
    gap: 10px;
    margin-left: 15px;
    opacity: 0.6;
    transition: opacity 0.2s ease-in-out;
}

.wf_manage_category-item-content:hover .folder-actions {
    opacity: 1;
}

.btn-inline {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 2px 5px;
    font-size: 0.9em;
    transition: color 0.2s ease-in-out;
}

.btn-inline:hover {
    color: #0056b3;
    text-decoration: underline;
}
.nest-booking-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

#nestCalendar {
    width: 100%;
    max-width: 300px;
}
#nestLessonSelect {
    width: 100%;
    max-width: 300px;
}

.flatpickr-calendar {
    margin: 0 auto;
}
.workflow-nest-dropdown {
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    font-size: 14px;
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.workflow-nest-dropdown optgroup {
    font-weight: bold;
}

.workflow-nest-dropdown option {
    padding: 5px;
}
.doowit-custom-field-card-2023 {
    position: relative;
    min-height: 150px;
}

.doowit-custom-field-action-2023 {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.doowit-info-icon-2023 {
    cursor: help;
    position: relative;
    display: inline-block;
}

.doowit-info-tooltip-2023 {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 12px;
}

.doowit-info-tooltip-2023::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.doowit-info-icon-2023:hover .doowit-info-tooltip-2023 {
    visibility: visible;
    opacity: 1;
}

li.ui-state-default {
    transition: all 0.3s ease;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 8px !important;
    border: 1px solid #e0e0e0 !important;
    overflow: hidden;
}

li.ui-state-default:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px);
}

li.ui-state-default:has(.assignedToOther) {
    opacity: 0.35;
}

li.ui-state-default:has(.assignedToOther):hover {
    opacity: 1;
}

/* Urgent Task Styling */
li.ui-state-default[style*="background-color: rgb(255, 255, 204)"] {
    background: linear-gradient(to right, #fff8e1, #fffde7) !important;
}

/* Assigned to You Styling */
.assignedToMe {
    border: 2px solid rgb(5, 7, 141) !important;
    background-color: #fff8e1 !important; /* Light yellow background */
    position: relative;
    border-radius: 8px !important;
}
  
/* Badge for assigned tasks */
.assignedToMe::before {
    content: "Assigned to You";
    position: absolute;
    top: 6px;
    left: 10px;
    background-color: rgb(47, 9, 185);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-family: 'Raleway', sans-serif;
}

/* Task content styling */
li.ui-state-default .task-content {
    padding: 8px 12px;
    font-family: 'Raleway', sans-serif;
}

/* Task title styling */
li.ui-state-default .task-title {
    font-weight: 600;
    color: #333;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
}

/* Task metadata styling */
li.ui-state-default .task-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.task-separator.subheading {
    background-color: #f0f0f0; /* Light gray background */
    font-weight: bold; /* Bold font */
    text-align: center; /* Center text */
    padding: 10px; /* Space around text */
    margin: 10px 0; /* Space above and below */
    border-bottom: 2px solid #ccc; /* Optional border for a more distinct separation */
    font-size: 16px; /* Make the font slightly larger */
    color: #333; /* Darker text color */
    border-radius: 6px; /* Rounded corners */
}

.spinner-container {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    border-radius: 4px;
    animation: fade-background 2s infinite;
}

.fa-spin {
    margin-right: 5px;
}

@keyframes fade-background {
    0%, 100% { background-color: #fffacd; } /* Light yellow */
    50% { background-color: #ffd700; } /* Darker yellow */
}

/* Day schedule indicator */
.day-schedule-indicator {
    display: inline-block;
    margin: 0 auto;
    font-size: 11px;
    color: #00098a;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    background-color: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.3);
    border-radius: 12px;
    padding: 2px 8px;
    white-space: nowrap;
}

.day-schedule-indicator i {
    margin-right: 4px;
    font-size: 10px;
}

.day-schedule-today-only {
    background-color: rgba(67, 97, 238, 0.1);
    color: #000ece;
    border: 1px solid rgba(67, 97, 238, 0.3);
}

.day-schedule-specific-days {
    background-color: rgba(67, 97, 238, 0.1);
    color: #000ece;
    border: 1px solid rgba(67, 97, 238, 0.3);
}

/* Day abbreviations for schedule indicator */
.day-abbr {
    display: inline-block;
    width: 14px;
    text-align: center;
    font-weight: 600;
    font-size: 10px;
}

.day-abbr.inactive {
    opacity: 0.3;
}

/* Add blue border to tasks with day schedule indicators */
li.ui-state-default:has(.day-schedule-indicator) {
    border: 2px solid #00098a !important;
}

.task-name-container {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #303030;
    color: #e0e0e0;
}

/* Dark mode top bar */
body.dark-mode #siteTopBar {
    background: #1a1a1a !important;
    border-bottom: 4px solid #4361ee !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode #siteTopBar .w3-display-left {
    color: #4361ee !important;
}

body.dark-mode #siteTopBar .w3-button {
    background-color: rgba(67, 97, 238, 0.1);
    color: #4361ee !important;
}

body.dark-mode #siteTopBar .w3-button:hover {
    background-color: rgba(67, 97, 238, 0.2);
}

/* Dark mode main interface */
body.dark-mode .w3-white {
    background-color: #444444 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .w3-light-grey,
body.dark-mode .w3-main {
    background-color: #303030 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .w3-panel {
    background-color: #1a1a1a !important;
}

body.dark-mode .w3-card,
body.dark-mode .w3-card-4 {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border: 1px solid #404040;
}

body.dark-mode .w3-modal-content {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-mode .w3-container h5,
body.dark-mode .w3-container span {
    color: #e0e0e0 !important;
}

/* Dark mode form elements */
body.dark-mode .w3-input,
body.dark-mode .w3-textarea,
body.dark-mode select {
    background-color: #4d4d4d;
    color: #e0e0e0;
    border-color: #5d5d5d;
}

body.dark-mode .w3-input:focus,
body.dark-mode .w3-textarea:focus {
    background-color: #5d5d5d;
    color: #ffffff;
}

/* Dark mode buttons */
body.dark-mode .w3-button {
    background-color: #4d4d4d !important;
    color: #e0e0e0 !important;
    border: 1px solid #5d5d5d !important;
}

body.dark-mode .w3-button:hover {
    background-color: #5d5d5d !important;
    color: #ffffff !important;
}

/* Dark mode task list styles - preserving functional colors but with lighter background */
body.dark-mode li.ui-state-default {
    background-color: #505050 !important; /* Using the requested #505050 color */
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    border-color: #606060 !important;
}

body.dark-mode li.ui-state-default:hover {
    background-color: #5a5a5a !important; /* Slightly lighter for hover */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode li.ui-state-default .task-title {
    color: #e0e0e0;
}

body.dark-mode li.ui-state-default .task-meta {
    color: #b0b0b0;
}

/* Dark mode task description and content */
body.dark-mode li.ui-state-default .w3-white {
    background-color: #444444 !important;
    color: #ffffff !important;
    border-color: #4d4d4d !important;
}

/* Dark mode for task status and metadata areas */
body.dark-mode li.ui-state-default .w3-left-align {
    color: #b0b0b0 !important;
}

/* Dark mode for comments area */
body.dark-mode #taskCommentArea .w3-container {
    background-color: #444444 !important;
    border-color: #4d4d4d !important;
}

body.dark-mode #taskCommentArea h4.w3-blue {
    background-color: #4361ee !important;
    color: white !important;
}

/* Dark mode assigned to you styling */
body.dark-mode .assignedToMe {
    background-color: #2a2a4d !important;
    border-color: #4361ee !important;
}

body.dark-mode .assignedToMe::before {
    background-color: #4361ee;
}

/* Dark mode urgent and important task styling - keeping original colors but 25% darker */
body.dark-mode li.ui-state-default .w3-tiny.w3-red {
    background-color: #c62828 !important; /* Darker red */
    color: #ffffff !important;
}

body.dark-mode li.ui-state-default .w3-tiny.w3-yellow {
    background-color: #fbc02d !important; /* Darker yellow */
    color: #333333 !important;
}

body.dark-mode li.ui-state-default .w3-tiny.w3-yellow.w3-border-red {
    background-color: #fbc02d !important; /* Darker yellow */
    color: #333333 !important;
    border-color: #c62828 !important; /* Darker red */
}

/* Dark mode task info window - stronger border and shadow */
body.dark-mode #taskInformation .w3-modal-content {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 3px solid #4361ee !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px rgba(67, 97, 238, 0.5) !important;
    overflow: hidden !important;
}

body.dark-mode #taskWorkflowInfo {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border: 2px solid #4361ee !important;
    border-radius: 8px !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5) !important;
}

/* Task buttons in dark mode - default style for all buttons */
body.dark-mode #taskInformation .w3-button,
body.dark-mode #addComment,
body.dark-mode #rescheduleNowButton,
body.dark-mode #rescheduleTomorrowButton,
body.dark-mode #taskInformation a.w3-button {
    color: #a9c6ff !important;
    border: 1px solid #a9c6ff !important;
    background-color: rgba(67, 97, 238, 0.1) !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    padding: 8px 16px !important;
    margin: 5px !important;
}

body.dark-mode #taskInformation .w3-button:hover,
body.dark-mode #addComment:hover,
body.dark-mode #rescheduleNowButton:hover,
body.dark-mode #rescheduleTomorrowButton:hover,
body.dark-mode #taskInformation a.w3-button:hover {
    background-color: rgba(67, 97, 238, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

/* Task name in dark mode - yellow with orange tint, more prominent */
body.dark-mode #currTask_taskName {
    color: #ffc107 !important;
    text-shadow: 0 0 2px rgba(255, 140, 0, 0.3);
    font-weight: 600 !important;
    padding: 15px 0 !important;
    border-bottom: 2px solid rgba(255, 140, 0, 0.3) !important;
    font-size: 1.5em !important;
    background-color: rgba(255, 140, 0, 0.05) !important;
}

/* Task status area in dark mode */
body.dark-mode #taskInformation .w3-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px 0 !important;
}

/* Privacy Mode Styles */
body.privacy-mode .w3-main,
body.privacy-mode #pageTaskList,
body.privacy-mode #pageWorkflowList,
body.privacy-mode #pageWorkflowTasksList {
    filter: blur(5px);
}

body.privacy-mode #siteTopBar,
body.privacy-mode .w3-sidebar,
body.privacy-mode .w3-modal,
body.privacy-mode #themeToggle,
body.privacy-mode #privacyToggle {
    filter: none !important;
}

/* Add blue border to tasks with day schedule indicators - brighter in dark mode */
body.dark-mode li.ui-state-default:has(.day-schedule-indicator) {
    border: 2px solid rgba(0, 9, 238, 0.8) !important;
}

/* Fix white section above task manager title */
body.dark-mode .w3-container {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

body.dark-mode header.w3-container {
    background-color: #1a1a1a !important;
}

/* Enhanced privacy mode styles */
/* Only blur the task lists in yellow mode - not the controls */
body.privacy-mode-yellow #pageTaskList,
body.privacy-mode-yellow #pageWorkflowList,
body.privacy-mode-yellow #pageWorkflowTasksList {
    filter: blur(5px) !important;
}

/* Explicitly disable blur for all panel content in yellow mode */
body.privacy-mode-yellow .w3-panel,
body.privacy-mode-yellow .w3-panel *,
body.privacy-mode-yellow form,
body.privacy-mode-yellow form *,
body.privacy-mode-yellow header.w3-container,
body.privacy-mode-yellow #searchInput,
body.privacy-mode-yellow .filter-options,
body.privacy-mode-yellow #categoryFilter,
body.privacy-mode-yellow select,
body.privacy-mode-yellow label,
body.privacy-mode-yellow input,
body.privacy-mode-yellow .w3-dropdown-content,
body.privacy-mode-yellow #pagination-container,
body.privacy-mode-yellow .w3-button:not(.task-action-button) {
    filter: none !important;
}

/* When search is active in yellow mode, remove blur from task lists */
body.privacy-mode-yellow.search-active #pageTaskList,
body.privacy-mode-yellow.search-active #pageWorkflowList,
body.privacy-mode-yellow.search-active #pageWorkflowTasksList {
    filter: none !important;
}

/* Red mode blurs everything except navigation */
body.privacy-mode-red .w3-main,
body.privacy-mode-red #pageTaskList,
body.privacy-mode-red #pageWorkflowList,
body.privacy-mode-red #pageWorkflowTasksList,
body.privacy-mode-red .w3-modal-content {
    filter: blur(5px);
}

/* Keep these elements always visible in any privacy mode */
body[class*="privacy-mode"] #siteTopBar,
body[class*="privacy-mode"] .w3-sidebar,
body[class*="privacy-mode"] #themeToggle,
body[class*="privacy-mode"] #privacyToggle,
body[class*="privacy-mode"] .w3-modal {
    filter: none !important;
}

/* Fix dark mode modal and popup windows */
body.dark-mode .w3-modal-content {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #404040 !important;
}

/* Fix links in dark mode */
body.dark-mode a {
    color: #4361ee;
}

body.dark-mode a:hover {
    color: #6f8eff;
}

/* Dark mode task separator */
body.dark-mode .task-separator.subheading {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-bottom-color: #404040;
}

/* Dark mode schedule indicator - lighter borders */
body.dark-mode .day-schedule-indicator {
    background-color: rgba(67, 97, 238, 0.15);
    color: #8f9fff;
    border-color: rgba(67, 97, 238, 1) !important;
}

/* Dark mode task borders - preserving functional colors but lighter */
body.dark-mode li.ui-state-default[style*="background-color: rgb(255, 255, 204)"] {
    border-color: rgba(255, 255, 204, 0.6) !important;
}

/* Target specific action buttons in the task modal */
body.dark-mode #addComment,
body.dark-mode #rescheduleNowButton,
body.dark-mode #rescheduleTomorrowButton,
body.dark-mode #taskInformation a.w3-button {
    color: white !important;
    border: 1px solid white !important;
    background-color: rgba(67, 97, 238, 0.2) !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    padding: 8px 16px !important;
    margin: 5px !important;
}

body.dark-mode #addComment:hover,
body.dark-mode #rescheduleNowButton:hover,
body.dark-mode #rescheduleTomorrowButton:hover,
body.dark-mode #taskInformation a.w3-button:hover {
    background-color: rgba(67, 97, 238, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

/* Special styling for the Mark task as complete button - keep this styled uniquely */
body.dark-mode #CompleteTaskInstance,
body.dark-mode #taskInformation a.w3-button[onclick*="CompleteTaskInstance"],
body.dark-mode button[id*="markComplete"],
body.dark-mode a.w3-button[id*="markComplete"] {
    background-color: rgba(76, 175, 80, 0.7) !important;
    color: white !important;
    border: 1px solid #4CAF50 !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 8px 16px !important;
    margin: 5px !important;
    border-radius: 4px !important;
}

body.dark-mode #CompleteTaskInstance:hover,
body.dark-mode #taskInformation a.w3-button[onclick*="CompleteTaskInstance"]:hover,
body.dark-mode button[id*="markComplete"]:hover,
body.dark-mode a.w3-button[id*="markComplete"]:hover {
    background-color: rgba(76, 175, 80, 0.9) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4) !important;
}

/* Dark mode - Override ALL button styles in task modal */
body.dark-mode #taskInformation .w3-button,
body.dark-mode #taskInformation a.w3-button,
body.dark-mode #taskInformation button {
    color: #a9c6ff !important;
    border: 1px solid #a9c6ff !important;
    background-color: #2d2d2d !important;
    border-radius: 4px !important;
    text-align: center !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
    margin: 5px !important;
}

body.dark-mode #taskInformation .w3-button:hover,
body.dark-mode #taskInformation a.w3-button:hover,
body.dark-mode #taskInformation button:hover {
    background-color: #3d3d3d !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

/* Special exception for the Mark task as complete button */
body.dark-mode #CompleteTaskInstance {
    background-color: #4CAF50 !important;
    color: white !important;
    border: 1px solid #4CAF50 !important;
}

/* Dark mode button style for when the class is applied via JavaScript */
.dark-mode-button {
    color: white !important;
    border: 1px solid white !important;
    background-color: rgba(67, 97, 238, 0.2) !important;
    border-radius: 4px !important;
    text-align: center !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease !important;
    margin: 5px !important;
}

/* Dark button hover state */
.dark-mode-button:hover {
    background-color: rgba(67, 97, 238, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

/* Dark mode task info container */
body.dark-mode #taskInformation {
    background-color: rgba(0, 0, 0, 0.7) !important;
}