
:root {
    --bs-primary: #4949ee;
    --bs-primary-rgb: 73, 73, 238;
    --bs-link-hover-color: #4949ee;
    --bs-warning: #4949ee;
    --bs-warning-rgb: 73, 73, 238;
    --bs-yellow: #4949ee;
}

/* Sidebar active state: keep EasyPro look consistent */
.easypro-sidebar .sidebar-link.active {
    color: #1e3a8a !important;
    background: #eef3ff !important;
    box-shadow: inset 0 0 0 1px #e2e9ff !important;
}

.easypro-sidebar .sidebar-link.active .sidebar-link-title,
.easypro-sidebar .sidebar-link.active i.fas {
    color: #2563eb !important;
}

.easypro-sidebar .sidebar-link:focus,
.easypro-sidebar .sidebar-link[data-bs-toggle=collapse][aria-expanded="true"] {
    color: #1e3a8a !important;
    background: #eef3ff !important;
    box-shadow: inset 0 0 0 1px #e2e9ff !important;
}

.easypro-sidebar .sidebar-link:focus .sidebar-link-title,
.easypro-sidebar .sidebar-link:focus i.fas,
.easypro-sidebar .sidebar-link[data-bs-toggle=collapse][aria-expanded="true"] .sidebar-link-title,
.easypro-sidebar .sidebar-link[data-bs-toggle=collapse][aria-expanded="true"] i.fas {
    color: #2563eb !important;
}

/* Base theme injects a collapse chevron via ::before; EasyPro uses .sidebar-chevron icon */
.easypro-sidebar .sidebar-link::before {
    content: none !important;
    background-image: none !important;
}

.gradient-warning,
.gradient-yellow,
.text-warning,
.text-yellow,
.link-warning {
    color: #4949ee !important;
}

.bg-warning,
.bg-yellow,
.bg-hover-warning:hover,
.bg-hover-yellow:hover {
    background-color: #4949ee !important;
    background: #4949ee !important;
}

/* Buttons: override base theme yellow variants */
.btn-primary,
.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: #4949ee;
    --bs-btn-border-color: #4949ee;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #3b3bd4;
    --bs-btn-hover-border-color: #3b3bd4;
    --bs-btn-focus-shadow-rgb: 73, 73, 238;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #2f2fb9;
    --bs-btn-active-border-color: #2f2fb9;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #4949ee;
    --bs-btn-disabled-border-color: #4949ee;
}

.btn-outline-primary,
.btn-outline-warning {
    --bs-btn-color: #4949ee;
    --bs-btn-border-color: #4949ee;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4949ee;
    --bs-btn-hover-border-color: #4949ee;
    --bs-btn-focus-shadow-rgb: 73, 73, 238;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #3b3bd4;
    --bs-btn-active-border-color: #3b3bd4;
    --bs-btn-disabled-color: #4949ee;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #4949ee;
}

.list-group-item {
    font-size: 12px !important;
}

.error {
    font-size: 0.85rem !important;
}

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 10000; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible; /* Show the snackbar */
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

.alert {
    min-width: 400px;
    position: fixed;
    right: 10px;
    top: 77px;
    z-index: 1000;
}

.img-fluid {
    width: 35px !important;
    height: auto;
    margin-right: 8px;
}

.card {
    border-radius: 15px !important;
    padding: 9px;
    box-shadow: 0px 0 30px rgb(1 41 112 / 10%);
}

.border-left-danger {
    border-left: 3px solid var(--bs-danger);
}

.border-right-danger {
    border-right: 3px solid var(--bs-danger);
}

/*.spinner {*/
/*    z-index: 10000;*/
/*    position: fixed;*/
/*    left: 50%;*/
/*    top: 50%;*/
/*    height: 60px;*/
/*    width: 60px;*/
/*    margin: 0px auto;*/
/*    -webkit-animation: rotation .6s infinite linear;*/
/*    -moz-animation: rotation .6s infinite linear;*/
/*    -o-animation: rotation .6s infinite linear;*/
/*    animation: rotation .6s infinite linear;*/
/*    border-left: 6px solid rgba(0, 174, 239, .15);*/
/*    border-right: 6px solid rgba(0, 174, 239, .15);*/
/*    border-bottom: 6px solid rgba(0, 174, 239, .15);*/
/*    border-top: 6px solid rgb(239, 0, 0);;*/
/*    border-radius: 100%;*/
/*}*/

/*@-webkit-keyframes rotation {*/
/*    from {*/
/*        -webkit-transform: rotate(0deg);*/
/*    }*/
/*    to {*/
/*        -webkit-transform: rotate(359deg);*/
/*    }*/
/*}*/

/*@-moz-keyframes rotation {*/
/*    from {*/
/*        -moz-transform: rotate(0deg);*/
/*    }*/
/*    to {*/
/*        -moz-transform: rotate(359deg);*/
/*    }*/
/*}*/

/*@-o-keyframes rotation {*/
/*    from {*/
/*        -o-transform: rotate(0deg);*/
/*    }*/
/*    to {*/
/*        -o-transform: rotate(359deg);*/
/*    }*/
/*}*/

/*@keyframes rotation {*/
/*    from {*/
/*        transform: rotate(0deg);*/
/*    }*/
/*    to {*/
/*        transform: rotate(359deg);*/
/*    }*/
/*}*/
.table {
    font-size: 12px !important;
}

.text11 {
    font-size: 11px !important;
}

.text12 {
    font-size: 12px !important;
}

.text13 {
    font-size: 13px !important;
}

.text14 {
    font-size: 14px !important;
}

.table-header {
    background-color: #1a1a1a;
    color: #4949ee;
    font-weight: bold;
}

.sticky thead.sticky-header {
    background-color: #f5f5f5;
    position: fixed;
    top: 0;
    z-index: 1;
}

.theme-text {
    color: #4949ee !important;
}

.theme-background {
    background-color: #4949ee !important;
}

.state-card {
    background: #f4f4f4;
}

.folder-icon {
    font-size: 20px !important;
}

.page-breadcrumb {
    margin-bottom: 0.25rem !important;
}

.breadcrumb {
    margin-bottom: 0 !important;
}

.page-header {
    margin-bottom: 1.5rem !important;
}

/* App shell: sidebar + main — .page-holder uses width:100% which breaks a flex row */
.app-main-row > .sidebar {
    flex-shrink: 0;
}

.app-main-row > .app-page-main.page-holder {
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
}

.app-main-row {
    min-height: calc(100vh - 72px);
}

/* Font Awesome in sidebar: theme shrink rules target svg; mirror for .fas */
.sidebar.shrink .sidebar-link .sidebar-link-icon,
.sidebar.shrink .sidebar-link i.fas {
    margin-right: 0 !important;
}

@media (max-width: 1199.98px) {
    .sidebar .sidebar-link .sidebar-link-icon,
    .sidebar .sidebar-link i.fas {
        margin-right: 0 !important;
    }
}

/* Sidebar: submenu chevron */
.sidebar-chevron {
    transition: transform 0.3s ease;
    margin-left: auto;
}

[aria-expanded="true"] .sidebar-chevron {
    transform: rotate(180deg);
}

/* Sidebar link title: one line with ellipsis */
.sidebar-link-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

/* EasyPro style sidebar */
.easypro-sidebar {
    width: 17rem;
    background: #ffffff;
    border-right: 1px solid #ebedf2;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.05);
    height: calc(100vh - 72px);
    position: sticky;
    top: 72px;
    overflow-y: auto;
    overflow-x: hidden;
}

.easypro-sidebar .sidebar-menu {
    padding: 1.1rem 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.easypro-sidebar-brand {
    display: flex;
    align-items: center;
    margin: 0 0.5rem 1rem;
    padding: 0.3rem 0.2rem 0.6rem;
    border-bottom: 1px solid #f0f2f7;
}

.easypro-brand-logo-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.easypro-brand-logo {
    width: 100%;
    max-width: 168px;
    height: auto;
    display: block;
}

.easypro-sidebar .sidebar-heading {
    padding: 0 0.7rem;
    margin-bottom: 0.45rem;
    font-size: 0.66rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.easypro-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.28rem 0.45rem;
    border-radius: 11px;
    padding: 0.7rem 0.78rem;
    color: #4b5563;
    transition: all 0.2s ease;
}

.easypro-sidebar .sidebar-link i.fas {
    color: #6b7280;
}

.easypro-sidebar .sidebar-link .sidebar-link-title {
    color: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.15px;
}

.easypro-sidebar .sidebar-link:hover {
    color: #1f2937;
    background-color: #f3f7ff;
    transform: translateX(2px);
}

.easypro-sidebar .sidebar-link.active {
    color: #1e3a8a;
    background: #eef3ff;
    box-shadow: inset 0 0 0 1px #e2e9ff;
}

.easypro-sidebar .sidebar-link.active i.fas {
    color: #2563eb;
}

.easypro-sidebar .list-unstyled {
    flex: 1;
}

.easypro-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    margin: 1rem 0.45rem 0;
    padding: 0.7rem 0.55rem 0.45rem;
    border-top: 1px solid #f0f2f7;
}

.easypro-sidebar-user-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: block;
}

.easypro-sidebar-user-meta {
    min-width: 0;
    flex: 1;
}

.easypro-sidebar-user-name {
    font-size: 0.83rem;
    line-height: 1.2;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.easypro-sidebar-user-role {
    font-size: 0.72rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.easypro-sidebar-logout-form {
    margin-left: auto;
}

.easypro-sidebar-logout-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.easypro-sidebar-logout-btn:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.sidebar.shrink.easypro-sidebar {
    width: 5.75rem;
}

.sidebar.shrink.easypro-sidebar .sidebar-heading {
    display: none;
}

.sidebar.shrink.easypro-sidebar .easypro-sidebar-brand {
    justify-content: center;
    padding: 0.4rem 0;
    margin: 0 0.35rem 0.9rem;
}

.sidebar.shrink.easypro-sidebar .easypro-brand-logo-wrap {
    justify-content: center;
}

.sidebar.shrink.easypro-sidebar .easypro-brand-logo {
    max-width: 38px;
    margin: 0;
}

.sidebar.shrink.easypro-sidebar .sidebar-link {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 0.2rem;
    padding: 0.58rem 0.3rem;
}

.sidebar.shrink.easypro-sidebar .sidebar-link .sidebar-link-title {
    display: none;
}

.sidebar.shrink.easypro-sidebar .sidebar-link i.fas {
    margin-right: 0 !important;
}

.sidebar.shrink.easypro-sidebar .easypro-sidebar-user {
    justify-content: center;
    padding: 0.55rem 0;
}

.sidebar.shrink.easypro-sidebar .easypro-sidebar-user-meta {
    display: none;
}

.sidebar.shrink.easypro-sidebar .easypro-sidebar-logout-form {
    display: none;
}

.modern-notification-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #6b7280;
    background: #fff;
}

.modern-notification-btn:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #f9fafb;
}

.modern-new-lead-btn {
    background: #2563eb;
    color: #fff;
    border-radius: 10px;
    padding: 0.58rem 1rem;
    border: 1px solid #2563eb;
    font-weight: 600;
    font-size: 0.86rem;
    line-height: 1.2;
}

.modern-new-lead-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

/* Lead listing toolbar/table (EasyPro-like) */
.lead-listing-head .page-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.lead-listing-toolbar-card {
    border-radius: 14px 14px 0 0 !important;
}

.lead-listing-toolbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.9rem !important;
}

.lead-toolbar-group {
    min-width: 140px;
}

.lead-filter-pill-group {
    position: relative;
    min-width: 0;
}

.lead-filter-pill-icon {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.78rem;
    z-index: 2;
}

.lead-toolbar-group .form-select,
.lead-toolbar-search .form-control {
    border: 1px solid #dbe1ec;
    border-radius: 11px;
    height: 38px;
    box-shadow: none;
    font-size: 0.84rem;
    color: #1f2937;
}

.lead-date-range-inputs {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.lead-date-range-inputs .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    height: 36px;
    box-shadow: none;
    font-size: 0.82rem;
    min-width: 145px;
}

.lead-date-range-inputs .form-control:focus {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12);
}

.lead-date-range-sep {
    font-size: 0.72rem;
    color: #9ca3af;
}

.lead-toolbar-group .form-select:focus,
.lead-toolbar-search .form-control:focus {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12);
}

.lead-toolbar-search {
    min-width: 280px;
    flex: 1 1 280px;
    position: relative;
}

.lead-toolbar-search i {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.8rem;
    z-index: 2;
}

.lead-toolbar-search .form-control {
    padding-left: 2rem;
}

.lead-toolbar-actions {
    margin-left: auto;
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.lead-toolbar-btn {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #4b5563 !important;
    font-size: 1rem !important;
    font-weight: 600;
    line-height: 1.2 !important;
    padding: 0.3rem 0.2rem !important;
}

.lead-toolbar-btn:hover {
    color: #111827 !important;
}

.lead-toolbar-btn-disabled {
    opacity: 0.95;
    cursor: not-allowed;
}

.lead-filter-pill-group .form-select {
    background-color: #f3f6fb;
    border-color: #e3e8f2;
    font-weight: 600;
    padding-left: 2rem;
    min-width: 138px;
}

.lead-filter-pill-group .form-select:focus {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.1);
}

.lead-filter-pill-btn {
    width: 100%;
    min-width: 240px;
    height: 38px;
    border: 1px solid #e3e8f2;
    border-radius: 11px;
    background: #f3f6fb;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0 0.8rem 0 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.lead-filter-pill-btn:hover:not(:disabled) {
    color: #111827;
    border-color: #d5ddec;
}

.lead-filter-pill-btn:focus {
    outline: 0;
    border-color: #c7d2fe;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.1);
}

.lead-filter-pill-btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.lead-filter-pill-caret {
    color: #6b7280;
    font-size: 0.72rem;
}

.lead-toolbar-group.lead-filter-pill-group:nth-child(1) .form-select {
    min-width: 240px;
}

.lead-listing-table-card {
    border: 1px solid #eceff5 !important;
    border-radius: 0 0 14px 14px !important;
    overflow: hidden;
}

.lead-listing-table thead th {
    color: #9ca3af;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid #f0f2f7;
    white-space: nowrap;
}

.lead-listing-table tbody td {
    color: #374151;
    border-color: #f7f8fb;
    padding-top: 0.82rem;
    padding-bottom: 0.82rem;
    font-size: 0.78rem;
}

.lead-phone-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.lead-phone-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.lead-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.lead-status-pill.status-new {
    color: #047857;
    background: #ecfdf5;
}

.lead-status-pill.status-contacted {
    color: #92400e;
    background: #fef3c7;
}

.lead-status-pill.status-qualified {
    color: #1d4ed8;
    background: #dbeafe;
}

.lead-status-pill.status-not-qualified {
    color: #b91c1c;
    background: #fee2e2;
}

.lead-status-pill.status-converted {
    color: #4338ca;
    background: #e0e7ff;
}

.lead-status-pill.status-default {
    color: #4b5563;
    background: #f3f4f6;
}

.lead-listing-shell {
    border: 1px solid #eceff5 !important;
    border-radius: 14px !important;
    overflow: hidden;
    padding: 0 !important;
}

.lead-listing-footer {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.76rem;
    color: #6b7280;
    border-top: 1px solid #eef2f7;
    padding: 0.65rem 1rem !important;
}

.lead-listing-meta {
    white-space: nowrap;
}

.lead-listing-divider {
    color: #d1d5db;
}

.lead-listing-per-page {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    flex-wrap: nowrap;
}

.lead-listing-per-page span {
    white-space: nowrap;
    flex-shrink: 0;
}

.lead-listing-per-page .form-select {
    height: 30px;
    min-width: 72px;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 0.75rem;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
}

.lead-listing-footer .pagination {
    margin-bottom: 0;
    gap: 0.25rem;
}

.lead-listing-footer .page-link {
    border: 1px solid #e5e7eb;
    color: #6b7280;
    border-radius: 7px;
    padding: 0.25rem 0.55rem;
    font-size: 0.74rem;
}

.lead-listing-footer .page-item.active .page-link {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.lead-listing-footer .page-item.disabled .page-link {
    color: #c4cad4;
    background: #f9fafb;
}

@media (max-width: 992px) {
    .lead-toolbar-actions {
        margin-left: 0;
        width: 100%;
    }

    .lead-listing-footer {
        flex-wrap: wrap;
    }

    .lead-listing-divider {
        display: none;
    }

    .lead-listing-footer .ms-auto {
        margin-left: 0 !important;
        width: 100%;
    }
}

.modern-navbar {
    gap: 0.75rem;
}

.modern-header-search {
    position: relative;
    width: min(100%, 460px);
    margin-left: 0.5rem;
}

.modern-header-search i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.88rem;
}

.modern-header-search .form-control {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    height: 42px;
    padding-left: 2.2rem;
    font-size: 0.88rem;
    color: #374151;
    box-shadow: none;
}

.modern-header-search .form-control:focus {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.12);
}

.dashboard-shell {
    padding: 0.15rem 0 0.75rem;
}

.dashboard-title {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}

.dashboard-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
}

.dashboard-stat-card {
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    height: 100%;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.dashboard-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.dashboard-stat-label {
    color: #6b7280;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.dashboard-stat-value {
    color: #111827;
    font-size: 1.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.icon-blue {
    background: #eef2ff;
    color: #4f46e5;
}

.icon-indigo {
    background: #eff6ff;
    color: #2563eb;
}

.icon-orange {
    background: #fff7ed;
    color: #ea580c;
}

.icon-green {
    background: #ecfdf5;
    color: #059669;
}

.icon-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.dashboard-table-card {
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.dashboard-table-head {
    padding: 1.1rem 1.4rem;
    font-size: 1.03rem;
    font-weight: 700;
    color: #111827;
    border-bottom: 1px solid #f1f3f8;
    background: #fff;
}

.dashboard-view-all {
    font-size: 0.86rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.dashboard-view-all:hover {
    color: #3730a3;
}

.dashboard-table {
    font-size: 0.88rem !important;
}

.dashboard-table thead th {
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
    font-size: 0.69rem;
    padding: 0.85rem 1.35rem;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
}

.dashboard-table tbody td {
    padding: 0.95rem 1.35rem;
    color: #374151;
    border-color: #f8fafc;
    vertical-align: middle;
}

.dashboard-status {
    font-size: 0.63rem;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.52rem;
    border-radius: 999px;
    font-weight: 700;
}

.dashboard-status--success {
    background: #ecfdf5;
    color: #047857;
}

.dashboard-status--secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.dashboard-status--danger {
    background: #fef2f2;
    color: #b91c1c;
}

@media (max-width: 1199.98px) {
    .easypro-sidebar {
        position: fixed;
        top: 72px;
        left: 0;
        height: calc(100vh - 72px);
        width: 17rem;
        margin-left: 0;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 1045;
        text-align: left;
    }

    .easypro-sidebar.show {
        transform: translateX(0);
    }

    .easypro-sidebar .sidebar-menu {
        height: 100%;
        padding-top: 1rem;
    }

    .easypro-sidebar .sidebar-link {
        margin: 0.22rem 0.4rem;
        padding: 0.58rem 0.68rem;
    }

    .easypro-sidebar .sidebar-link .sidebar-link-title {
        display: inline-block;
        font-size: 0.82rem;
    }

    .easypro-sidebar .sidebar-heading {
        display: block;
        text-align: left;
    }

    .app-main-row > .app-page-main.page-holder {
        width: 100%;
    }

    .modern-header-search {
        display: none !important;
    }
}

@media (max-width: 575.98px) {
    .easypro-sidebar {
        width: 15.5rem;
    }
}

/* Contract Page Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.contract-icon {
    transition: all 0.3s ease;
}

.contract-icon:hover {
    transform: rotate(360deg) scale(1.2);
}

.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-animated:hover::before {
    width: 300px;
    height: 300px;
}

.table-row-animated {
    transition: all 0.3s ease;
}

.table-row-animated:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(73, 73, 238, 0.2);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4949ee;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a1a1a;
}

/* Card Header - Reduced Padding */
.card-header {
    padding: 1rem 1.5rem !important;
}

/* Transparent Card */
.card-transparent {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.card-transparent .card-header {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.card-transparent .card-body {
    background: transparent !important;
}

/* Custom btn-sm - Make buttons smaller */
.btn-sm {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.8rem !important;
    line-height: 2 !important;
    border-radius: 0.25rem !important;
}

.btn-sm i {
    font-size: 0.7rem !important;
    margin-right: 0.2rem;
}

.btn-sm .fa,
.btn-sm .fas,
.btn-sm .far,
.btn-sm .fal {
    font-size: 0.7rem !important;
}

/* Responsive Table Improvements */
.table-responsive {
    position: relative;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

.table-responsive table {
    width: 100%;
    margin-bottom: 0;
}

/* Better table responsiveness on mobile */
@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid #dee2e6;
    }
    
    .table-responsive table {
        font-size: 0.8rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.5rem 0.4rem;
        white-space: nowrap;
    }
    
    .table-responsive .btn-group {
        flex-direction: column;
    }
    
    .table-responsive .btn-group .btn {
        margin-bottom: 2px;
    }
}

@media (max-width: 576px) {
    .table-responsive table {
        font-size: 0.75rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.4rem 0.3rem;
    }
    
    .table-responsive .badge {
        font-size: 0.65rem;
        padding: 0.15em 0.35em;
    }
}

/* Notification Styles */
.notification-dropdown {
    max-height: 500px;
    overflow-y: auto;
}

.notification-item {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8f9fa !important;
}

.notification-item.bg-light {
    background-color: #f8f9fa !important;
}

.notification-badge-count {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
    min-width: 18px;
    text-align: center;
}

#notificationDropdown {
    position: relative;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Floating Filter Button - Common styles for all dashboards */
.floating-filter-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4949ee 0%, #3b3bd4 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(73, 73, 238, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-filter-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(73, 73, 238, 0.7);
    background: linear-gradient(135deg, #3b3bd4 0%, #2f2fb9 100%);
}

.floating-filter-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-filter-btn {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 18px;
    }
}

/* Cursor utility for attachment cards */
.attachment-card.cursor-pointer {
    cursor: pointer;
}

/* Reports page */
.reports-shell {
    padding-top: 0.15rem;
}

.reports-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.reports-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #111827;
}

.reports-export-btn {
    border-radius: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.58rem 0.92rem;
}

.reports-grid {
    display: grid;
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 1rem;
}

.reports-sidebar {
    border: 1px solid #eceff5 !important;
    border-radius: 14px !important;
    padding: 1rem !important;
}

.reports-main {
    min-width: 0;
}

.reports-panel-title {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.65rem;
    font-weight: 700;
}

.reports-label {
    font-size: 0.73rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.reports-date-range-list {
    display: grid;
    gap: 0.45rem;
}

.reports-date-option {
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 0.48rem 0.6rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.reports-date-option .form-check-input {
    margin: 0;
    width: 0.9rem;
    height: 0.9rem;
    border-color: #cbd5e1;
}

.reports-date-option.active {
    border-color: #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.reports-metric-stack {
    display: grid;
    gap: 0.6rem;
}

.reports-metric-card {
    border: 1px solid #edf0f7;
    border-radius: 12px;
    padding: 0.72rem 0.78rem;
    background: #fff;
}

.reports-metric-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.reports-metric-icon {
    color: #6b7280;
    font-size: 0.78rem;
}

.reports-metric-growth {
    font-size: 0.68rem;
    font-weight: 700;
}

.reports-metric-label {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.reports-metric-value {
    font-size: 1.9rem;
    line-height: 1.1;
    font-weight: 700;
    color: #111827;
}

.reports-card {
    border: 1px solid #eceff5 !important;
    border-radius: 14px !important;
    padding: 0 !important;
    overflow: hidden;
}

.reports-tabs-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #eef2f7;
    padding: 0.9rem 1.15rem 0;
}

.reports-tab {
    border: 0;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.88rem;
    border-bottom: 2px solid transparent;
    padding: 0 0.2rem 0.72rem;
}

.reports-tab.active {
    color: #1d4ed8;
    border-bottom-color: #3b82f6;
}

.reports-chart-wrap {
    padding: 1.2rem;
}

.reports-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.reports-chart-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #1f2937;
}

.reports-chart-subtitle {
    color: #6b7280;
    font-size: 0.82rem;
}

.reports-chart-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.78rem;
    color: #6b7280;
    white-space: nowrap;
}

.reports-chart-legend i {
    font-size: 0.52rem;
    margin-right: 0.25rem;
}

.legend-calls {
    color: #d1d5db;
}

.legend-sales {
    color: #2563eb;
}

.reports-bars {
    height: 255px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(85px, 1fr);
    gap: 0.75rem;
    align-items: end;
    border: 1px solid #f1f4f8;
    border-radius: 12px;
    padding: 1rem 0.75rem 0.7rem;
}

.reports-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.reports-bars-track {
    width: 62px;
    height: 190px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 0.42rem;
}

.reports-bar {
    width: 23px;
    border-radius: 7px 7px 0 0;
    transition: opacity 0.2s ease;
}

.reports-bar-calls {
    background: #e5e7eb;
}

.reports-bar-sales {
    background: #2f56d0;
}

.reports-bar:hover {
    opacity: 0.85;
}

.reports-bar-label {
    margin-top: 0.45rem;
    font-size: 0.62rem;
    color: #6b7280;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.reports-table-head {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #eef2f7;
}

.reports-table-head h3 {
    font-size: 1.25rem;
    color: #374151;
    font-weight: 700;
}

.reports-table thead th {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    border-bottom: 1px solid #f1f4f8;
    padding: 0.7rem 1.1rem;
}

.reports-table tbody td {
    padding: 0.85rem 1.1rem;
    border-color: #f6f7fb;
    font-size: 0.82rem;
    color: #374151;
}

.reports-status-badge {
    background: #ecfdf5;
    color: #047857;
    font-size: 0.59rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.32rem 0.5rem;
}

@media (max-width: 1199.98px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .reports-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .reports-bars {
        grid-auto-columns: minmax(72px, 1fr);
        overflow-x: auto;
    }
}