.connection-profile-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
}

:root {
    --primary-color: #001F3E;    /* Dark Navy Blue */
    --secondary-color: #93D188;  /* Light Green */
    --accent-color: #A8DA9F;     /* Softer Light Green */
    --maroon-color: #7A1E2B;     /* Maroon/Burgundy */
    --navy-blue: #001F3E;
    --dark-navy: #001429;
    --active-color: #001F3E;
    --white: #FFFFFF;
    --offwhite: #F8F9FA;
    --gray: #6C757D;
    --dark: #212529;
    --light-bg: #f0f9ef;
    --gradient-blue-maroon: linear-gradient(90deg, #001F3E 0%, #002A52 40%, #5A1A24 70%, #7A1E2B 100%);
    --gradient-reverse: linear-gradient(90deg, #7A1E2B 0%, #5A1A24 30%, #002A52 70%, #001F3E 100%);
    
    /* Legacy variables for compatibility */
    --primary-dark: var(--dark-navy);
    --primary-light: var(--maroon-color);
    --accent-dark: var(--secondary-color);
    --pending-color: #dc3545;
    --accepted-color: #198754;
    --warning-color: #ffc107;
    --gold-color: #ffc107;
    --green-color: #28a745;
}

/* Sidebar Styles */
.sidebar-card {
    background: #ffffff;
}

.sidebar-header-connections {
    background: var(--primary-color);
}

.sidebar-title {
    color: #ffff;
}

.sidebar-badge {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Tab Card Styles */
.tab-card {
    background: #ffffff;
}

/* Connections Tab */
.connections-tab-header {
    background: var(--primary-color) !important;
}

.connections-tab-title {
    color: #ffff;
}

.connections-tab-badge {
    background: #ffff;
    color: var(--primary-color);
}

/* Referrals Tab */
.referrals-tab-header {
    background: var(--primary-color);
}

.referrals-tab-title {
    color: #ffff;
}

.referrals-tab-badge {
    background: #ffff;
    color: var(--primary-color);
}

/* Collaborations Tab */
.collaborations-tab-header {
    background: var(--primary-color);
}

.collaborations-tab-title {
    color: #ffff;
}

.collaborations-tab-badge {
    background: #ffffff;
    color: var(--primary-color);
}

/* Avatar Styles */
.avatar-sm {
    font-weight: 600;
    flex-shrink: 0;
    background-color: var(--primary-color) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.avatar-xs {
    font-weight: 600;
    flex-shrink: 0;
    background-color: var(--primary-color) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.connection-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.referral-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    background: var(--primary-color);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.referral-by-avatar {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.collaboration-icon-sm {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
    background: var(--primary-color);
    color: #FFFFFF;
    border-radius: 50% !important;
    flex-shrink: 0;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.collaboration-by-avatar {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button Styles */
.find-members-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.find-members-btn:hover {
    background: var(--dark-navy);
    color: white;
}

/* List Group Styles */
.list-group-item.active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !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: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

.list-group-item {
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--light-bg);
}

/* Tab Pane Animation */
.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Button Variants */
.btn-outline-primary {
    color: var(--secondary-color);
    border: 1.5px solid var(--secondary-color);
    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: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 31, 62, 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;
}

.btn-gray {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-gray:hover {
    background-color: #5a6268;
    color: white;
}

.btn-red {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-red:hover {
    background-color: #c82333;
    color: white;
}

.btn-theme {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-theme:hover {
    background-color: var(--dark-navy);
    color: white;
}

.btn-theme-outline {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
}

.btn-theme-outline:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: var(--light-bg);
}

.table thead th {
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    font-weight: 600;
    vertical-align: middle;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.badge-accepted {
    background-color: var(--green-color);
    color: white;
}

.badge-pending {
    background-color: var(--gold-color);
    color: #212529;
}

.badge-secondary-custom {
    background-color: #6c757d;
    color: white;
}

/* Meeting Border Styles - Full outline borders */
.pending-meeting-row {
    border: 2px solid var(--pending-color) !important;
    border-radius: 8px;
    background-color: rgba(220, 53, 69, 0.02);
}

.accepted-meeting-row {
    border: 2px solid var(--accepted-color) !important;
    border-radius: 8px;
}

.pending-meeting-card {
    border: 2px solid var(--pending-color) !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

.accepted-meeting-card {
    border: 2px solid var(--accepted-color) !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.1);
}

.table tbody tr.pending-meeting-row {
    border: 2px solid var(--pending-color) !important;
    border-radius: 8px;
    margin-bottom: 4px;
    display: table-row;
}

.table tbody tr.accepted-meeting-row {
    border: 2px solid var(--accepted-color) !important;
    border-radius: 8px;
}

.table tbody tr.pending-meeting-row td,
.table tbody tr.accepted-meeting-row td {
    border-top: none;
}

.table tbody tr.pending-meeting-row:hover {
    background-color: rgba(220, 53, 69, 0.08);
    cursor: pointer;
}

.table tbody tr.accepted-meeting-row:hover {
    background-color: rgba(25, 135, 84, 0.05);
}

/* Meeting Type Badges */
.badge-scheduled-by-me {
    background: var(--primary-color) !important;
    color: white !important;
}

.badge-scheduled-with-me {
    background: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

/* Avatar Circle for You */
.avatar-you {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-other {
    width: 28px;
    height: 28px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Answer Count Badge */
.answer-count-badge {
    background: var(--primary-color);
    color: white;
}

/* Specific Ask Avatar */
.specific-ask-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Mobile Responsive */
@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 Override */
.card-header {
    background: var(--primary-color) !important;
    color: white !important;
}

.card-header * {
    color: white !important;
}

/* Avatar Overrides */
.avatar-sm,
.avatar-xs,
.avatar-md,
.avatar-lg,
.collaboration-icon-sm {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Alert Animation */
.alert {
    animation: slideDown 0.3s ease-in;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Meeting Icons */
.meeting-calendar-icon {
    color: var(--primary-color);
}

/* Text Colors */
.text-theme {
    color: var(--primary-color);
}

.text-accent {
    color: var(--secondary-color);
}

/* Box Shadows */
.shadow-theme {
    box-shadow: 0 2px 8px rgba(0, 31, 62, 0.1);
}

.shadow-theme-hover:hover {
    box-shadow: 0 4px 12px rgba(0, 31, 62, 0.15);
}

/* Status Badge Colors */
.status-pending {
    background-color: var(--gold-color) !important;
    color: #212529 !important;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
    font-weight: 500;
}

.status-accepted {
    background-color: var(--green-color) !important;
    color: white !important;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
    font-weight: 500;
}

.avatar-sm.rounded-circle.d-flex.justify-content-center.navbar-avatar {
    background-color: #FFFFFF !important;
    color: var(--primary-color) !important;
}

.sidebar-card .list-group-item.active,
.sidebar-card .list-group-item.active:hover,
.sidebar-card .list-group-item.active:focus {
    background-color: #001F3E !important;
    border-color: #001F3E !important;
    color: #fff !important;
}