/*Write your custom css in this file.*/

html,
body {
    background-color: #F9F9F9 !important;
}

/* Global: remove card shadows */
.card,
.card:hover,
.card:focus,
.card:active {
    box-shadow: none !important;
}

/* Modern sidebar redesign */
.sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border-right: 1px solid #e6ebf5;
    box-shadow: none;
}

.sidebar .sidebar-brand {
    border-bottom: 1px solid #edf1f7;
}

.sidebar .sidebar-scroll {
    padding: 10px 10px 14px;
}

#sidebar-menu {
    gap: 4px;
}

#sidebar-menu > li {
    margin: 2px 0;
}

#sidebar-menu > li > a {
    border-radius: 12px;
    padding: 10px 12px;
    color: #27324a;
    font-weight: 500;
    transition: all .2s ease;
    border: 1px solid transparent;
}

#sidebar-menu > li > a:hover,
#sidebar-menu > li > a:focus {
    background: #edf3ff;
    color: #1f2a44;
    border-color: #d9e5ff;
}

#sidebar-menu > li > a .icon,
#sidebar-menu > li > a svg {
    color: #3d4860;
    stroke-width: 2.1;
}

#sidebar-menu > li.active > a {
    background: linear-gradient(45deg, #5e1cd5, #2392f8) !important;
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(94, 28, 213, 0.2);
}

#sidebar-menu > li.active > a .icon,
#sidebar-menu > li.active > a svg,
#sidebar-menu > li.active > a .menu-text {
    color: #ffffff !important;
}

#sidebar-menu .badge {
    border-radius: 999px;
    font-weight: 600;
    font-size: 11px;
    min-width: 24px;
    text-align: center;
    box-shadow: none;
}

#sidebar-menu li ul {
    margin-top: 6px;
    margin-left: 8px;
    padding: 4px 0 4px 10px;
    border-left: 1px dashed #d5deee;
}

#sidebar-menu li ul li a {
    border-radius: 10px;
    padding: 8px 10px;
    color: #4e5b75;
}

#sidebar-menu li ul li a:hover {
    background: #eff4ff;
    color: #2f3a55;
}

#sidebar-menu li.expand > a::before,
#sidebar-menu li.expand.open > a::before {
    color: #7b879d;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: #cfd7e8;
    border-radius: 999px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: #b8c4dc;
}

/* Keep compact/toggled mode clean */
.sidebar-toggled #sidebar-menu > li > a {
    border-radius: 10px;
}

@media (max-width: 767.98px) {
    .sidebar .sidebar-scroll {
        padding: 8px;
    }

    #sidebar-menu > li > a {
        border-radius: 10px;
    }
}

/* Modern dashboard redesign */
.dashboard-view {
    padding-top: 18px;
}

.dashboard-view .dashbaord-header-area {
    display: none !important;
}

.dashboard-view .dashbaord-header-area h4 {
    margin: 3px 0 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2a44;
}

.dashboard-view .dashbaord-header-area .color-tag {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #eef3ff;
}

.dashboard-view .dashboard-dropdown .dropdown-toggle {
    border: 1px solid #e1e7f3;
    box-shadow: none;
    background: #fff;
}

.dashboard-view .dashboard-dropdown .dropdown-toggle:hover {
    background: #f2f6ff;
    border-color: #d0dcf5;
}

.dashboard-view .widget-container {
    margin-bottom: 16px;
}

.dashboard-view .card {
    border: 1px solid #e8edf7;
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
}

.dashboard-view .card .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #edf2fb;
    padding: 14px 16px;
}

.dashboard-view .card .card-body {
    padding: 16px;
}

.dashboard-view .dashboard-icon-widget .card-body {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-view .dashboard-icon-widget .widget-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(45deg, #5e1cd5, #2392f8);
    box-shadow: 0 8px 16px rgba(94, 28, 213, 0.18);
}

.dashboard-view .dashboard-icon-widget .widget-icon .icon {
    width: 1.35rem;
    height: 1.35rem;
}

.dashboard-view .dashboard-icon-widget .widget-details {
    position: static;
    margin-left: auto;
    text-align: right;
}

.dashboard-view .dashboard-icon-widget .widget-details h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.1;
    color: #1f2a44;
}

.dashboard-view .dashboard-icon-widget .widget-details span {
    color: #63708a;
    font-weight: 500;
}

.dashboard-view .grid-bg {
    background: #f2f6ff;
    border: 1px solid #dee8fb;
}

.dashboard-view .column-grid-link:hover .grid-bg {
    background: linear-gradient(45deg, #5e1cd5, #2392f8);
}

@media (max-width: 767.98px) {
    .dashboard-view .dashbaord-header-area {
        border-radius: 14px;
        padding: 12px;
    }

    .dashboard-view .dashbaord-header-area h4 {
        font-size: 20px;
    }

    .dashboard-view .dashboard-icon-widget .card-body {
        padding: 14px;
    }

    .dashboard-view .dashboard-icon-widget .widget-details h1 {
        font-size: 24px;
    }
}

/* Client details page redesign */
.clients-view-button .page-title {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border: 1px solid #e7edf8;
    border-radius: 16px;
    padding: 0px 10px;
   
}

.clients-view-button .page-title h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    color: #1f2a44;
}

#client-details-tabs {
    background: #ffffff;
    border: 1px solid #e7edf8;
  border-radius: 14px!important;
    padding: 8px;
    margin-bottom: 16px !important;
    gap: 6px;
}

#client-details-tabs > li > a {
  
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 500;
    color: #44506a;
    transition: all .2s ease;
}

#client-details-tabs > li > a:hover {
    background: #f0f5ff;
    border-color: #d8e4fb;
    text-decoration: none!important;
    color: #27324a;
}

#client-details-tabs > li > a.active,
#client-details-tabs > li.active > a {
    background: linear-gradient(45deg, #5e1cd5, #2392f8) !important;
    border-color: transparent !important;
    color: #ffffff !important;
     text-decoration: none!important;
    box-shadow: 0 8px 16px rgba(94, 28, 213, 0.16);
}

#client-details-tabs > li > a::before,
#client-details-tabs > li > a::after {
    display: none !important;
}

#client-overview .card,
#client-summary .card,
#client-view-invoice-statistics .card,
#client-followups-section .card,
#client-view-contacts-section .card,
#client-events-section .card,
#client-details-client-info .card,
#client-details-client-custom-fields-info .card,
#client-tasks-section .card,
#client-notes-section .card,
#client-reminders.card {
    border: 1px solid #e7edf8;
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
}

#client-overview .card .card-header,
#client-details-client-info .card .card-header,
#client-details-client-custom-fields-info .card .card-header,
#client-reminders.card .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border-bottom: 1px solid #edf2fb;
}

#client-summary .card .box {
    display: flex;
    align-items: stretch;
}

#client-summary .box .box-content {
    flex: 1;
    position: relative;
}

#client-summary .box .box-content:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 18%;
    height: 64%;
    width: 1px;
    background: #edf2fb;
}

#client-summary .box .box-content .pt-3,
#client-summary .box .box-content .pb-3 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

#client-summary .box .box-content h4 {
    font-size: 28px;
    font-weight: 700;
}

#client-followups-section .card-header {
    background: linear-gradient(45deg, #1f2e5a, #27427f);
    color: #ffffff;
}

#client-followups-section .card-header a,
#client-followups-section .card-header .btn {
    color: #ffffff !important;
}

#client-overview .details-view-wrapper {
    gap: 18px;
}

#client-overview .details-view-right-section {
    width: 370px;
    margin-left: 0;
}

@media (max-width: 991.98px) {
    .clients-view-button .page-title h1 {
        font-size: 24px;
    }

    #client-details-tabs {
        padding: 6px;
    }

    #client-details-tabs > li > a {
        padding: 7px 12px;
    }

    #client-summary .card .box {
        display: block;
    }

    #client-summary .box .box-content:not(:last-child)::after {
        display: none;
    }

    #client-overview .details-view-right-section {
        width: 100%;
    }
}

/* Equal height for client followup cards */
#client-followups-section .followups-layout {
    align-items: stretch !important;
}

#client-followups-section .followups-layout > .card {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

#client-followups-section .followups-reminders-body,
#client-followups-section .followups-chat-body {
    flex: 1 1 auto;
}

/* Lead details page redesign */
.leads-details-view .leads-page-title {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border: 1px solid #e7edf8;
    border-radius: 16px;
    padding: 10px 14px;
    margin-bottom: 14px !important;
}

.leads-details-view .leads-page-title h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    color: #1f2a44;
}

.leads-details-view .leads-page-title .title-button-group .btn {
    border-radius: 999px;
    background: linear-gradient(45deg, #5e1cd5, #2392f8) !important;
    border: 0;
    color: #fff !important;
    font-weight: 600;
}

.leads-details-view .nav.nav-tabs.scrollable-tabs {
    background: #ffffff;
    border: 1px solid #e7edf8;
  border-radius: 14px!important;
    padding: 8px;
    margin-bottom: 16px !important;
    gap: 6px;
}

.leads-details-view .nav.nav-tabs.scrollable-tabs > li > a {
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 500;
    color: #44506a;
    transition: all .2s ease;
    text-decoration: none !important;
}

.leads-details-view .nav.nav-tabs.scrollable-tabs > li > a:hover {
    background: #f0f5ff;
    color: #27324a;
    text-decoration: none !important;
}

.leads-details-view .nav.nav-tabs.scrollable-tabs > li > a.active,
.leads-details-view .nav.nav-tabs.scrollable-tabs > li.active > a {
    background: linear-gradient(45deg, #5e1cd5, #2392f8) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.leads-details-view .nav.nav-tabs.scrollable-tabs > li > a::before,
.leads-details-view .nav.nav-tabs.scrollable-tabs > li > a::after {
    display: none !important;
}

#lead-overview .card,
#lead-summary .card,
#lead-followups-section .card,
#lead-details-lead-info .card,
#lead-details-lead-custom-fields-info .card,
#lead-tasks-section .card,
#lead-notes-section .card,
#lead-reminders.card {
    border: 1px solid #e7edf8;
    border-radius: 16px;
    overflow: hidden;
}

#lead-overview .card .card-header,
#lead-details-lead-info .card .card-header,
#lead-details-lead-custom-fields-info .card .card-header,
#lead-reminders.card .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border-bottom: 1px solid #edf2fb;
}

#lead-summary .card .box {
    display: flex;
    align-items: stretch;
}

#lead-summary .box .box-content {
    flex: 1;
    position: relative;
}

#lead-summary .box .box-content:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 18%;
    height: 64%;
    width: 1px;
    background: #edf2fb;
}

#lead-summary .box .box-content .pt-3,
#lead-summary .box .box-content .pb-3 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

#lead-summary .box .box-content h4 {
    font-size: 28px;
    font-weight: 700;
}

#lead-followups-section .card-header {
    background: linear-gradient(45deg, #1f2e5a, #27427f);
    color: #ffffff;
}

#lead-followups-section .card-header a,
#lead-followups-section .card-header .btn {
    color: #ffffff !important;
}

#lead-overview .details-view-wrapper {
    gap: 18px;
}

#lead-overview .details-view-right-section {
    width: 370px;
    margin-left: 0;
}

/* Equal height for lead followup cards */
#lead-followups-section .followups-layout {
    align-items: stretch !important;
}

#lead-followups-section .followups-layout > .card {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

#lead-followups-section .followups-reminders-body,
#lead-followups-section .followups-chat-body {
    flex: 1 1 auto;
}

@media (max-width: 991.98px) {
    .leads-details-view .leads-page-title h1 {
        font-size: 24px;
    }

    .leads-details-view .nav.nav-tabs.scrollable-tabs {
        padding: 6px;
    }

    .leads-details-view .nav.nav-tabs.scrollable-tabs > li > a {
        padding: 7px 12px;
    }

    #lead-summary .card .box {
        display: block;
    }

    #lead-summary .box .box-content:not(:last-child)::after {
        display: none;
    }

    #lead-overview .details-view-right-section {
        width: 100%;
    }
}
