   /* Hide FullCalendar’s default toolbar on small screens */
@media (max-width: 576px) {
  .fc-header-toolbar {
    display: none !important;
  }
}

/* Minimalist custom header for mobile */
.custom-calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  font-family: sans-serif;
}

/* Epic nav buttons */
.custom-nav-btn {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 1.5rem;
  cursor: pointer;
  /* Gradient text effect */
  background: linear-gradient(to right, #ff08f5, #08ffcc);
  -webkit-background-clip: text;
  color: transparent;
  user-select: none;
  transition: transform 0.2s ease;
}

.custom-nav-btn:hover {
  transform: scale(1.2);
}

/* Title styling */
.custom-calendar-header .custom-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: capitalize; /* optional to ensure "May 2023" looks nice */
  color: #333; /* A neutral color to contrast the gradient arrows */
}

        body {
            font-family: Arial, sans-serif;
            background-color: #f8f9fa;
            margin: 0;
            padding: 0;
            transition: background-color 0.3s, color 0.3s;
        }
        .row {
            display: flex;
            justify-content: space-between; /* Ensure both columns stay in one row */
        }
        .chart-container {
            flex: 0 0 calc(50% - 10px); /* Set each column to 50% width minus the space you want between them */
        }
        .search-bar {
            width: 100%;
            max-width: 500px;
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }

        .search-bar i {
            font-size: 1.5em;
            cursor: pointer;
        }

        .user-info {
            display: flex;
            align-items: center;
        }


        .user-info .profile-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
           
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            margin-left: 15px;
            margin-right: 15px;
            text-decoration: none;
            font-size: 18px;
            cursor: pointer;
        }

        .sidebar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px;
        }

        .close-sidebar {
            font-size: 1.5em;
            color: #000;
            cursor: pointer;
            display: none; /* Hide by default */
        }
        .sidebar {
            width: 250px;
            background-color: #ffffff;
            color: #000;
            position: fixed;
            top: 0;
            left: 0;
            height: 100%;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            z-index: 1002;
            transition: transform 0.3s ease;
        }
        .sidebar a {
            color: #000;
            text-decoration: none !important;
            padding: 10px;
            display: block;
            margin-left:10px;
            margin-right:10px;
            border-radius:10px;
        }
        .sidebar a:hover, .sidebar a.active{
            background-color: #f1f1f1;
        }
        .topbar {
            height: 78px;
            background-color: #ffffff;
            color: #000;
            padding: 10px;
            position: fixed;
            top: 2px;
            left: 255px;
            right: 5px;
            z-index: 1001;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            transition: left 0.3s ease, width 0.3s ease, background-color 0.3s ease, color 0.3s ease;
        }
        .page-title {
            display: flex;
            align-items: center;
            margin-top:6px !important;
        }
        .menu-toggle {
            cursor: pointer;
            margin-top:-10px;
            margin-right: 15px;
            color: #000;
            font-size: 1.5em;
            display: none; /* Hide by default */
        }
        .content {
            margin-left: 250px;
            padding: 20px 5px;
            margin-top: 70px; /* Adjusted to leave space for the topbar */
            transition: margin-left 0.3s ease;
        }
        .content-block {
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            padding: 10px;
            margin-bottom: 20px;
        }

        .theme-switcher {
            cursor: pointer;
            color: #000;
            font-size: 1.0em;
            transition: color 0.3s ease;
        }
        .notification-bell {
            cursor: pointer;
            margin-right:10px;
            color: #000;
            font-size: 1.0em;
            transition: color 0.3s ease;
        }
        .dark-theme {
            background-color: #26293b; 
            color: #cecde2;
        }
        .dark-theme .sidebar {
            background-color: #2f3347;
            color: #cecde2;
        }
        .dark-theme .sidebar a {
            color: #cecde2;
        }
        .dark-theme .sidebar a:hover,.dark-theme .sidebar a.active {
            background-color: #3c3f52;
        }
        .dark-theme .topbar {
            background-color: #2f3347;
            color: #cecde2;
        }
        .dark-theme .content {
            background-color: #26293b;
            color: #cecde2;
        }
        .dark-theme .content-block {
            background-color: #2f3347;
        }
        .dark-theme .calendar-container {
            background-color: #2f3347;
        }
        /* Dark theme for the entire calendar */
.dark-theme .fc {
    background-color: #26293b !important; /* Dark background for calendar */
    color: #cecde2 !important; /* Light text color */
}
.dark-theme .fc .fc-day{
    background-color: #26293b !important; /* Dark background for calendar */
    color: #cecde2 !important; /* Light text color */
}
.dark-theme .fc .fc-event-title, .fc-event-time{
    color: #cecde2 !important; /* Light text color */
}

/* Toolbar buttons */
.dark-theme .fc .fc-toolbar-title {
    color: #cecde2 !important; /* Title text color */
}

.dark-theme .fc .fc-button {
    background-color: #333 !important; /* Darker button background */
    color: #cecde2 !important; /* Button text color */
    border-color: #444 !important; /* Button border color */
}

.dark-theme .fc .fc-button:hover {
    background-color: #444 !important; /* Darker hover effect */
}

/* Day cells */
.dark-theme .fc .fc-daygrid-day-frame {
    background-color: #26293b !important; /* Dark background for day cells */
    color: #cecde2 !important; /* Text color for day cells */
}

/* Today highlight */
.dark-theme .fc .fc-day-today {
    background-color: #444 !important; /* Highlight for current day */
    color: #cecde2 !important;
}

/* Event styling */
.dark-theme .fc .fc-event {
    background-color: #3e3f57 !important; /* Darker background for events */
    color: #cecde2 !important; /* Event text color */
    border-color: #555 !important; /* Event border color */
}

/* Scrollbars (if needed) */
.dark-theme .fc .fc-scroller {
    scrollbar-color: #444 #26293b; /* Darker scrollbars */
}

        
        .dark-theme .theme-switcher {
            color: #cecde2;
        }
        .dark-theme .menu-toggle {
            color: #cecde2; 
        }
        .dark-theme .close-sidebar {
            color: #cecde2; 
        }
        .dark-theme .notification-bell {
            color: #cecde2;
        }
        .dark-theme a {
            color: #cecde2;
        }
        .dark-theme li.list-group-item {
             background-color: #2f3347;
            color: #cecde2;
        }
        .dark-theme input,
        .dark-theme select,
        .dark-theme textarea {
            background-color: #2f3347;
            color: #cecde2;
            border: 1px solid #cecde2;
            padding: 10px;
            border-radius: 5px;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        /* Disabled state styling */
        .dark-theme input:disabled,
        .dark-theme select:disabled,
        .dark-theme textarea:disabled {
            background-color: #3e4457;  /* Slightly lighter background for disabled state */
            color: #6c757d;  /* Dimmed text color */
            border-color: #6c757d;  /* Dimmed border color */
            cursor: not-allowed;  /* Change cursor to indicate disabled state */
        }
        
        .dark-theme input::placeholder,
        .dark-theme select option,
        .dark-theme textarea::placeholder {
            color: #cecde2;
        }
        .dark-theme input:focus,
        .dark-theme select:focus,
        .dark-theme textarea:focus {
            background-color: #2f3347; 
            color: #cecde2; 
            border-color: #cecde2; 
            outline: none; 
        }
        .dark-theme .user-info .profile-icon {
            content:url("/profile-dark.png");
        }
        /* Custom dark theme styles for pagination */
        body.dark-theme .pagination .page-item .page-link {
            background-color: #343a40 !important;  /* Dark background color */
            color: #cecde2 !important;  /* White text color */
            border-color: #454d55 !important;  /* Darker border */
        }
        
        body.dark-theme .pagination .page-item.active .page-link {
            background-color: #007bff !important;  /* Active page button color */
            border-color: #007bff !important;
        }
        
        body.dark-theme .pagination .page-item.disabled .page-link {
            background-color: #343a40 !important;  /* Disabled button background */
            color: #6c757d !important;  /* Disabled button text */
            border-color: #454d55 !important;
        }
        
        /* Hover effect for page links */
        body.dark-theme .pagination .page-item .page-link:hover {
            background-color: #495057 !important;  /* Darker hover effect */
            border-color: #495057 !important;
        }
        /* Dark theme styles for the table */
        body.dark-theme .table {
            background-color: #343a40 !important;
            color: #cecde2 !important;
            border-color: #454d55 !important;
        }
        
        /* Dark theme for the table header */
        body.dark-theme .table thead th {
            background-color: #454d55 !important;
            color: #cecde2 !important;
            border-color: #565e64 !important;
        }
        
        /* Dark theme for table rows and cells */
        body.dark-theme .table tbody tr {
            border-color: #454d55 !important;  /* Row border */
        }
        
        /* Set background and text colors for table cells (td) */
        body.dark-theme .table tbody tr td {
            background-color: #343a40 !important;
            color: #cecde2 !important;
            border-color: #454d55 !important;
        }
        
        /* Override Bootstrap's .table-striped class for row striping */
        body.dark-theme .table-striped tbody tr:nth-of-type(odd) td {
            background-color: #3e444a !important;  /* Lighter row color */
        }
        
        body.dark-theme .table-striped tbody tr:nth-of-type(even) td {
            background-color: #343a40 !important;  /* Darker row color */
        }
        
        /* Hover effect for rows in dark theme */
        body.dark-theme .table tbody tr:hover td {
            background-color: #495057 !important;
        }
.dark-theme .chart-container {
    background-color: #2f3347; 
                color: #cecde2; 
            border-color: #cecde2; 
}
        
        .feedback-button {
            position: absolute;
            bottom: 20px;
            left: 10px;
            right: 10px;
            background-color: #ff4d4d;
            color: #fff;
            padding: 10px;
            text-align: center;
            border-radius: 5px;
            font-size: 16px;
            text-decoration: none;
            box-shadow: 0 0 10px #ff4d4d, 0 0 20px #ff4d4d, 0 0 30px #ff4d4d;
            transition: box-shadow 0.3s ease;
        }
        
        .feedback-button:hover {
            box-shadow: 0 0 20px #ff4d4d, 0 0 30px #ff4d4d, 0 0 40px #ff4d4d;
        }
        
        .dark-theme .feedback-button {
            background-color: #ff3333;
            box-shadow: 0 0 10px #ff3333, 0 0 20px #ff3333, 0 0 30px #ff3333;
        }
        
        .modal {
            display: none;
            position: fixed;
            z-index: 1002;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.5);
        }
        
        .modal-content {
            background-color: #2f3347;
            margin: 10% auto;
            padding: 20px;
            border-radius: 5px;
            width: 80%;
            max-width: 400px;
            color: #cecde2;
        }
        
        .modal-content h2 {
            color: #000;
            margin-top: 0;
        }
        
        .modal-content label {
            color: #000;
            display: block;
            margin: 15px 0 5px;
        }
        
        .modal-content select,
        .modal-content textarea {
            width: 100%;
            padding: 10px;
            margin-top: 5px;
            border-radius: 5px;
            border: 1px solid #cecde2;
            background-color: #fff; 
            color: #000;
        }
        
        .modal-content button {
            background-color: #ff4d4d;
            color: #fff;
            padding: 10px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            width: 100%;
            margin-top: 15px;
        }
        
        .modal-content button:hover {
            background-color: #ff3333;
        }
        
        .close {
            color: #fff;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }
        
        .close:hover,
        .close:focus {
            color: #ff4d4d;
        }
        
/* Collapsed sidebar */
/* When sidebar is collapsed, adjust the content and topbar */
.sidebar.collapsed ~ .content {
    margin-left: 80px;
}

.sidebar.collapsed ~ .topbar {
    left: 100px;
}
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .menu-text {
    display: none;
}

.sidebar.collapsed span.upg {
    display: none !important;
}
.sidebar:hover span.upg {
   display: inline-block !important;
}
.sidebar.collapsed a.upg1 {
    display: block !important;
}


.sidebar.collapsed a {
    justify-content: center;
}

/* Handle logo visibility and size */
.full-logo {
    width: 200px;
    height: auto;
}

.icon-logo {
    width: 40px;
    height: auto;
    display: none;
    margin-left: auto;
    margin-right: auto;
}

.sidebar.collapsed .full-logo {
    display: none !important;
}

.sidebar.collapsed .icon-logo {
    display: inline-block !important;
}

.sidebar.collapsed .sidebar-header h3 {
    text-align: center;
}

/* Toggle button as a circle */
#toggleSidebar {
    background: none;
   /* border: none;*/
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top:6px;
}
.dark-theme #toggleSidebar{border: 2px solid #cecde2;}
#toggleSidebar .toggle-dot {
    width: 2px;
    height: 2px;
    background-color: black;
    border-radius: 50%;
    display: block;
}
.dark-theme #toggleSidebar .toggle-dot {background-color: #cecde2;}
.sidebar.collapsed #toggleSidebar .toggle-dot {
    display: none; /* Hide the dot when sidebar is collapsed */
}
/* Hide the toggle button when sidebar is collapsed */
.sidebar.collapsed #toggleSidebar {
    display: none; /* Hide toggle button */
}

/* Show the toggle button when the sidebar is hovered */
.sidebar:hover #toggleSidebar {
    display: flex !important; /* Show toggle button when hovered */
}

/* Hover to expand sidebar */
.sidebar:hover {
    width: 250px !important;
}

.sidebar:hover .menu-text {
    display: inline-block !important;
}

.sidebar:hover a {
    justify-content: flex-start;
}

.sidebar:hover .full-logo {
    display: inline-block !important;
}

.sidebar:hover .icon-logo {
    display: none !important;
}

.dark-theme .card {
    background-color: #2f3347;
    border: 1px solid #444;
    color: #cecde2;
}

.dark-theme .card-header {
    background-color: #3a3e55;
    border-bottom: 1px solid #444;
    color: #cecde2;
}

.dark-theme .card-header h5 {
    color: #cecde2;
}

.dark-theme .card-body {
    background-color: #2f3347;
    color: #cecde2;
}

.dark-theme .card-body ul li {
    color: #cecde2;
}

.dark-theme .card-body ul li i {
    color: #28a745; /* Keeping the checkmark green */
}

.dark-theme .card-body ul li .checkmark {
    color: #dc3545; /* Keeping the 'x' marks red */
}

/* Button styling for the dark theme */
.dark-theme .btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.dark-theme .btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Ensure form input buttons stand out in dark mode */
.dark-theme form button {
    color: #fff;
}

/* Custom styling for other text elements to ensure readability */
.dark-theme .card ul {
    color: #cecde2;
}

.dark-theme .list-unstyled li {
    padding: 0.5rem 0;
}

.dark-theme .list-unstyled li i.bi-check-lg {
    color: #28a745;
}

.dark-theme .list-unstyled li i.bi-x-lg {
    color: #dc3545;
}
 /* Dark Theme Modal Styles */
    .dark-theme .modal-content {
        background-color: #2f3347;
        color: #cecde2;
        border-radius: 8px;
    }

    /* Close Button Style */
    .dark-theme .close {
        color: #cecde2;
    }

    /* Title and Label Styling */
    .dark-theme .modal-title {
        color: #cecde2;
    }

    .dark-theme .form-label {
        color: #cecde2;
    }

    .dark-theme h2 {
        color: #cecde2;
    }

   
    .dark-theme label {
        color: #cecde2; 
    }
        .dark-theme .modal-content select,
        .dark-theme .modal-content textarea {
            width: 100%;
            padding: 10px;
            margin-top: 5px;
            border-radius: 5px;
            border: 1px solid #cecde2;
            background-color: #2f3347;
       color: #cecde2;
        }
  
    .dark-theme input[type="text"],
    .dark-theme input[type="number"],
    .dark-theme input[type="date"] {
        border: 1px solid #ccc;
        background-color: #2f3347;
       color: #cecde2;
    }

    .dark-theme .form-control {
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #2f3347;
        color: #cecde2;
    }

    .dark-theme textarea.form-control {
       background-color: #2f3347;
    }

    .dark-theme .btn-primary {
        background-color: #007bff;
        color: white;
    }

    .dark-theme .btn-primary:hover {
        background-color: #0056b3;
    }
    
     input,  select,  textarea {
    background-color: #fff;
    color: #000;
    border: 1px solid #cecde2;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
        
        @media (max-width: 768px) {
            #welcome{display:none;}
            .sidebar:hover #toggleSidebar {display:none !important;}
            #toggleSidebar{display:none !important;}
            .dark-theme #toggleSidebar{display:none !important;}
            .sidebar {
                transform: translateX(-250px);
            }
            .sidebar.active {
                transform: translateX(0);
            }
            .topbar {
                left: 5px;
                right: 5px;
                width: auto;
            }
            .content {
                margin-left: 0;
            }
            .menu-toggle {
                display: block !important; /* Show on mobile devices */
            }
            .close-sidebar {
                 display: block; /* Show close button on mobile */
            }            
        }