/* Fix for dropdown submenu visibility */
.dropdown-submenu {
    position: relative !important;
}

.dropdown-submenu > .dropdown-menu {
    top: 0 !important;
    left: 100% !important;
    margin-top: -6px !important;
    margin-left: -1px !important;
    display: none !important;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}
/* Fix dropdown submenu positioning and visibility */
.dropdown-submenu {
    position: relative !important;
}

.dropdown-submenu > .dropdown-menu {
    top: 0 !important;
    left: 100% !important;
    margin-top: -6px !important;
    margin-left: -1px !important;
    display: none !important;
}

.dropdown-submenu.open > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
}

/* Add arrow indicator */
.dropdown-submenu > a::after {
    content: "\f105" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    float: right !important;
    margin-top: 2px !important;
}

/* ZenCRM Style Dashboard Cards - Clean & Sleek */
.top_stats_wrapper.top_stats_teal,
.top_stats_wrapper.top_stats_green,
.top_stats_wrapper.top_stats_yellow,
.top_stats_wrapper.top_stats_red {
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    position: relative;
    overflow: hidden;
    padding: 20px 22px !important;
}

/* Subtle top border accent */
.top_stats_wrapper.top_stats_teal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #1D5A49;
}

.top_stats_wrapper.top_stats_green::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #059669;
}

.top_stats_wrapper.top_stats_yellow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d97706;
}

.top_stats_wrapper.top_stats_red::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #dc2626;
}

/* Icon styling - minimal and clean */
.top_stats_teal .card-icon {
    color: #1D5A49 !important;
    opacity: 0.85;
}

.top_stats_green .card-icon {
    color: #059669 !important;
    opacity: 0.85;
}

.top_stats_yellow .card-icon {
    color: #d97706 !important;
    opacity: 0.85;
}

.top_stats_red .card-icon {
    color: #dc2626 !important;
    opacity: 0.85;
}

/* Card text styling - clean hierarchy */
.top_stats_teal .card-label,
.top_stats_green .card-label,
.top_stats_yellow .card-label,
.top_stats_red .card-label {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.top_stats_teal .card-value,
.top_stats_green .card-value,
.top_stats_yellow .card-value,
.top_stats_red .card-value {
    color: #0f172a !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.2;
}

/* Hide progress bars for cleaner look */
.top_stats_teal .progress,
.top_stats_green .progress,
.top_stats_yellow .progress,
.top_stats_red .progress {
    display: none !important;
}

/* Subtle hover effect */
.top_stats_wrapper.top_stats_teal:hover,
.top_stats_wrapper.top_stats_green:hover,
.top_stats_wrapper.top_stats_yellow:hover,
.top_stats_wrapper.top_stats_red:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease;
}

.top_stats_wrapper {
    transition: all 0.2s ease;
}

/* Adjust spacing for cleaner look */
.top_stats_wrapper .mtop5 {
    margin-top: 0 !important;
}

/* Responsive dashboard stats cards */
@media (max-width: 767px) {
    .top_stats_wrapper {
        margin-bottom: 15px !important;
        padding: 15px 18px !important;
    }

    .top_stats_wrapper .card-value {
        font-size: 24px !important;
    }

    .top_stats_wrapper .card-label {
        font-size: 12px !important;
    }

    /* Full width on mobile */
    .quick-stats-customers,
    .quick-stats-leads,
    .quick-stats-sources,
    .quick-stats-followups {
        width: 100% !important;
        margin-bottom: 12px !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .top_stats_wrapper {
        margin-bottom: 15px !important;
    }
}

/* Apply ZenCRM Style to All Dashboard Widgets - Fully Responsive */
.widget .panel_s {
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    position: relative;
    overflow: hidden;
    border-top: 3px solid #1D5A49 !important;
    transition: all 0.2s ease;
}

.widget .panel_s:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* Widget responsiveness */
@media (max-width: 767px) {
    .widget .panel_s {
        border-radius: 10px !important;
        margin-bottom: 15px !important;
    }

    .widget .panel_s .panel-body {
        padding: 15px !important;
    }
}

/* Clean panel body styling */
.widget .panel_s .panel-body {
    padding: 20px !important;
}

/* Widget headings */
.widget .panel_s h4,
.widget .panel_s .panel-title {
    color: #0f172a !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    margin-bottom: 15px !important;
}

/* Clean table styling for widgets */
.widget .panel_s table {
    border: none !important;
}

.widget .panel_s table thead th {
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 12px 15px !important;
}

.widget .panel_s table tbody td {
    padding: 12px 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
}

.widget .panel_s table tbody tr:hover {
    background: #f8fafc !important;
}

/* Finance overview styling */
.finance-summary .text-stats-wrapper {
    margin-bottom: 12px !important;
}

.finance-summary .text-stats-wrapper a {
    font-size: 13px !important;
    font-weight: 500 !important;
}

.finance-summary ._total {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-right: 8px !important;
}

/* Calendar widget specific */
#calendar {
    border-radius: 8px !important;
}

.fc-toolbar h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
}

.fc-button {
    border-radius: 6px !important;
    font-weight: 500 !important;
}

/* Chart containers */
.widget canvas {
    border-radius: 8px !important;
}

/* Clean list styling */
.widget ul.list-unstyled li {
    padding: 10px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.widget ul.list-unstyled li:last-child {
    border-bottom: none !important;
}

/* Progress bars in widgets */
.widget .progress {
    height: 6px !important;
    border-radius: 3px !important;
    background-color: #f1f5f9 !important;
}

.widget .progress-bar {
    border-radius: 3px !important;
}

/* Upcoming events / contracts expiring */
.widget .panel_s .media-body {
    padding: 8px 0 !important;
}

.widget .panel_s .media-heading {
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 14px !important;
}

/* Todos widget */
.widget .todos-wrapper .todo-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Clean badge styling */
.widget .badge {
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-weight: 500 !important;
    font-size: 11px !important;
}

/* Additional refinements for Finance Summary Widget */
.finance-summary .panel_s {
    border-top: 3px solid #1D5A49 !important;
}

.finance-summary .home-summary .col-md-6,
.finance-summary .home-summary .col-lg-4 {
    padding: 0 15px !important;
}

/* Invoice totals section at bottom of finance widget */
.invoices-total-inline {
    padding-top: 15px !important;
}

.invoices-total-inline .col-md-3 {
    margin-bottom: 15px !important;
}

/* Better section headers in finance widget */
.finance-summary p.text-neutral-700 {
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Chart widgets improvements */
.widget .panel_s .chart-wrapper {
    padding: 10px 0 !important;
}

/* Projects activity widget */
.widget .project-activity-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.widget .project-activity-item:last-child {
    border-bottom: none !important;
}

/* Responsive spacing */
@media (max-width: 768px) {
    .widget .panel_s .panel-body {
        padding: 15px !important;
    }

    .finance-summary .home-summary .col-md-6,
    .finance-summary .home-summary .col-lg-4 {
        margin-bottom: 20px !important;
    }
}

/* Overall dashboard content area */
.content .row .widget {
    margin-bottom: 20px !important;
}

/* Remove default shadows from nested elements */
.widget .panel_s .panel-heading {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Clean dividers */
.widget hr {
    border-color: #e2e8f0 !important;
    margin: 15px 0 !important;
}

/* ========================================
   ZenCRM Style Sidebar - DESKTOP ONLY
   ======================================== */

/* Logo area - Dark background (all screens) */
.sidebar #logo {
    background: #1D5A49 !important;
    border-bottom: 1px solid #164639 !important;
}

/* Logo text white (all screens) */
.sidebar #logo a,
.sidebar #logo span,
.sidebar #logo .company-name,
.sidebar #logo img + span {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* DESKTOP ONLY STYLES (992px and above) */
@media (min-width: 992px) {
    /* Sidebar base styling */
    .sidebar {
        background: #ffffff !important;
        border-right: 1px solid #e2e8f0 !important;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04) !important;
    }

    /* Menu items */
    .sidebar li a {
        color: #475569 !important;
        font-weight: 500 !important;
        font-size: 14px !important;
        padding: 10px 15px !important;
        border-radius: 8px !important;
        margin: 2px 8px !important;
        transition: all 0.2s ease !important;
    }

    /* Menu icons */
    .sidebar li a i.menu-icon {
        color: #64748b !important;
        opacity: 1 !important;
        font-size: 16px !important;
        margin-right: 12px !important;
    }

    /* Active menu item */
    .sidebar li.active > a {
        background: #1D5A49 !important;
        color: #ffffff !important;
        border-radius: 8px !important;
    }

    .sidebar li.active > a .menu-icon {
        color: #ffffff !important;
        opacity: 1 !important;
    }

    /* Hover effect */
    .sidebar .nav > li > a:hover,
    .sidebar .nav > li > a:focus {
        background: #f1f5f9 !important;
        color: #1D5A49 !important;
        border-radius: 8px !important;
    }

    .sidebar .nav > li > a:hover .menu-icon,
    .sidebar .nav > li > a:focus .menu-icon {
        color: #1D5A49 !important;
        opacity: 1 !important;
    }

    /* Sub-menu styling */
    .sidebar li .nav-second-level {
        background: #f8fafc !important;
        border-radius: 8px !important;
        margin: 4px 8px !important;
        padding: 4px 0 !important;
    }

    .sidebar li .nav-second-level li a {
        color: #64748b !important;
        font-size: 13px !important;
        padding: 8px 15px 8px 45px !important;
        margin: 1px 4px !important;
    }

    .sidebar li .nav-second-level li.active a {
        background: #1D5A49 !important;
        color: #ffffff !important;
        border-radius: 6px !important;
        display: block !important;
        padding: 8px 15px 8px 45px !important;
    }

    .sidebar li .nav-second-level li a:hover,
    .sidebar .nav > li .nav-second-level > li:not(.active) > a:hover,
    .sidebar .nav > li .nav-second-level > li:not(.active) > a:focus {
        background: #e2e8f0 !important;
        color: #1D5A49 !important;
        border-radius: 6px !important;
    }

    /* Menu arrow indicator */
    .sidebar .fa.arrow {
        color: #94a3b8 !important;
        transition: transform 0.2s ease !important;
    }

    .sidebar li.active > a .fa.arrow {
        color: #ffffff !important;
    }

    /* Badge styling in sidebar */
    .sidebar .badge {
        background: #1D5A49 !important;
        color: #ffffff !important;
        border-radius: 12px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        padding: 3px 8px !important;
    }

    .sidebar li.active .badge {
        background: #ffffff !important;
        color: #1D5A49 !important;
    }

    /* Setup menu item */
    .sidebar #setup-menu-item a {
        color: #64748b !important;
    }

    .sidebar #setup-menu-item a:hover {
        background: #f1f5f9 !important;
        color: #1D5A49 !important;
    }

    /* Menu text */
    .sidebar .menu-text,
    .sidebar .sub-menu-text {
        font-weight: 500 !important;
    }

    /* Spacing improvements */
    .sidebar > ul {
        padding: 8px 0 !important;
    }

    .sidebar > ul > li {
        margin-bottom: 2px !important;
    }

    /* Scrollbar styling for sidebar */
    .sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar::-webkit-scrollbar-track {
        background: #f8fafc;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}

/* ========================================
   MOBILE/TABLET SIDEBAR STYLES (BELOW 992px)
   ======================================== */
@media (max-width: 991px) {
    /* Sidebar dark background for mobile/tablet */
    .sidebar,
    aside.sidebar,
    #menu,
    aside#menu {
        background: #1e293b !important;
        background-color: #1e293b !important;
        border-right: none !important;
        position: fixed !important;
        top: 63px !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 230px !important;
        z-index: 100 !important;
        overflow-y: auto !important;
    }

    /* Sidebar navigation elements */
    .sidebar ul,
    .sidebar .nav,
    .sidebar .metis-menu,
    #side-menu {
        background: #1e293b !important;
        background-color: #1e293b !important;
    }

    /* Menu items */
    .sidebar li {
        background: transparent !important;
        background-color: transparent !important;
    }

    .sidebar li a {
        color: #f1f5f9 !important;
        font-weight: 500 !important;
        padding: 10px 15px !important;
        border-radius: 8px !important;
        margin: 2px 8px !important;
    }

    .sidebar li a i.menu-icon {
        color: #94a3b8 !important;
        opacity: 1 !important;
    }

    /* Active menu item on mobile */
    .sidebar li.active > a {
        background: #334155 !important;
        color: #f1f5f9 !important;
    }

    .sidebar li.active > a .menu-icon {
        color: #f1f5f9 !important;
    }

    /* Hover effect on mobile */
    .sidebar .nav > li > a:hover,
    .sidebar .nav > li > a:focus {
        background: #334155 !important;
        color: #f1f5f9 !important;
    }

    /* Sub-menu styling for mobile */
    .sidebar li .nav-second-level {
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 8px !important;
        margin: 4px 8px !important;
        padding: 4px 0 !important;
    }

    .sidebar li .nav-second-level li a {
        color: #cbd5e1 !important;
        padding: 8px 15px 8px 45px !important;
    }

    .sidebar li .nav-second-level li.active a {
        background: #475569 !important;
        color: #ffffff !important;
    }

    /* Mobile navbar dropdown */
    .mobile-navbar {
        background: #1e293b !important;
        background-color: #1e293b !important;
    }

    .mobile-navbar .navbar-nav > li > a {
        color: #f1f5f9 !important;
    }

    /* Ensure logo area stays dark on mobile */
    .sidebar #logo {
        background: #1e293b !important;
        border-bottom: 1px solid #334155 !important;
    }
}

/* ========================================
   ZenCRM Style Top Navbar - Fully Responsive
   ======================================== */

/* Header/Navbar - ALL SCREENS */
header#header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Navbar links - ALL SCREENS */
header#header .navbar-nav > li > a {
    color: #475569 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

header#header .navbar-nav > li > a:hover {
    color: #1D5A49 !important;
    background: #f8fafc !important;
}

/* Dropdown menus - ALL SCREENS */
header#header .dropdown-menu {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    padding: 8px !important;
}

header#header .dropdown-menu > li > a {
    border-radius: 6px !important;
    padding: 8px 12px !important;
    color: #475569 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
}

header#header .dropdown-menu > li > a:hover {
    background: #f1f5f9 !important;
    color: #1D5A49 !important;
}

/* Search bar in header - ALL SCREENS */
header#header .header-search input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
}

header#header .header-search input:focus {
    border-color: #1D5A49 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(29, 90, 73, 0.1) !important;
}

/* Notifications badge - ALL SCREENS */
header#header .notifications-indicator {
    background: #1D5A49 !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}

/* User dropdown - ALL SCREENS */
header#header .navbar-right .dropdown-toggle {
    border-radius: 8px !important;
    padding: 6px 12px !important;
}

header#header .navbar-right .dropdown-toggle:hover {
    background: #f8fafc !important;
}

/* Icons in header - ALL SCREENS */
header#header i {
    color: #64748b !important;
}

header#header a:hover i {
    color: #1D5A49 !important;
}

/* Mobile header adjustments */
@media (max-width: 767px) {
    header#header {
        padding: 10px 15px !important;
    }

    header#header .navbar-nav {
        margin: 0 !important;
    }

    header#header .dropdown-menu {
        border-radius: 6px !important;
        margin-top: 8px !important;
    }
}

/* ========================================
   Page Content Area Refinements - Fully Responsive
   ======================================== */

/* Main content background - ALL SCREENS */
#wrapper .content {
    background: #f8fafc !important;
}

/* Page header - ALL SCREENS */
.content .tw-mb-2.sm\\:tw-mb-4 h4,
.content h4.tw-mt-0 {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Breadcrumbs - ALL SCREENS */
.breadcrumb {
    background: transparent !important;
    padding: 8px 0 !important;
}

.breadcrumb > li + li:before {
    color: #94a3b8 !important;
}

.breadcrumb > li a {
    color: #64748b !important;
}

.breadcrumb > li.active {
    color: #1D5A49 !important;
    font-weight: 500 !important;
}

/* Buttons refinement - ALL SCREENS */
.btn-primary {
    background: #1D5A49 !important;
    border-color: #1D5A49 !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    background: #164639 !important;
    border-color: #164639 !important;
    box-shadow: 0 2px 4px rgba(29, 90, 73, 0.2) !important;
}

.btn {
    border-radius: 8px !important;
    font-weight: 500 !important;
}

/* Input fields - ALL SCREENS */
.form-control {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.form-control:focus {
    border-color: #1D5A49 !important;
    box-shadow: 0 0 0 3px rgba(29, 90, 73, 0.1) !important;
}

/* Select dropdowns - ALL SCREENS */
.select2-container--default .select2-selection--single {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #1D5A49 !important;
}

/* Modals - ALL SCREENS */
.modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.modal-header {
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 12px 12px 0 0 !important;
}

.modal-title {
    color: #0f172a !important;
    font-weight: 600 !important;
}

/* Tables - ALL SCREENS */
.table > thead > tr > th {
    background: #f8fafc !important;
    color: #64748b !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0 !important;
}

.table > tbody > tr:hover {
    background: #f8fafc !important;
}

.table > tbody > tr > td {
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Responsive adjustments for content */
@media (max-width: 767px) {
    /* Adjust padding on mobile */
    #wrapper .content {
        padding: 15px !important;
    }

    /* Stack cards properly on mobile */
    .widget {
        margin-bottom: 15px !important;
    }

    /* Better button spacing on mobile */
    .btn {
        margin-bottom: 8px !important;
    }

    /* Responsive tables */
    .table-responsive {
        border: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet adjustments */
    #wrapper .content {
        padding: 20px !important;
    }
}

/* Fix sidebar menu spacing - prevent first menu item from hitting the logo */
#side-menu > li:first-child {
    margin-bottom: 12px !important;
}

#side-menu > li:nth-child(2) {
    margin-top: 8px !important;
}

/* Ensure proper spacing between all sidebar menu items */
#side-menu > li {
    margin-bottom: 2px !important;
}

/* Additional padding for menu items for better visual separation */
#side-menu > li > a {
    padding: 12px 15px !important;
}

/* Override yellow calendar event colors with cool light blue */
.fc-event,
.fc-event-container .fc-event {
    background-color: #B8E6F0 !important; /* Light cyan/blue - cool and calming */
    border-color: #7DD3E8 !important; /* Slightly darker cyan for border */
    color: #2C5F6F !important; /* Dark cyan text for readability */
}

.fc-event:hover {
    background-color: #9FDCF0 !important; /* Slightly brighter on hover */
    border-color: #5FC4DD !important;
}

/* Override any yellow/amber background colors */
.fc-event[style*="background-color: #ffc107"],
.fc-event[style*="background-color: #ffeb3b"],
.fc-event[style*="background-color: rgb(255, 193, 7)"],
.fc-event[style*="background: #ffc107"],
.fc-event[style*="background: #ffeb3b"] {
    background-color: #B8E6F0 !important;
    background: #B8E6F0 !important;
    border-color: #7DD3E8 !important;
}

/* Fix calendar yellow/beige background - change to cool white/light blue */
#calendar,
.fc,
.fc-view,
.fc-view-harness,
.fc-timegrid,
.fc-timegrid-body,
.fc-daygrid-body,
.fc-scrollgrid,
.fc-scrollgrid-sync-table,
.fc-col-header,
.fc-timegrid-axis,
.fc-timegrid-slots,
.fc-timegrid-slot,
.fc-daygrid-day,
.fc-day,
.fc-daygrid-day-frame,
.fc-timegrid-col-frame {
    background-color: #F8FCFF !important; /* Very light cool blue - almost white */
}

/* Specific override for time grid background */
.fc-timegrid-col.fc-day {
    background-color: #F8FCFF !important;
}

/* Day grid cells */
.fc-daygrid-day.fc-day {
    background-color: #FFFFFF !important; /* Pure white for day grid */
}

/* Alternate: if you see any yellow still, this catches it all */
.fc * {
    background-color: inherit !important;
}

.fc-view-harness {
    background: #F8FCFF !important;
}

/* Fix calendar button text visibility - make text dark and visible */
.fc-button,
.fc-toolbar button,
.fc .fc-button,
.fc-toolbar-chunk button {
    color: #2C3E50 !important; /* Dark gray text for visibility */
    font-weight: 500 !important;
}

/* Navigation buttons (< >) */
.fc-prev-button,
.fc-next-button {
    color: #2C3E50 !important;
}

/* Primary buttons (active view mode) */
.fc-button-primary {
    color: #FFFFFF !important; /* White text for active/primary buttons */
    background-color: #3788D8 !important; /* Blue background for active state */
    border-color: #3788D8 !important;
}

/* Non-active buttons (default state) */
.fc-button-primary:not(.fc-button-active) {
    color: #2C3E50 !important; /* Dark text for inactive buttons */
    background-color: #FFFFFF !important; /* White background */
    border-color: #CBD5E0 !important; /* Light gray border */
}

/* Button hover state */
.fc-button:hover {
    color: #FFFFFF !important;
    background-color: #2980B9 !important;
    border-color: #2980B9 !important;
}

/* Filter button */
.fc-button.fc-button-primary {
    color: #2C3E50 !important;
}

/* Ensure all button text is visible */
.fc-toolbar button span,
.fc-button span {
    color: inherit !important;
}
