/* AI-Header: Compact list item styles for cards list */
/* Date: 2025-08-17 */

/* ===========================================
   COMPACT LISTS - BASE COMPONENTS
   =========================================== */

/* Compact Avatar for List Items */
.compact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Square-edged List Item Styling */
.list-group-item {
    transition: all 0.2s ease;
    min-height: 64px;
    border-radius: 0 !important; /* Force square edges */
}

/* Override Bootstrap rounded corners on list groups */
.list-group {
    border-radius: 0 !important;
}

.list-group .list-group-item:first-child {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.list-group .list-group-item:last-child {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Compact Button Styling */
.btn-group .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.25rem;
}

.btn-group .btn-sm i {
    font-size: 0.8rem;
}

/* Contact Method Icons Styling */
.bi.text-success { color: #28a745 !important; }
.bi.text-primary { color: #007bff !important; }
.bi.text-info { color: #17a2b8 !important; }
.bi.text-warning { color: #ffc107 !important; }

/* ===========================================
   COMPACT LISTS - LIGHT THEME
   =========================================== */

[data-bs-theme="light"] .compact-avatar {
    background: linear-gradient(135deg, var(--bs-primary, #722F37) 0%, #8B4A52 100%);
    border: 2px solid var(--bs-border-color, #dee2e6);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .list-group-item {
    background-color: var(--bs-tertiary-bg, #f8f9fa) !important;
    border-color: var(--bs-border-color, #dee2e6) !important;
    color: var(--bs-body-color, #212529);
}

[data-bs-theme="light"] .list-group-item:hover {
    background-color: var(--surface-action-hover, #e9ecef) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===========================================
   COMPACT LISTS - DARK THEME
   =========================================== */

[data-bs-theme="dark"] .compact-avatar {
    background: linear-gradient(135deg, #8B4A52 0%, #722F37 100%);
    border: 2px solid rgba(139, 74, 82, 0.3);
    box-shadow: 0 2px 8px rgba(114, 47, 55, 0.15);
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #2d2d2d !important;
    border-color: var(--bs-border-color, rgba(255, 255, 255, 0.1)) !important;
    color: var(--bs-body-color, #e9ecef);
}

[data-bs-theme="dark"] .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   COMPACT LISTS - MOBILE RESPONSIVE
   =========================================== */

/* Mobile Responsive */
@media (max-width: 768px) {
    .compact-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
    
    .btn-group .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .btn-group .btn-sm i {
        font-size: 0.75rem;
    }
}
