/* Custom Scrollbar & Smooth Scroll for Sidebar */
#menu, #setup-menu-wrapper {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    padding-bottom: 100px !important;
}

#side-menu {
    padding-bottom: 120px !important;
    touch-action: pan-y !important;
}

/* Scrollbar styling for Webkit browsers (Chrome, Safari, Edge) */
#menu::-webkit-scrollbar, #setup-menu-wrapper::-webkit-scrollbar {
    width: 6px;
}
#menu::-webkit-scrollbar-track, #setup-menu-wrapper::-webkit-scrollbar-track {
    background: #000000;
}
#menu::-webkit-scrollbar-thumb, #setup-menu-wrapper::-webkit-scrollbar-thumb {
    background: #C4F00B;
    border-radius: 10px;
}
#menu::-webkit-scrollbar-thumb:hover, #setup-menu-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a3c909;
}

/* Sidebar Menu Typography & Single-Line Fit */
#menu .nav > li > a, #setup-menu-wrapper .nav > li > a {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    padding: 7px 10px !important;
    font-size: 13.5px !important;
    letter-spacing: -0.2px !important;
}

#menu .nav > li > a .menu-text, #setup-menu-wrapper .nav > li > a .menu-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 1 auto !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

#menu .nav > li > a i.menu-icon, #setup-menu-wrapper .nav > li > a i.menu-icon {
    flex-shrink: 0 !important;
    margin-right: 10px !important;
    width: 16px !important;
    text-align: center !important;
}

#menu .nav > li > a span.fa.arrow, #setup-menu-wrapper .nav > li > a span.fa.arrow {
    margin-left: auto !important;
    flex-shrink: 0 !important;
}


/* Mobile specific fixes (max-width: 768px) */
@media (max-width: 768px) {
    body.show-sidebar {
        overflow: hidden !important;
    }

    aside#menu, #menu.sidebar, #setup-menu-wrapper {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 230px !important;
        max-width: 85vw !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: 100% !important;
        max-height: 100dvh !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        overscroll-behavior-y: contain !important;
        z-index: 99999 !important;
    }

    body.show-sidebar aside#menu,
    body.page-small.show-sidebar aside#menu {
        margin-left: 0 !important;
        transform: translate3d(0, 0, 0) !important;
        pointer-events: auto !important;
    }

    body.page-small:not(.show-sidebar) aside#menu,
    body.hide-sidebar:not(.show-sidebar) aside#menu {
        margin-left: -230px !important;
        pointer-events: none !important;
    }

    aside#menu #side-menu,
    #setup-menu-wrapper #setup-menu {
        padding-bottom: 160px !important;
        touch-action: pan-y !important;
    }

    #setup-menu-wrapper {
        z-index: 100000 !important;
    }
}

/* Web-to-Lead Forms - Edoply Brand Styling */
body.web-to-lead {
    background-color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.web-to-lead .form-col {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

body.web-to-lead h3.header {
    font-weight: 700;
    color: #0f172a;
    font-size: 24px;
    margin-bottom: 6px;
}

body.web-to-lead p.paragraph {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
}

body.web-to-lead label.control-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

body.web-to-lead .form-control {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    height: auto;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

body.web-to-lead .form-control:focus {
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 240, 11, 0.5) !important;
}

body.web-to-lead #form_submit {
    background-color: #C4F00B !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(196, 240, 11, 0.4) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

body.web-to-lead #form_submit:hover,
body.web-to-lead #form_submit:focus {
    background-color: #a3c909 !important;
    color: #000000 !important;
    box-shadow: 0 6px 20px rgba(196, 240, 11, 0.5) !important;
    transform: translateY(-1px);
}

/* Edoply Live Reminder & Notification Toasts */
#edoply-toasts-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 99999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100vw - 40px);
}
.edoply-live-toast {
    pointer-events: auto;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    border: 2px solid #C4F00B;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(196, 240, 11, 0.35);
    padding: 14px 16px;
    font-family: inherit;
    animation: edoplySlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}
@keyframes edoplySlideIn {
    from { transform: translateX(110%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.edoply-live-toast .toast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.edoply-live-toast .toast-icon {
    font-size: 18px;
    margin-right: 8px;
    display: inline-block;
    animation: edoplyBellShake 1.2s infinite ease-in-out;
}
.edoply-live-toast .toast-title {
    color: #C4F00B;
    font-size: 13.5px;
    font-weight: 700;
    flex: 1;
    letter-spacing: 0.3px;
}
.edoply-live-toast .toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.edoply-live-toast .toast-close:hover {
    color: #ffffff;
}
.edoply-live-toast .toast-body {
    margin-bottom: 10px;
}
.edoply-live-toast .toast-lead-name {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 4px;
}
.edoply-live-toast .toast-lead-desc {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.4;
    word-break: break-word;
    background: rgba(255, 255, 255, 0.07);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #C4F00B;
    margin-bottom: 6px;
}
.edoply-live-toast .toast-lead-time {
    font-size: 11px;
    color: #94a3b8;
}
.edoply-live-toast .toast-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}
.edoply-live-toast .btn-edoply-view {
    background: #C4F00B !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(196, 240, 11, 0.3);
}
.edoply-live-toast .btn-edoply-view:hover {
    background: #d4ff1a !important;
    color: #000000 !important;
}
.edoply-live-toast .toast-dismiss-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
}
@keyframes edoplyBellShake {
    0%, 100% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(18deg); }
    40%, 80% { transform: rotate(-18deg); }
}
.edoply-bell-ringing {
    display: inline-block !important;
    animation: edoplyBellShake 0.6s 4 ease-in-out !important;
    color: #C4F00B !important;
}

