.delete-row-icon {
    cursor: pointer;
}

.delete-row-icon:hover {
    color: #ec8290;
}

/*File Upload CSS */
#uploadArea {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #f8f9fa;
}

#fileList .file-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #fff;
}

#fileList .file-icon,
#fileList .file-preview {
    width: 30px;
    /* Reduced size for a sleeker appearance */
    height: 30px;
    object-fit: cover;
}

#fileList .delete-icon {
    font-size: 14px;
    /* Adjust font size for better proportion */
    cursor: pointer;
}

#fileList .file-item p {
    margin-bottom: 0;
    /* Remove extra margin for a compact look */
    font-size: 14px;
    /* Slightly smaller font size */
}

#fileList .progress {
    height: 5px;
    /* Slimmer progress bar */
    margin-bottom: 10px;
    margin-top: 10px;
}

#fileList .progress-bar {
    font-size: 10px;
    /* Smaller text inside the progress bar */
}

/*File Upload end */

.input-group ~ .invalid-feedback {
    display: block;
    /* Ensure invalid-feedback is visible */
}

.cc-page .cc-icon {
    width: 25px;
    font-size: 25px;
}


/* Dashboard for a New User (Empty State) Start */
/* Global Styling for Onboard Cards */
#onboard-card .custom-card {
    border: none;
    box-shadow: none;
    border-radius: 8px;
    padding: 0;
}

/* Card Backgrounds */
#onboard-card .custom-card.bg-yellow {
    background: #FFEAAE;
}

#onboard-card .custom-card.bg-green {
    background: #CFF3BD;
}

#onboard-card .custom-card.bg-blue {
    background: #C9E6F3;
}

/* Avatar Styling */
#onboard-card .avatar-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Avatar Colors */
#onboard-card .bg-avatar-yellow {
    background: #EEBE39;
}

#onboard-card .bg-avatar-green {
    background: #A7CF92;
}

#onboard-card .bg-avatar-blue {
    background: #99C2D9;
}

/* General Typography */
#onboard-card .fs-15 {
    font-size: 15px;
}

#onboard-card .fs-13 {
    font-size: 13px;
}

/* Utility Classes */
#onboard-card a.btn {
    font-size: 13px;
    padding: 5px 10px;
}


/* Dashboard for a New User (Empty State) End */


/* Media Viewer Modal Start */
.media-popup-modal .modal-dialog {
    max-width: 80%;
}

.media-popup-modal .modal-body {
    padding: 0;
}

.media-popup-modal iframe,
.media-popup-modal img {
    display: block;
    width: 100%;
    height: 80vh;
    /* Adjust as needed */
    border: none;
}

/* Media Viewer Modal End */
.fs-08 {
    font-size: 0.8em;
}


/* Brand color variables */
:root {
    --brand-primary: #8f7bf8;
    --brand-bg: #e8d7f8;
    --brand-primary-hover: #7d65f5;
    /* Slightly darker for hover states */
    --brand-primary-active: #6b4ff2;
    /* Even darker for active states */
    --brand-primary-light: rgba(143, 123, 248, 0.1);
    /* Light version for backgrounds */
}

/* Primary buttons */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: white;
}

.btn-primary:active {
    background-color: var(--brand-primary-active) !important;
    border-color: var(--brand-primary-active) !important;
}

/* Outlined primary buttons */
.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.btn-outline-primary:active {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
    color: white !important;
}

/* Primary links */
.link-primary {
    color: var(--brand-primary);
}

.link-primary:hover,
.link-primary:focus {
    color: var(--brand-primary-hover);
}

.link-primary:visited {
    color: var(--brand-primary-active);
}

/* Text primary */
.text-primary {
    color: var(--brand-primary) !important;
}

/* Pagination */
.pagination .page-item.active .page-link {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.pagination .page-item .page-link {
    color: var(--brand-primary);
}

.pagination .page-item .page-link:hover {
    background-color: var(--brand-primary-light);
    color: var(--brand-primary);
}

/* Sidebar menu */
#sidebar-menu .menuitem-active > a,
#sidebar-menu .menuitem-active .active {
    color: var(--brand-primary);
}

#sidebar-menu .menuitem-active .tp-link.active {
    background-color: var(--brand-primary-light);
    transition: color 0.2s ease;
    border-radius: 0.475rem;
}

/* Hover effect for sidebar menu items */
#sidebar-menu a:hover {
    color: var(--brand-primary-hover);
}

#sidebar-menu .tp-link:hover {
    background-color: var(--brand-primary-light);
    border-radius: 0.475rem;
}

/* Form check input */
.form-check-input:checked {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.form-check-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(135, 62, 255, 0.25);
}

#sidebar-menu > ul > li > a:active,
#sidebar-menu > ul > li > a:focus,
#sidebar-menu > ul > li > a:hover {
    color: var(--brand-primary);
}


/* Card hover effects */
.card-hover-effect {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    transition: all .3s ease;
}

/* Pulse animation for important buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.pulse {
    animation: pulse 1.5s;
}

/* Better card styling */
.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
}

/* Avatar styling */
.avatar-md {
    height: 4rem;
    width: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Background colors for status */
.bg-soft-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

/* Dashboard widgets */
.widgets-icons {
    height: 24px;
    width: 24px;
}

/* Directly target SVG after Feather replaces <i> */
.quick-action .dropdown-item svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    margin-right: 8px;
    vertical-align: middle;
}

.product-colour {
    stroke: rgb(13, 110, 253);
}

.card-colour {
    stroke: rgb(25, 135, 84);
}

.medical-colour {
    stroke: rgb(220, 53, 69);
}

.insurance-colour {
    stroke: rgb(255, 193, 7);
}

.dashboard-reminder .empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.dashboard-reminder .empty-state-icon svg {
    width: 32px;
    height: 32px;
    color: #6c757d;
}

.dashboard-reminder .empty-state-content {
    padding: 3rem 2rem;
}

.tag-badge {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    display: inline-block;
    transition: all 0.2s ease;
}

.tag-badge:hover {
    max-width: none;
    white-space: normal;
    position: relative;
    z-index: 10;
    transform: scale(1.05);
}

.tags-collapsed {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.tags-expanded {
    max-height: none;
    overflow: visible;
}

.tags-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tags-fade-overlay.hidden {
    opacity: 0;
}

.tags-expandable {
    transition: all 0.3s ease;
}

.tags-toggle-btn {
    transition: all 0.2s ease;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
}

.tags-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tags-toggle-btn .mdi {
    font-size: 14px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.tags-toggle-btn.expanded .mdi {
    transform: rotate(180deg);
}

/* Card header badge styling */
.card-header .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
}

.col-w-5 {
    width: 5%;
}

.col-w-10 {
    width: 10%;
}

.col-w-15 {
    width: 15%;
}

.col-w-20 {
    width: 20%;
}

/* Dashboard Welcome Card */
.welcome-banner {
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='6' cy='6' r='6'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.floating-icon {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* End Dashboard Welcome Card */