.connection-profile-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
}

:root {
    --primary-color: #70132E;
    --primary-dark: #5A0F25;
    --primary-light: #8B2A48;
    --accent-color: #F74070;
    --accent-dark: #E63560;
    --light-bg: #FEF5F5;
}

.sidebar-card {
    background: #ffffff;
}

.sidebar-header-connections {
    background: #70132E;
}

.sidebar-title {
    color: #ffff;
}

.sidebar-badge {
    background: #F74070;
    color: #ffffff;
}

.tab-card {
    background: #ffffff;
}

.connections-tab-header {
    background: #70132E;
}

.connections-tab-title {
    color: #ffff;
}

.connections-tab-badge {
    background: #ffff;
    color: #70132E;
}

.referrals-tab-header {
    background: #70132E;
}

.referrals-tab-title {
    color: #ffff;
}

.referrals-tab-badge {
    background: #ffff;
    color: #70132E;
}

.collaborations-tab-header {
    background: #70132E;
}

.collaborations-tab-title {
    color: #ffff;
}

.collaborations-tab-badge {
    background: #ffffff;
    color: #70132E;
}

.avatar-sm {
    font-weight: 600;
    flex-shrink: 0;
    background-color: #70132E !important;
    color: white !important;
}

.avatar-xs {
    font-weight: 600;
    flex-shrink: 0;
    background-color: #70132E !important;
    color: white !important;
}

.connection-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    background: #70132E;
}

.referral-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    background: #70132E;
    color: #FFFFFF;
}

.referral-by-avatar {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
    background: #F74070;
}

.collaboration-icon-sm {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    background: #70132E;
    color: #FFFFFF;
    border-radius: 50% !important;
    flex-shrink: 0;
}

.collaboration-by-avatar {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
    background: #F74070;
    color: white;
    border-radius: 50% !important;
}

.avatar-sm,
.avatar-xs,
.collaboration-icon-sm {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.find-members-btn {
    background: #70132E;
    color: white;
    border: none;
}

.find-members-btn:hover {
    background: #5A0F25;
    color: white;
}

.list-group-item.active {
    background-color: #70132E !important;
    border-color: #70132E !important;
    color: white !important;
}

.list-group-item.active span,
.list-group-item.active i,
.list-group-item.active .bi {
    color: white !important;
}

.list-group-item.active .badge {
    background-color: #F74070 !important;
    color: white !important;
}

.list-group-item {
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--light-bg);
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.btn-outline-primary {
    color: #70132E;
    border: 1.5px solid #70132E;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-outline-primary:hover {
    background: #70132E;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(112, 19, 46, 0.2);
}

.btn-outline-danger {
    color: #dc3545;
    border: 1.5px solid #dc3545;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
}

.table-hover tbody tr:hover {
    background-color: var(--light-bg);
}

.table thead th {
    background-color: var(--light-bg);
    color: #5A0F25;
    border-bottom: 2px solid #70132E;
    font-weight: 600;
    vertical-align: middle;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

@media (max-width: 768px) {

    .col-lg-3,
    .col-lg-9 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .row {
        flex-direction: column;
    }

    .card-header .d-flex {
        flex-direction: column !important;
        text-align: center;
    }
}

.card-header {
    background: #70132E !important;
}

.avatar-sm,
.avatar-xs,
.avatar-md,
.avatar-lg,
.collaboration-icon-sm {
    background-color: #70132E !important;
    color: white !important;
}