/* Ensure body can scroll */
body {
    overflow: hidden; /* Disable scroll on body */
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.hidden {
    display: none;
}

.show {
    display: block; /* Show the dropdown when active */
}

/* Hide scrollbar on body to rely on scrollable container */
body::-webkit-scrollbar {
    display: none;
}

/****** Start of code for sidebar ******/
.sidebar {
    position: relative;
    background-color: #2c3e50; /* Navy blue background */
    height: 100vh; /* Full height sidebar */
    padding: 1rem;
    color: white;
}

.dark-mode .sidebar {
    background-color: #1e1e1e;
    color: #ffffff;
}


/**** Hamburger Menu Styles Start ****/
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    top: 20px;
    left: 20px; /* Changed from right to left */
    z-index: 600; /* High but below active navbar */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000000; /* Black in light mode */
    margin: 5px 0;
    transition: all 0.3s ease;
}

.dark-mode .hamburger-line {
    background-color: #ffffff; /* White in dark mode */
}

/* Hamburger animation when menu is open */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Sidebar Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }

    .sidebar {
        position: fixed;
        left: -100%; /* Hidden off-screen by default */
        top: 0;
        width: 100%;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000; /* Highest when active */
    }

    .sidebar.active {
        left: 0; /* Slide in when active */
    }

    /* Keep hamburger visible when sidebar is open */
    .hamburger-menu.active {
        position: fixed;
        z-index: 1001; /* Higher than sidebar */
    }

    /* Adjust main content area when sidebar is hidden */
    .flex {
        display: block;
    }

    .scrollable-container {
        margin-left: 0;
        width: 100%;
    }

    /* Dark mode toggle stays in its normal position on mobile */
    .dark-mode-toggle {
        top: 10px;
        right: 10px; /* Keep original position since hamburger is on the left */
    }

    /* Adjust leads board header for mobile */
    .leads-board-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .button-group {
        width: 100%;
        justify-content: space-between;
    }

    .open-add-lead-modal-btn {
        flex: 1;
        margin-right: 0.5rem;
        margin-top: 0.5rem;
        min-width: auto; /* Allow button to shrink on mobile */
    }

    .refresh-leads-btn {
        margin-top: 0.5rem;
        flex-shrink: 0; /* Prevent refresh button from shrinking */
    }

    .sort-dropdown {
        width: 100%;
    }
}

/* Overlay for mobile when sidebar is open */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Just below sidebar */
}

.sidebar-overlay.active {
    display: block;
}
/**** Hamburger Menu Styles End ****/


/* Styles for navigation links */
.nav-links {
    margin-top: 1rem; /* Add some top margin for spacing */
}

.nav-link {
    /* Styles for each navigation link */
    display: block;
    padding: 0.625rem 1rem;
    margin: 0.125rem 0;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
    color: white; /* Ensure text is visible */
    text-decoration: none; /* Remove underline from links */
}

.dark-mode .nav-link {
    background-color: #1e1e1e;
    color: #ffffff;
}

.nav-link:hover {
    background-color: #34495e; /* Slightly lighter shade on hover */
}

.dark-mode .nav-link:hover {
    background-color: #3e3e3e;
}

.nav-link.active {
    background-color: #1f2e3d; /* Even darker shade for active link */
}

.dark-mode .nav-link.active {
    background-color: #333333;
}


.nav-link.reports:before,
.nav-link.bugs:before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    /* You can replace these emojis with actual images or SVGs */
}

.nav-link.reports:before {
    /*background-image: url('path-to-report-icon.svg');*/
}

.nav-link.bugs:before {
    /*background-image: url('path-to-bug-icon.svg');*/
}

#admin-panel-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    position: absolute;
    bottom: 20px;
    width: 80%;
}

#admin-panel-button {
    display: inline-block;
    background-color: #3498db; /* Button color */
    color: white;
    font-weight: bold;
    padding: 0.8rem 1.4rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
    text-decoration: none; /* Remove underline from button link */
}

.dark-mode #admin-panel-button {
    background-color: #1e90ff; /* Dark mode button */
}

#admin-panel-button:hover {
    background-color: #2980b9; /* Slightly darker button color on hover */
}

.dark-mode #admin-panel-button:hover {
    background-color: #104e8b; /* Dark mode hover button */
}
/****** End of code for sidebar ******/


/****** Start of code for spinner ******/
.spinner {
    width: 40px;
    height: 40px;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 500; /* High but below active navbar */
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #333;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;

    -webkit-animation: bounce 2.0s infinite ease-in-out;
    animation: bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

@-webkit-keyframes bounce {
    0%, 100% {
        transform: scale(0.0)
    } 50% {
        transform: scale(1.0)
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(0.0);
    } 50% {
        transform: scale(1.0);
    }
}
/****** End of code for spinner ******/


/* Scrollable container for main content */
.scrollable-container {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
}
/* Scrollable container for main content */


/****** Start of Account Button Container ******/
.account-button-container {
    position: absolute; /* Position account button container */
    top: 0;
    right: 0;
    z-index: 350; /* Above search but below modals */
}

.dropdown-content {
    display: none; /* Initially hide the dropdown */
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    z-index: 400; /* Higher than the button container */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode .dropdown-content {
    background-color: #2e2e2e;
    color: #ffffff;
}

.dropdown-item:hover {
    background-color: #f1f1f1; /* Add hover effect */
}

.dark-mode .dropdown-item:hover {
    background-color: #444444;
}
/****** End of Account Button Container ******/


/****** Search Bar CSS Start ******/
/* Search Container */
.search-container {
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align items */
    position: relative; /* Position relative for absolute positioning of children */
    z-index: 250; /* Above leads board but below account button */
}

.dark-mode .search-container {
    background-color: #2e2e2e; /* Dark mode background */
    color: #ffffff;
}

#searchInput {
    width: 100%;
    max-width: 600px; /* Adjust as needed */
    padding: 0.5rem;
    border: 1px solid #ccc; /* Border gray */
    border-radius: 0.375rem; /* Rounded */
    margin-bottom: 1rem; /* Space below the input */
    font-size: 1rem;
}

.dark-mode #searchInput {
    border-color: #444444; /* Dark mode border */
    background-color: #1e1e1e; /* Dark mode input background */
    color: #ffffff;
}

.tabs {
    display: flex;
    justify-content: center; /* Center the tabs */
    flex-wrap: wrap; /* Allow wrapping */
    margin-top: 0rem;
    position: absolute; /* Position absolute to appear over other content */
    top: 60px; /* Adjust as needed */
    z-index: 300; /* Above leads board but below account button */
    background-color: white; /* White background to make them stand out */
    padding: 0.5rem;
    border-radius: 0.375rem; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow for better visibility */
}

.dark-mode .tabs {
    background-color: #2e2e2e; /* Dark mode tabs background */
}

.tab {
    padding: 0.5rem 1rem;
    background-color: #e2e8f0; /* Light gray */
    border-radius: 0.375rem; /* Rounded */
    margin-right: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dark-mode .tab {
    background-color: #444444; /* Dark mode tab background */
    color: #ffffff;
}

.tab:hover {
    background-color: #cbd5e0; /* Darker gray on hover */
}

.dark-mode .tab:hover {
    background-color: #555555; /* Dark mode tab hover */
}

.tab.active {
    background-color: #4299e1; /* Active tab color */
    color: #ffffff;
}

.dark-mode .tab.active {
    background-color: #1e90ff; /* Dark mode active tab */
}

.results-header {
    width: 100%; /* Take up 100% width of the container */
    max-width: none; /* Remove the max-width constraint */
    margin-top: 1rem;
    position: absolute; /* Position absolute to appear over other content */
    top: 120px; /* Adjust as needed */
    z-index: 300; /* Same as tabs, above leads board */
    background-color: white; /* White background for the table */
    padding: 1rem;
    border-radius: 0.375rem; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow for better visibility */
}

.dark-mode .results-header {
    background-color: #2e2e2e; /* Dark mode results header background */
    color: #ffffff;
}

.results-table {
    width: 100%; /* Take up 100% width of the container */
    table-layout: fixed; /* Ensures table columns are of fixed width */
    border-collapse: collapse;
    margin-top: 0rem;
    background-color: white; /* White background for the table */
}

.dark-mode .results-table {
    background-color: #2e2e2e; /* Dark mode table background */
}

.results-table th,
.results-table td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}

.dark-mode .results-table th,
.dark-mode .results-table td {
    border-color: #444444; /* Dark mode table border */
}

#noResults {
    color: #e53e3e; /* Red color */
    margin-top: 1rem;
    text-align: center;
    position: absolute; /* Position absolute to appear over other content */
    top: 122px; /* Adjust as needed */
    z-index: 300; /* Same as search components */
}

.dark-mode #noResults {
    color: #ff4444; /* Dark mode no results color */
}
/****** Search Bar CSS End ******/


/****** Start of code for lead board ******/
/* Styles for the leads board Start ###*/
.leads-board {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    align-items: flex-start; /* Align items to the top */
}

.dark-mode .leads-board {
    background-color: #2e2e2e; /* Dark mode leads board background */
    color: #ffffff;
}

.leads-board-header {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    align-items: center;
    gap: 1rem; /* Add gap between buttons */
    padding: 0 1rem;
}

.dark-mode .leads-board-header {
    background-color: #2e2e2e; /* Dark mode leads board header */
}

.button-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.open-add-lead-modal-btn {
    background-color: #002366; /* Blue background */
    color: white; /* White text */
    font-size: 1rem; /* Font size */
    font-weight: bold; /* Bold text */
    padding: 0.8rem 1.5rem; /* Padding */
    border: none; /* No border */
    border-radius: 0.5rem; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s; /* Smooth background color transition */
    margin-top: 1rem;
    white-space: nowrap; /* Prevent text wrapping */
    text-align: center; /* Center the text */
    min-width: 120px; /* Minimum width */
}

.dark-mode .open-add-lead-modal-btn {
    background-color: #1e90ff; /* Dark mode button */
}

.open-add-lead-modal-btn:hover {
    background-color: #1560bd; /* Darker blue on hover */
}

.dark-mode .open-add-lead-modal-btn:hover {
    background-color: #104e8b; /* Dark mode button hover */
}

.refresh-leads-btn {
    background-color: #002366; /* Blue background */
    color: white; /* White text */
    font-size: 1rem; /* Font size */
    font-weight: bold; /* Bold text */
    padding: 0.8rem; /* Padding */
    border: none; /* No border */
    border-radius: 0.5rem; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s; /* Smooth background color transition */
    margin-top: 1rem;
    width: 48px; /* Fixed width */
    height: 48px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the SVG icon */
    position: relative; /* Ensure the icon is positioned correctly */
    overflow: hidden; /* Hide any overflow */
    appearance: none; /* Remove default button styling */
    -webkit-appearance: none; /* Remove default button styling for Safari */
    flex-shrink: 0; /* Prevent shrinking */
}

.dark-mode .refresh-leads-btn {
    background-color: #1e90ff; /* Dark mode button */
}

.refresh-leads-btn:hover {
    background-color: #1560bd; /* Darker blue on hover */
}

.dark-mode .refresh-leads-btn:hover {
    background-color: #104e8b; /* Dark mode button hover */
}

.refresh-leads-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block; /* Ensure the SVG is displayed as a block element */
    pointer-events: none; /* Disable pointer events on the SVG */
    fill: none; /* Ensure the SVG fill is set to none */
}

.refresh-leads-btn svg path {
    stroke: currentColor; /* Ensure the SVG path uses the current text color */
}

.sort-dropdown {
    background-color: white; /* bg-white */
    border: 1px solid #ccc; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    padding: 0.5rem 1rem; /* p-2 */
    font-size: 1rem; /* Adjust font size as needed */
}

.dark-mode .sort-dropdown {
    background-color: #2e2e2e; /* Dark mode dropdown */
    border-color: #444444; /* Dark mode border */
    color: #ffffff;
}

#lead-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align cards to the left */
    width: 100%;
}

.lead-card {
    flex: 0 1 250px; /* Flex-grow 0, flex-shrink 1, flex-basis 300px */
    max-width: 300px; /* Adjust this value based on your desired card width */
    margin: 0.5rem;
    background-color: white; /* bg-white */
    padding: 1rem; /* p-4 corresponds to 1rem padding */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* shadow-md */
    position: relative; /* For absolute positioning of button container */
    display: flex;
    flex-direction: column; /* Stack child elements vertically */
    justify-content: space-between; /* Space out child elements to push buttons to bottom */
}

.dark-mode .lead-card {
    background-color: #2e2e2e; /* Dark mode card background */
    color: #ffffff;
}

.lead-card-content {
    flex-grow: 1; /* This makes the content take up available space */
    margin-bottom: 3rem; /* Provide space for the buttons */
}

.lead-info {
    font-size: 15px
}

.lead-card-button-container {
    display: flex;
    justify-content: center; /* Center the buttons */
    gap: 0.5rem; /* Adjust the gap between buttons as needed */
    position: absolute;
    bottom: 1rem; /* Adjust as needed */
    left: 40%;
    transform: translateX(-52.4%);
}

.edit-lead-btn {
    /**/

}

.delete-lead-btn {
    /**/
}
/****** End of code for lead board ******/


/****** Start of code for modals ******/
/* Modal styles */
.modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 700; /* Higher than everything except active navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black background with opacity */
}

.dark-mode .modal {
    background-color: rgba(0, 0, 0, 0.8); /* Dark mode modal background */
}

/* Specific container that may exceed screen dimensions */
.container, .modal-content {
    overflow: auto; /* Enable scrolling for this container */
    max-height: 100vh; /* Limit height to viewport height */
}

/* Modal Content Container */
.modal-content {
    max-height: 70vh; /* A bit smaller than viewport to leave some padding */
    overflow-y: auto; /* Enable vertical scrolling */
    background-color: #fff;
    margin: 7% auto; /* 7% from the top and centered */
    padding: 15px;
    border: 4px solid #888;
    width: 70%; /* Could be more or less, depending on screen size */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    max-width: 1000px; /* Optional for limiting the width */
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s; /* Smooth fade-in effect */
}

.dark-mode .modal-content {
    background-color: #2e2e2e; /* Dark mode modal content */
    color: #ffffff;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.dark-mode .close {
    color: #ffffff;
}
/****** End of code for modals ******/


/****** Start of code for New Lead Modal ******/
#add-lead-modal {
    z-index: 750; /* Higher than edit modal but lower than interaction/reminder/send-email modals */
}

#add-lead-form {
    display: flex;
    flex-direction: column;
}

#add-lead-form input[type="text"],
#add-lead-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.dark-mode #add-lead-form input[type="text"],
.dark-mode #add-lead-form input[type="email"] {
    background-color: #444444; /* Dark mode input background */
    border-color: #555555; /* Dark mode input border */
    color: #ffffff;
}

#add-lead-form input[type="text"]:focus,
#add-lead-form input[type="email"]:focus {
    border-color: #0056b3; /* Dark blue color for focus */
    outline: none;
}

.dark-mode #add-lead-form input[type="text"]:focus,
.dark-mode #add-lead-form input[type="email"]:focus {
    border-color: #1e90ff; /* Dark mode focus */
}

#add-lead-form button[type="submit"] {
    background-color: #0056b3; /* Dark blue color */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.dark-mode #add-lead-form button[type="submit"] {
    background-color: #1e90ff; /* Dark mode button */
}

#add-lead-form button[type="submit"]:hover {
    background-color: #003d80; /* Darker blue on hover */
}

.dark-mode #add-lead-form button[type="submit"]:hover {
    background-color: #104e8b; /* Dark mode button hover */
}
/****** End of code for New Lead Modal ******/


/****** Start of code for Edit Modal ******/
#edit-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 700; /* Same as new lead modal */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.dark-mode #edit-modal {
    background-color: rgba(0, 0, 0, 0.8); /* Dark mode modal background */
}

#edit-modal .modal-content {
    background-color: #fff;
    margin: 7% auto; /* 7% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 900px; /* Optional for limiting the width */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.dark-mode #edit-modal .modal-content {
    background-color: #2e2e2e; /* Dark mode modal content */
    color: #ffffff;
    border-color: #555555;
}

#edit-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.dark-mode #edit-modal .close {
    color: #ffffff;
}

#edit-modal .close:hover,
#edit-modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.lead-container {
    display: flex;
    gap: 20px;
}

.lead-details-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: 350px;
    flex: 1;
}

.dark-mode .lead-details-container {
    background-color: #444444; /* Dark mode container background */
    border-color: #555555; /* Dark mode border */
}

.lead-details h1 {
    margin: 5px 0;
    font-size: 22px;
}

.lead-details p {
    margin: 5px 0;
    font-size: 14px;
}

.lead-bussiness-hours-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: 350px;
    cursor: pointer;
    flex: 1;
}

.dark-mode .lead-business-hours-container {
    background-color: #444444; /* Dark mode container background */
    border-color: #555555; /* Dark mode border */
}

.lead-business-hours h1 {
    margin: 5px 0;
    font-size: 22px;
}

.lead-business-hours p {
    margin: 5px 0;
    font-size: 14px;
}


.edit-modal-button-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Specific styles for interaction button */
.interaction-lead-btn {
    background-color: #9f7aea; /* Tailwind bg-purple-500 */
    border: none;
}

.dark-mode .interaction-lead-btn {
    background-color: #8a2be2; /* Dark mode button */
}

.interaction-lead-btn:hover {
    background-color: #6b46c1; /* Tailwind hover:bg-purple-700 */
}

.dark-mode .interaction-lead-btn:hover {
    background-color: #551a8b; /* Dark mode button hover */
}

/* Specific styles for reminder button */
.reminder-lead-btn {
    background-color: #48bb78; /* Tailwind bg-green-500 */
    border: none;
}

.dark-mode .reminder-lead-btn {
    background-color: #32cd32; /* Dark mode button */
}

.reminder-lead-btn:hover {
    background-color: #2f855a; /* Tailwind hover:bg-green-700 */
}

.dark-mode .reminder-lead-btn:hover {
    background-color: #228b22; /* Dark mode button hover */
}

/* Specific styles for send-email button */
.send-email-lead-btn {
    background-color: #4299e1; /* Tailwind bg-blue-500 */
    border: none;
}

.dark-mode .send-email-lead-btn {
    background-color: #1e90ff; /* Dark mode button */
}

.send-email-lead-btn:hover {
    background-color: #2b6cb0; /* Tailwind hover:bg-blue-700 */
}

.dark-mode .send-email-lead-btn:hover {
    background-color: #104e8b; /* Dark mode button hover */
}

.log-table {
    width: 100%;
    border-collapse: collapse;
}

.dark-mode .log-table {
    background-color: #2e2e2e; /* Dark mode table background */
    color: #ffffff;
}

.log-table th, .log-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.dark-mode .log-table th,
.dark-mode .log-table td {
    border-color: #444444; /* Dark mode table border */
}

.log-table th {
    background-color: #f2f2f2;
}

.dark-mode .log-table th {
    background-color: #3e3e3e; /* Dark mode table header */
}

.log-entry:hover {
    background-color: #f1f1f1;
}

.dark-mode .log-entry:hover {
    background-color: #555555; /* Dark mode hover */
}
/****** End of code for Edit Modal ******/


/****** Start of code for Business Hours Modal ******/
.day-hours {
    margin-bottom: 1rem;
}

.day-hours-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.add-hours-btn {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.add-hours-btn:hover {
    background-color: #45a049;
}

.remove-hours-btn {
    background-color: #f44336; /* Red */
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.remove-hours-btn:hover {
    background-color: #d32f2f;
}
/****** End of code for Business Hours Modal ******/


/****** Start of code for Interaction Modal ******/
#interaction-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 800; /* Higher than edit modal */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.dark-mode #interaction-modal {
    background-color: rgba(0, 0, 0, 0.8); /* Dark mode modal background */
}

#interaction-modal .modal-content {
    background-color: #fff;
    margin: 7% auto; /* 7% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Optional for limiting the width */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.dark-mode #interaction-modal .modal-content {
    background-color: #2e2e2e; /* Dark mode modal content */
    color: #ffffff;
    border-color: #555555;
}

#interaction-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.dark-mode #interaction-modal .close {
    color: #ffffff;
}

#interaction-modal .close:hover,
#interaction-modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#add-interaction-form {
    display: flex;
    flex-direction: column;
}

#add-interaction-form select,
#add-interaction-form textarea,
#add-interaction-form input[type="datetime-local"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.dark-mode #add-interaction-form select,
.dark-mode #add-interaction-form textarea,
.dark-mode #add-interaction-form input[type="datetime-local"] {
    background-color: #444444; /* Dark mode input background */
    border-color: #555555; /* Dark mode input border */
    color: #ffffff;
}

#add-interaction-form select:focus,
#add-interaction-form textarea:focus,
#add-interaction-form input[type="datetime-local"]:focus {
    border-color: #9f7aea; /* Tailwind bg-purple-500 for focus */
    outline: none;
}

.dark-mode #add-interaction-form select:focus,
.dark-mode #add-interaction-form textarea:focus,
.dark-mode #add-interaction-form input[type="datetime-local"]:focus {
    border-color: #8a2be2; /* Dark mode focus */
}

#add-interaction-form button[type="submit"] {
    background-color: #9f7aea; /* Tailwind bg-purple-500 */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.dark-mode #add-interaction-form button[type="submit"] {
    background-color: #8a2be2; /* Dark mode button */
}

#add-interaction-form button[type="submit"]:hover {
    background-color: #6b46c1; /* Tailwind hover:bg-purple-700 */
}

.dark-mode #add-interaction-form button[type="submit"]:hover {
    background-color: #551a8b; /* Dark mode button hover */
}
/****** End of code for Interaction Modal ******/


/****** Start of code for Reminder Modal ******/
#reminder-modal {
    z-index: 800; /* Same as interaction and send email modals */
}

#reminder-modal h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dark-mode #reminder-modal h3 {
    color: #ffffff; /* Dark mode text color */
}

#reminder-modal form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between form elements */
}

.dark-mode #reminder-modal form {
    background-color: #2e2e2e; /* Dark mode form background */
}

#reminder-modal input[type="datetime-local"],
#reminder-modal input[type="text"] {
    padding: 0.5rem;
    border: 1px solid #ccc; /* Border gray */
    border-radius: 0.375rem; /* Rounded */
    width: 100%;
}

.dark-mode #reminder-modal input[type="datetime-local"],
.dark-mode #reminder-modal input[type="text"] {
    background-color: #444444; /* Dark mode input background */
    border-color: #555555; /* Dark mode input border */
    color: #ffffff;
}

#reminder-modal button[type="submit"] {
    background-color: #48bb78; /* Tailwind bg-green-500 */
    color: white; /* White text */
    font-size: 1rem; /* Font size */
    font-weight: bold; /* Bold text */
    padding: 0.75rem 1.5rem; /* Padding */
    border: none; /* No border */
    border-radius: 0.5rem; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s; /* Smooth background color transition */
}

.dark-mode #reminder-modal button[type="submit"] {
    background-color: #32cd32; /* Dark mode button */
}

#reminder-modal button[type="submit"]:hover {
    background-color: #2f855a; /* Tailwind hover:bg-green-700 */
}

.dark-mode #reminder-modal button[type="submit"]:hover {
    background-color: #228b22; /* Dark mode button hover */
}

#reminders-list {
    margin-top: 1rem; /* Space above the reminders list */
}
/****** End of code for Reminder Modal ******/


/****** Start of code for Send Email Modal ******/
/* Send Email Modal */
#send-email-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 800; /* Same as interaction modal */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.dark-mode #send-email-modal {
    background-color: rgba(0, 0, 0, 0.8); /* Dark mode modal background */
}

#send-email-modal .modal-content {
    background-color: #fff;
    margin: 7% auto; /* 7% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 100%; /* Could be more or less, depending on screen size */
    max-width: 800px; /* Optional for limiting the width */
    max-height: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.dark-mode #send-email-modal .modal-content {
    background-color: #2e2e2e; /* Dark mode modal content */
    color: #ffffff;
    border-color: #555555;
}

#send-email-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.dark-mode #send-email-modal .close {
    color: #ffffff;
}

#send-email-modal .close:hover,
#send-email-modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#send-email-modal .lead-details {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 250px; /* Adjust as needed */
}

.dark-mode #send-email-modal .lead-details {
    background-color: #444444; /* Dark mode lead details */
}

#send-email-modal .lead-details input {
    width: 100%;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.dark-mode #send-email-modal .lead-details input {
    background-color: #444444; /* Dark mode input background */
    border-color: #555555; /* Dark mode input border */
    color: #ffffff;
}

#send-email-modal .container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%; /* Adjust as needed */
}

.dark-mode #send-email-modal .container {
    background-color: #2e2e2e; /* Dark mode container background */
}

#send-email-modal .container > div {
    margin-bottom: 20px;
}

#send-email-modal .container label {
    font-weight: bold;
    margin-bottom: 5px;
}

.dark-mode #send-email-modal .container label {
    color: #ffffff; /* Dark mode label */
}

#send-email-modal .container textarea {
    width: calc(100% - 22px); /* Adjust for padding and border */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 12px;
}
.dark-mode #send-email-modal .container textarea {
    background-color: #444444; /* Dark mode textarea background */
    border-color: #555555; /* Dark mode textarea border */
    color: #ffffff;
}

#send-email-modal .container button {
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 0.25rem; /* Equivalent to 'rounded' in Tailwind */
    text-align: center;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    color: #ffffff; /* Sets the text color to white */
    font-size: 16px; /* Example font size */
    background-color: #4299e1; /* Tailwind bg-blue-500 */
    border: none;
    margin-bottom: 20px;
}

.dark-mode #send-email-modal .container button {
    background-color: #1e90ff; /* Dark mode button */
}

#send-email-modal .container button:hover {
    background-color: #2b6cb0; /* Tailwind hover:bg-blue-700 */
}

.dark-mode #send-email-modal .container button:hover {
    background-color: #104e8b; /* Dark mode button hover */
}

#send-email-modal #status {
    display: inline-block;
    margin-left: 10px;
    font-weight: bold;
}

#send-email-modal h1 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.dark-mode #send-email-modal h1 {
    color: #ffffff; /* Dark mode text color */
}

#send-email-modal .custom-email-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#send-email-modal .custom-email-container label {
    font-weight: bold;
    margin-bottom: 5px;
}

.dark-mode #send-email-modal .custom-email-container label {
    color: #ffffff; /* Dark mode label */
}

#send-email-modal .custom-email-container textarea {
    width: calc(100% - 22px); /* Adjust for padding and border */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.dark-mode #send-email-modal .custom-email-container textarea {
    background-color: #444444; /* Dark mode textarea background */
    border-color: #555555; /* Dark mode textarea border */
    color: #ffffff;
}

#send-email-modal .custom-email-container button {
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 0.25rem; /* Equivalent to 'rounded' in Tailwind */
    text-align: center;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    color: #ffffff; /* Sets the text color to white */
    font-size: 16px; /* Example font size */
    background-color: #4299e1; /* Tailwind bg-blue-500 */
    border: none;
}

.dark-mode #send-email-modal .custom-email-container button {
    background-color: #1e90ff; /* Dark mode button */
}

#send-email-modal .custom-email-container button:hover {
    background-color: #2b6cb0; /* Tailwind hover:bg-blue-700 */
}

.dark-mode #send-email-modal .custom-email-container button:hover {
    background-color: #104e8b; /* Dark mode button hover */
}

/* Preview Modal Styles */
#preview-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 900; /* Highest modal but below active navbar */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scrolling if needed */
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
}

#preview-modal .modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* Center the modal content */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: 80%;
    overflow-y: auto; /* Enable vertical scrolling */
    position: relative;
}

#preview-modal .close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#preview-modal .close:hover,
#preview-modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.email-preview-container {
    margin-top: 40px;
}
/****** End of code for Send Email Modal ******/


/* Styles for the reports and bugs section */
.reports-bugs-section {
    /* Additional styling as needed */
}

.report-card,
.bug-card {
    /* Shared card styles */
}

.report-btn,
.bug-btn {
    /* Shared button styles */
}

/* Button base styles */
.button {
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 0.25rem; /* Equivalent to 'rounded' in Tailwind */
    text-align: center;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    color: #ffffff; /* Sets the text color to white */
    font-size: 16px; /* Example font size */
}


/****** Start of code for admin panel button & modal ******/
/* Admin Panel Modal */
#admin-panel-modal {
    z-index: 700; /* Same as new lead and edit modals */
}

#admin-panel-modal .modal-content {
    max-height: 70vh; /* A bit smaller than viewport to leave some padding */
    overflow-y: auto; /* Enable vertical scrolling */
    background-color: #fff;
    margin: 7% auto; /* 7% from the top and centered */
    padding: 15px;
    border: 4px solid #888;
    width: 70%; /* Could be more or less, depending on screen size */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    max-width: 1000px; /* Optional for limiting the width */
    position: relative;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s; /* Smooth fade-in effect */
}

.dark-mode #admin-panel-modal .modal-content {
    background-color: #2e2e2e; /* Dark mode modal content */
    color: #ffffff;
    border-color: #555555;
}

#admin-panel-modal h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dark-mode #admin-panel-modal h1 {
    color: #ffffff; /* Dark mode text color */
}

#admin-panel-modal table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#admin-panel-modal th,
#admin-panel-modal td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}

.dark-mode #admin-panel-modal th,
.dark-mode #admin-panel-modal td {
    border-color: #444444; /* Dark mode table border */
}

#admin-panel-modal .edit-user-btn {
    background-color: #4299e1; /* Tailwind bg-blue-500 */
    color: white; /* White text */
    font-size: 0.875rem; /* Font size */
    font-weight: bold; /* Bold text */
    padding: 0.5rem 1rem; /* Padding */
    border: none; /* No border */
    border-radius: 0.375rem; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s; /* Smooth background color transition */
}

.dark-mode #admin-panel-modal .edit-user-btn {
    background-color: #1e90ff; /* Dark mode button */
}

#admin-panel-modal .edit-user-btn:hover {
    background-color: #3182ce; /* Tailwind hover:bg-blue-700 */
}

.dark-mode #admin-panel-modal .edit-user-btn:hover {
    background-color: #104e8b; /* Dark mode button hover */
}

#admin-panel-modal .delete-user-btn {
    background-color: #f56565; /* Tailwind bg-red-500 */
    color: white; /* White text */
    font-size: 0.875rem; /* Font size */
    font-weight: bold; /* Bold text */
    padding: 0.5rem 1rem; /* Padding */
    border: none; /* No border */
    border-radius: 0.375rem; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s; /* Smooth background color transition */
}

.dark-mode #admin-panel-modal .delete-user-btn {
    background-color: #ff4444; /* Dark mode button */
}

#admin-panel-modal .delete-user-btn:hover {
    background-color: #c53030; /* Tailwind hover:bg-red-700 */
}

.dark-mode #admin-panel-modal .delete-user-btn:hover {
    background-color: #b22222; /* Dark mode button hover */
}

#admin-panel-modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.dark-mode #admin-panel-modal .close {
    color: #ffffff;
}

#admin-panel-modal .close:hover,
#admin-panel-modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#admin-panel-modal .button-container {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

#admin-panel-modal .modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between form elements */
}

.dark-mode #admin-panel-modal .modal-content form {
    background-color: #2e2e2e; /* Dark mode form background */
    color: #ffffff;
}

#admin-panel-modal .modal-content form input,
#admin-panel-modal .modal-content form select {
    padding: 0.5rem;
    border: 1px solid #ccc; /* Border gray */
    border-radius: 0.375rem; /* Rounded */
    width: 100%;
}

.dark-mode #admin-panel-modal .modal-content form input,
.dark-mode #admin-panel-modal .modal-content form select {
    background-color: #444444; /* Dark mode input background */
    border-color: #555555; /* Dark mode input border */
    color: #ffffff;
}

#admin-panel-modal .modal-content form button[type="submit"] {
    background-color: #4299e1; /* Tailwind bg-blue-500 */
    color: white; /* White text */
    font-size: 1rem; /* Font size */
    font-weight: bold; /* Bold text */
    padding: 0.75rem 1.5rem; /* Padding */
    border: none; /* No border */
    border-radius: 0.5rem; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s; /* Smooth background color transition */
}

.dark-mode #admin-panel-modal .modal-content form button[type="submit"] {
    background-color: #1e90ff; /* Dark mode button */
}

#admin-panel-modal .modal-content form button[type="submit"]:hover {
    background-color: #3182ce; /* Tailwind hover:bg-blue-700 */
}

.dark-mode #admin-panel-modal .modal-content form button[type="submit"]:hover {
    background-color: #104e8b; /* Dark mode button hover */
}
/****** End of code for admin panel button & modal ******/


/****** Dark Mode Toggle Styles Start ******/
.dark-mode-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 450; /* Above account button but below modals */
    display: flex;
    align-items: center;
}

.dark-mode-switch {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: lightgray;
    border-radius: 20px;
    padding: 5px;
    position: relative;
    width: 60px;
    height: 30px;
}

.toggle-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.sun {
    color: yellow;
}

.moon {
    color: white;
}

.dark-mode-switch:checked + .toggle-label .sun {
    transform: translateX(30px);
}

.dark-mode-switch:checked + .toggle-label .moon {
    transform: translateX(-30px);
}
/****** Dark Mode Toggle Styles End ******/
