:root,
[data-bs-theme="light"] {
    --tblr-primary: #15379d;
    --tblr-secondary: #6c7a91;
    --tblr-success: #2fb344;
    --tblr-info: #4299e1;
    --tblr-warning: #f76707;
    --tblr-danger: #d63939;
    --tblr-light: #f6f8fb;
    --tblr-dark: #182433;
    --tblr-muted: #6c7a91;
    --aqr-secondary: #699ad1;
    --aqr-text-secondary: #699ad1;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: var(--aqr-secondary) !important;
    color: #fff !important;
    border: none !important;
}

.text-primary {
    color: var(--tblr-primary) !important;
}

.bg-primary {
    background-color: var(--tblr-primary) !important;
}

.aq-bg-secondary {
    background-color: var(--aqr-secondary) !important;
}

.aqr-text-secondary {
    color: var(--aqr-text-secondary) !important;
}

/* Sidebar Dropdown Fix */
.navbar-vertical .nav-item.dropdown.show .dropdown-menu {
    display: block !important;
}

.navbar-vertical .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
}

.navbar-vertical .nav-item.dropdown {
    position: relative;
}

/* Highlight active dropdown parent */
.navbar-vertical .nav-item.dropdown.active > .nav-link,
.navbar-vertical .nav-item.dropdown.show > .nav-link {
    background-color: rgba(21, 55, 157, 0.1);
    color: var(--tblr-primary);
}

/* Ensure active parent menu is always highlighted */
.navbar-vertical .nav-item.dropdown.active {
    background-color: rgba(21, 55, 157, 0.05);
}

/* Active dropdown item styling */
.navbar-vertical .dropdown-item.active {
    background-color: var(--tblr-primary);
    color: #fff;
}

.navbar-vertical .dropdown-item.active:hover {
    background-color: var(--tblr-primary);
    color: #fff;
    opacity: 0.9;
}

[data-bs-theme="dark"] .navbar-brand-image {
    filter: grayscale(1) brightness(10);
}

.card-body {
    color: #5d7186;
}

/* Form Error Message Alignment Fix */
/* Prevents error messages from breaking form field alignment when using align-items-end */

/* Reserve space for error messages in rows with align-items-end */
.row.align-items-end > [class*="col-"],
.row.align-items-end > .col {
    position: relative;
    padding-bottom: 1.75rem; /* Reserve space for error messages */
    min-height: fit-content;
}

/* Position error messages absolutely at the bottom of reserved space */
.row.align-items-end .invalid-feedback {
    /* position: absolute;
    bottom: 0;
    left: 0; */
    width: 100%;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 2px;
    line-height: 1.3;
    min-height: 1.5rem;
    display: block;
    padding: 0;
}

.row.align-items-end:has(.invalid-feedback) {
    align-items: normal !important;
}

/* Ensure form controls don't have bottom margin when in align-items-end rows */
.row.align-items-end .form-control,
.row.align-items-end .form-select {
    margin-bottom: 0;
}

/* Hide empty error messages to maintain clean layout */
.invalid-feedback:empty {
    display: none !important;
}

/* For file inputs with help text, adjust spacing */
.row.align-items-end .form-control + small.form-text + .invalid-feedback {
    bottom: -0.25rem;
}

/* Ensure labels maintain proper spacing */
.row.align-items-end .form-label {
    margin-bottom: 0.5rem;
}

/* Make validation error icons clickable to clear field */
.form-control.is-invalid,
.form-select.is-invalid {
    position: relative;
    padding-right: 2.5rem; /* Make room for clickable icon */
}

/* Add clickable area indicator for validation icon */
.form-control.is-invalid::before,
.form-select.is-invalid::before {
    content: "";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background-color: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-control.is-invalid:hover::before,
.form-select.is-invalid:hover::before {
    opacity: 1;
}

/* Style the validation icon to be more clickable */
.form-control.is-invalid,
.form-select.is-invalid {
    cursor: text;
}

.form-control.is-invalid:hover,
.form-select.is-invalid:hover {
    cursor: text;
}

/* Add tooltip hint on hover */
.form-control.is-invalid[title]:hover::after,
.form-select.is-invalid[title]:hover::after {
    content: attr(title);
    position: absolute;
    right: 0;
    top: -2rem;
    background-color: #333;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

header.navbar {
    min-height: 3.9rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-vertical.navbar-expand-lg
    .navbar-collapse
    .navbar-nav
    .nav-link
    i:before {
    vertical-align: sub;
}

#sidebar-menu {
    background: #699ad1;
    padding-bottom: 80px;
}

[data-bs-theme="dark"] #sidebar-menu {
    background: inherit;
}

.navbar-vertical.navbar-expand-lg #sidebar-menu .navbar-nav {
    padding-top: 0 !important;
}

#sidebar-menu .navbar-nav .nav-item .nav-link {
    border-bottom: 1px solid #eee;
    color: #f5f5f5;
}

#sidebar-menu .navbar-nav .nav-item .nav-link i {
    display: flex;
    align-items: center;
}

[data-bs-theme="dark"] #sidebar-menu .navbar-nav .nav-item .nav-link {
    border-bottom: 1px solid var(--tblr-border-color);
}

[data-bs-theme="dark"]
    #sidebar-menu
    .navbar-nav
    .nav-item:first-child
    .nav-link {
    border-top: 1px solid var(--tblr-border-color);
}

#sidebar-menu .navbar-nav .dropdown-menu .dropdown-item {
    border-bottom: 1px solid #eee;
    color: #f5f5f5;
    white-space: normal;
}

#sidebar-menu .nav-link:focus,
#sidebar-menu .nav-link:hover,
#sidebar-menu .nav-link:active,
#sidebar-menu .nav-link.active,
#sidebar-menu .dropdown-item:focus,
#sidebar-menu .dropdown-item:active,
#sidebar-menu .dropdown-item:hover {
    background-color: #15379d;
}

.navbar-vertical .nav-item.active > .nav-link .nav-link-icon {
    color: #f5f5f5 !important;
}

.navbar-vertical .dropdown-item.active {
    background-color: #41638a !important;
    color: var(--tblr-white) !important;
    padding-left: calc(1rem - 3px);
}

.navbar-vertical .dropdown-item:hover {
    background-color: #41638a !important;
    color: var(--tblr-white) !important;
    padding-left: calc(1rem - 3px);
}

[data-bs-theme="dark"] #sidebar-menu .navbar-nav .dropdown-menu .dropdown-item {
    border-bottom: 1px solid var(--tblr-border-color);
}

.navbar.navbar-vertical::-webkit-scrollbar {
    width: 0px !important;
}

.navbar .navbar-nav .nav-link {
    border-radius: 0 !important;
}

.navbar-brand-image {
    height: auto;
    width: 150px;
}

.navbar-brand {
    justify-content: center;
    width: 100%;
    padding: 0.75rem 0;
}

header .navbar-brand {
    display: inline-flex;
    width: unset;
    padding: 0.75rem 0;
}

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

.navbar .navbar-nav .nav-link .badge {
    top: 0.45rem;
    right: 0.7rem;
}

.form-group {
    margin-bottom: var(--tblr-gutter-y);
}
table.dataTable th.dt-type-numeric,
table.dataTable th.dt-type-date,
table.dataTable td.dt-type-numeric,
table.dataTable td.dt-type-date {
    text-align: left;
}
.dt-length,
.dt-search {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.dt-length select {
    width: max-content;
}
.badge {
    --tblr-badge-color: var(--tblr-white);
}
label {
    margin-bottom: 0.5rem;
}
.hr,
hr {
    margin: 1rem 0;
}
.text-bold {
    font-weight: 700;
}

.property-details {
    line-height: 2.2;
}

.agent-dash .dashboard-header {
    background: linear-gradient(90deg, #003f9e 0%, #0057d5 50%, #012b78 100%);
    padding: 25px 35px;
    border-radius: 16px;
    color: #fff;
    min-height: 110px;
}

.agent-dash .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tblr-primary);
}

.dash-h-title {
    font-size: 25px;
}

.header-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    object-fit: cover;
}

.notif-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 10px;
    padding: 2px 5px;
}

.new-listing-btn {
    background: #6b8cff;
    border-radius: 30px;
    padding: 10px 20px 10px 57px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    border: none;
}

.plus-circle {
    background: #fff;
    color: #066fd1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 30px;
    position: absolute;
    left: 0;
}

.auth-page {
    min-height: 100vh;
    background: url("../../assets/images/auth-bg.png") no-repeat center;
    background-size: cover;
}

.auth-card {
    border-radius: 24px;
    overflow: hidden;
    height: 450px;
}

.auth-map {
    position: relative;
    background: #f1f6fb;
    height: 450px;
}

.auth-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-tabs {
    position: absolute;
    top: 50%;
    left: -95px;
    z-index: 2;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-tabs a {
    margin-right: 20px;
    color: #444;
    text-decoration: none;
    padding: 10px 15px;
}

.auth-tabs a.active {
    color: #1f3c88;
    background: #fff;
    padding: 10px 15px;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}

.social-login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.04em;
    line-height: 1rem;
    background: #eee;
    padding: 10px;
}

.social-login .btn {
    border: 0;
    box-shadow: none;
    height: 50px;
    padding: 10px;
}

.social-login .btn img {
    height: 100%;
}

.auth-footer {
    background: #163d96;
    color: #fff;
    font-size: 14px;
}

.auth-footer img {
    height: 15px;
    margin-left: 10px;
}

.login-logo img {
    width: 180px;
    height: auto;
    padding: 10px;
}

.auth-page .bg-auth-content {
    background: #f5f5f5;
    height: 100%;
}

.auth-page .registration-card {
    border-radius: 20px;
    overflow: hidden;
}

.auth-page .registration-header {
    background: #173e97;
    color: #fff;
    padding: 7px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.auth-page .steps-panel {
    background: #eaf2fbdb;
    height: 100%;
}

.auth-page .step-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding-bottom: 32px;
    color: #7a8aa0;
    text-align: left;
    position: relative;
}

.auth-page .step-item::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 35px;
    width: 2px;
    height: 80px;
    background: #9bb7e0;
    transform: translateY(0);
}

.auth-page .step-item.active::after {
    background: #173e97;
}

.auth-page .step-item:last-child::after {
    display: none;
}

.auth-page .step-item.active {
    color: #173e97;
    font-weight: 600;
}

.auth-page .step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #9bb7e0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 9;
}

.auth-page .step-item.active .step-circle {
    background: #173e97;
}

.auth-page .step-content {
    display: none;
}

.auth-page .step-content.active {
    display: block;
}

.auth-page .step-item.active small {
    color: #aaa;
}

.auth-page .input-icon-addon {
    width: 30px;
    pointer-events: auto;
    font-size: 1.2em;
    padding: 10px;
    color: var(--tblr-primary);
    /* background: var(--tblr-primary); */
}

.auth-page .registration-card .input-icon-addon {
    background: var(--tblr-primary);
    color: var(--tblr-white);
}

.auth-page .input-icon .form-control:not(:first-child),
.auth-page .input-icon .form-select:not(:last-child) {
    padding-left: 3rem;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    box-shadow: none;
}

.forgot-pass {
    font-size: 14px;
    color: #bbb;
}

.dt-layout-row.dt-layout-table {
    padding: 0;
}

.dt-layout-row {
    padding: 0 10px;
}

.agent-profile-image img {
    width: 120px;
    height: 120px;
    border: 4px solid #6999d0;
    object-fit: cover;
}

form .input-group-text {
    background: #15379d;
    color: #f5f5f5;
}

.amenities-list i {
    color: #699ad1;
}

.table-actions a {
    margin-right: 6px;
    padding: 5px;
    font-size: 16px;
}

.table-actions a.btn-sm.btn-pill {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    line-height: 1;
}

.table-actions .btn-sm.btn-pill {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    line-height: 1;
}

.table-actions a.btn-join {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.table-actions a.btn-join::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50rem;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #00ffff);
    background-size: 300% 300%;
    animation: movingBorder 4s linear infinite;
    z-index: -1;
}

.table-actions a.btn-join::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: inherit;
    z-index: -1;
}

@keyframes movingBorder {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

.dt-button.processing::after {
    border-color: #ffffff transparent #ffffff transparent;
}

.date-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.date-arrow {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-picker {
    display: flex;
    gap: 10px;
}

.date-picker button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    width: 80px;
    cursor: pointer;
}

.date-picker .active {
    border-color: #2563eb;
    background: #eff6ff;
}

.date-picker button strong {
    font-size: 20px;
    display: block;
}

.date-picker button span {
    font-size: 12px;
    color: #666;
}

.navbar-vertical.navbar-expand-lg {
    overflow-x: hidden !important;
}

.form-hint:last-child {
    font-size: 11px;
}

textarea {
    cursor: auto;
}

.input-icon .form-control:not(:first-child),
.input-icon .form-select:not(:last-child) {
    padding-left: 3rem;
}

.navbar {
    --tblr-navbar-active-border-color: transparent;
}

@media (max-width: 768px) {
    .dashboard-header {
        text-align: center;
        padding: 20px;
    }
    /* .dashboard-header .d-flex {
        flex-direction: column !important;
        gap: 15px;
    } */
    header.navbar {
        position: relative;
    }
}

@media (max-width: 991px) {
    .navbar-vertical {
        position: fixed !important;
        top: 0;
        left: -270px;
        width: 260px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-vertical.show {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 9998;
    }

    .sidebar-overlay.show {
        display: block;
    }
}

/* //lead report */
.card-status-purple {
    background: #f3e9ff !important;
}

.card-status-blue {
    background: #e8f0ff !important;
}

.card-status-yellow {
    background: #fff7e5 !important;
}

.card-status {
    border-radius: 10px;
    border: 1px solid #e5e7eb !important;
    padding: 1.25rem !important;
}

.card-status .btn-sm {
    padding: 4px 14px !important;
    font-size: 0.75rem !important;
    font-weight: 600;
    width: auto !important;
    border-radius: 6px;
}

.card-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f2f4f7;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #4a5568;
    margin-left: 6px;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.card-action-btn:hover {
    background: #d8dbe0;
}

.badge.bg-purple-lt {
    background-color: #f3e9ff !important;
    color: #6b3fa0 !important;
}

.ppr-card {
    align-items: center;
    background: #699ad175;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);

    width: 100%;
    padding: 0.5rem;
}

.ppr-number {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #15379d;
    font-size: 20px;
    font-weight: 700;
    position: relative;
}

.ppr-content {
    flex: 1;
    padding: 0 15px;
    text-align: center;
}

.ppr-title {
    font-size: 15px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}
.filter-box {
    background-color: #d0d2d3;
}

.lead-heading {
    color: #304099;
}

.small,
small {
    font-size: 0.7em;
    color: #7a7c7f;
}

.lead-filters {
    display: flex;
    gap: 22px;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    background-color: #eeefef;
    padding: 0.8rem;
}

.color-filter {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    position: relative;
}

.box.direct {
    background: #5470c6;
}

.box.referral {
    background: #91cc75;
}

.box.converted {
    background: #fac858;
}

/* Colors */
.box.openlead {
    background: #5470c6;
}

.box.hotlead {
    background: #d63939;
}

.box.warmlead {
    background: #fac858;
}

.box::after {
    content: "✔";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.color-filter:not(.active) .box {
    background: #e0e0e0 !important;
}

.color-filter:not(.active) .box::after {
    content: "";
}

.label {
    color: #444;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.act-icon {
    width: 32px;
    height: 32px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.blue {
    background: #6999d0;
}

.green {
    background: #28a745;
}

.orange {
    background: #fd7e14;
}

.red {
    background: #dc3545;
}

.activity-list p {
    margin: 0;
    font-size: 12px;
    color: #777;
}

.yellow {
    background-color: #ffb64e;
}

.status-card {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    height: 68px;
    font-family: "Segoe UI", sans-serif;
}

.status-card .label {
    font-size: 1rem;
    font-weight: 600;
    color: #586b7d;
    line-height: 1.2;
}

.status-card .value {
    font-size: 22px;
    font-weight: 700;
    color: #62afdf;
}

.status-card.active {
    background: #e9fff2;
    border-color: #bff0d2;
}

.status-card.pending {
    background: #fff3e3;
    border-color: #f3d4a6;
}

.status-card.inperson {
    background: #e9f5ff;
    border-color: #bcdfff;
}

.status-card.videocall {
    background: #f4f4f4;
    border-color: #dcdcdc;
}

.ai-summary-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.ai-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ai-summary-content p {
    transition: color 0.3s ease;
}

.ai-summary-content p:hover {
    color: #007bff;
}

.progress-bar {
    transition: width 0.5s ease;
}
/* Start Lead Audit Trail */
/* Main Card */
.audit-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    max-width: 1200px;
    margin: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* Header */
.audit-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.audit-top h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.pdf-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
}

/* Sub info */
.lead-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #555;
    margin-bottom: 18px;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.mini-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eef0f4;
}

.mini-card p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.mini-card h3 {
    margin: 4px 0 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* Icon bubble */
.icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Colors */
.icon.success {
    background: #ecfdf5;
    color: #10b981;
}

.icon.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.icon.purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.icon.orange {
    background: #fff7ed;
    color: #f97316;
}

/* Search */
.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.audit-timeline {
    position: relative;
    padding-left: 15px;
}

/* Rounded vertical line */
.audit-timeline::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #eef2f7;
    border-radius: 10px;
}

/* Row */
.timeline-row {
    display: flex;
    gap: 20px;
    margin-bottom: 22px;
    position: relative;
}

/* Icon circle */
.timeline-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    z-index: 2;
}

/* Icon states */
.timeline-icon.success {
    color: #22c55e;
    border-color: #009966;
    background-color: #d0fae5;
}

.timeline-icon.blue {
    color: #3b82f6;
    border-color: #bfdbfe;
}

/* Card */
.timeline-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    width: 100%;
}

/* Header */
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.avatar.green {
    background: #22c55e;
}

.avatar.blue {
    background: #3b82f6;
}

.avatar.purple {
    background: #8b5cf6;
}

.avatar.orange {
    background: #f97316;
}

.user h4 {
    margin: 0;
    font-size: 14px;
}

.user p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}

/* Badge */
.badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.badge.approved {
    background: #dcfce7;
    color: #15803d;
}

.badge.created {
    background: #e0edff;
    color: #1d4ed8;
}

/* Body */

/* End Lead Audit Trail */
/* Password Toggle Button Border Color Matching */
/* Ensure password toggle buttons match input field border colors everywhere */

/* Default state - match input border color */
.input-group .password-toggle-btn,
.input-group .btn.password-toggle-btn,
.input-group input[type="password"] ~ .btn,
.input-group input[type="text"][data-password-field] ~ .btn,
.input-group .form-control[type="password"] ~ .btn {
    border-color: #ced4da !important;
    border-left: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Match border color on focus */
.input-group:focus-within .password-toggle-btn,
.input-group:focus-within .btn.password-toggle-btn,
.input-group:focus-within input[type="password"] ~ .btn,
.input-group:focus-within input[type="text"][data-password-field] ~ .btn,
.input-group:focus-within .form-control[type="password"] ~ .btn,
.input-group input[type="password"]:focus ~ .btn,
.input-group input[type="text"][data-password-field]:focus ~ .btn,
.input-group .form-control[type="password"]:focus ~ .btn {
    border-color: #86b7fe !important;
}

/* Match border color on hover */
.input-group .password-toggle-btn:hover,
.input-group .btn.password-toggle-btn:hover,
.input-group input[type="password"] ~ .btn:hover,
.input-group input[type="text"][data-password-field] ~ .btn:hover,
.input-group .form-control[type="password"] ~ .btn:hover {
    border-color: #86b7fe !important;
    background-color: #fff;
}

/* Match border color when input is invalid */
.input-group input[type="password"].is-invalid ~ .btn,
.input-group input[type="text"][data-password-field].is-invalid ~ .btn,
.input-group .form-control[type="password"].is-invalid ~ .btn,
.input-group .is-invalid ~ .password-toggle-btn,
.input-group .is-invalid ~ .btn.password-toggle-btn {
    border-color: #dc3545 !important;
}

/* Match border color when input is valid */
.input-group input[type="password"].is-valid ~ .btn,
.input-group input[type="text"][data-password-field].is-valid ~ .btn,
.input-group .form-control[type="password"].is-valid ~ .btn,
.input-group .is-valid ~ .password-toggle-btn,
.input-group .is-valid ~ .btn.password-toggle-btn {
    border-color: #198754 !important;
}

/* For input-icon structure (login modal, etc.) - these use different structure */
.input-icon.password-toggle .input-icon-addon.toggle-password {
    border-color: inherit;
}

/* Ensure all password toggle buttons have consistent styling */
.input-group .btn[aria-label="Toggle password visibility"] {
    border-color: #ced4da;
}

.input-group:focus-within .btn[aria-label="Toggle password visibility"],
.input-group input:focus ~ .btn[aria-label="Toggle password visibility"] {
    border-color: #86b7fe;
}

.input-group input.is-invalid ~ .btn[aria-label="Toggle password visibility"] {
    border-color: #dc3545;
}

.input-group input.is-valid ~ .btn[aria-label="Toggle password visibility"] {
    border-color: #198754;
}

.auth-card #alert-container {
    height: 12px;
    margin: 0 !important;
}
