﻿/* =============================================
   CRM CONTACT DETAIL VIEW
   Prefix: cv-, pi-, crm-contact-detail-
   Used by: ViewContactComponent.razor
   ============================================= */

:root {
    --cm-primary: #6366f1;
    --cm-primary-light: #eef2ff;
    --cm-primary-dark: #4f46e5;
}

/* =============================================
   SKELETON LOADING STYLES
   ============================================= */
.crm-skeleton-container {
    padding: 1rem;
}

.crm-skeleton-back,
.crm-skeleton-profile,
.crm-skeleton-tabs,
.crm-skeleton-content,
.crm-skeleton-line,
.crm-skeleton-avatar,
.crm-skeleton-tab,
.crm-skeleton-card {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.crm-skeleton-back {
    height: 48px;
    margin-bottom: 1rem;
}

.crm-skeleton-profile {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.crm-skeleton-avatar {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    flex-shrink: 0;
}

.crm-skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.crm-skeleton-line {
    height: 20px;
}

.crm-skeleton-line.w-60 { width: 60%; }
.crm-skeleton-line.w-40 { width: 40%; }
.crm-skeleton-line.w-30 { width: 30%; }

.crm-skeleton-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.crm-skeleton-tab {
    width: 120px;
    height: 40px;
    border-radius: 8px;
}

.crm-skeleton-content {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
}

.crm-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.crm-skeleton-card {
    height: 120px;
    border-radius: 10px;
}

/* =============================================
   CM - CONTACT MANAGER SECTION HEADER
   ============================================= */

.cm-section-header {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--mud-palette-surface);
    border-radius: 12px;
    border-left: 4px solid var(--mud-palette-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cm-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--mud-palette-primary);
    text-transform: uppercase;
    margin: 0 0 0.375rem 0;
}

.cm-section-subtitle {
    font-size: 0.9375rem;
    color: var(--mud-palette-text-secondary);
    margin: 0;
}

/* =============================================
   CV - CONTACT VIEW COMPONENT STYLES
   ============================================= */

/* ========== BACK CARD ========== */
.cv-back-card {
    background: var(--mud-palette-surface);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.cv-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cv-back-btn:hover {
    background: #f1f5f9;
    color: #334155;
    border-color: #cbd5e1;
}

/* ========== PROFILE CARD ========== */
.cv-profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cv-edit-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.cv-edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.cv-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.cv-avatar {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.cv-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cv-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cv-upload-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.cv-favorite-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mud-palette-text-disabled);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cv-favorite-btn:hover {
    color: #f59e0b;
    border-color: #f59e0b;
    background: var(--mud-palette-surface);
}

.cv-favorite-btn.active {
    color: #f59e0b;
    background: rgba(251, 191, 36, 0.15);
    border-color: #fbbf24;
}

.cv-profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.cv-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.cv-profile-title {
    font-size: 1rem;
    color: #64748b;
}

.cv-profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.cv-profile-badge.personal {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}

.cv-profile-badge.business {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}

.cv-profile-badge.vip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.cv-profile-badge.client {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}

.cv-profile-badge.lead {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
}

.cv-profile-badge.partner {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    color: #be185d;
}

.cv-profile-badge.vendor {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #c2410c;
}

.cv-profile-badge.individual {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1d4ed8;
}

.cv-profile-badge.company {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #7c3aed;
}

/* ========== DETAIL TABS ========== */
.cv-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: var(--mud-palette-surface);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.cv-detail-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cv-detail-tab-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.cv-detail-tab-btn.active {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #6366f1;
    border-color: #c7d2fe;
    font-weight: 600;
}

/* ========== CONTENT CARD ========== */
.cv-content-card {
    background: var(--mud-palette-surface);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.cv-content-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== STATUS GRID (AVALME) ========== */
.cv-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.cv-status-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--mud-palette-background);
    border-radius: 10px;
    border: 1px solid var(--mud-palette-lines-default);
}

.cv-status-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mud-palette-text-secondary);
}

.cv-status-value {
    font-size: 0.9375rem;
    color: var(--mud-palette-text-primary);
    font-weight: 500;
}

.cv-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    width: fit-content;
}

.cv-status-badge.connected {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #047857;
}

.cv-status-badge.pending {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

.cv-status-badge.not-connected {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #64748b;
}

/* ========== ACTIONS SECTION ========== */
.cv-actions-section {
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.cv-actions-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 1rem;
}

.cv-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cv-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cv-action-btn.primary {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.cv-action-btn.primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.cv-action-btn.secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.cv-action-btn.secondary:hover:not(:disabled) {
    background: #e2e8f0;
}

.cv-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== CONNECTIONS LIST ========== */
.cv-connections-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cv-connection-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.cv-connection-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.cv-connection-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.cv-connection-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.cv-connection-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.cv-connection-relationship {
    font-size: 0.8125rem;
    color: #64748b;
}

/* ========== FORM SECTIONS ========== */
.cv-form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.cv-form-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cv-form-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.cv-form-section-title .mud-icon-root {
    color: #6366f1;
}

.cv-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cv-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.cv-form-group.full-width {
    grid-column: 1 / -1;
}

.cv-form-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.cv-form-value {
    font-size: 0.9375rem;
    color: #1e293b;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.cv-form-value.empty {
    color: #94a3b8;
    font-style: italic;
}

/* =============================================
   PI - PERSONAL INFORMATION SECTION STYLES
   ============================================= */

.pi-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #f1f5f9;
}

.pi-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.pi-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.pi-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 6px;
    color: #6366f1;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pi-edit-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.pi-grid {
    display: grid;
    gap: 1rem;
}

.pi-grid-1 { grid-template-columns: 1fr; }
.pi-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pi-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pi-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pi-grid-5 { grid-template-columns: repeat(5, 1fr); }

.pi-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.pi-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.pi-value {
    font-size: 0.9375rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pi-link {
    color: #6366f1;
    text-decoration: none;
}

.pi-link:hover {
    text-decoration: underline;
}

.pi-color-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pi-days-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pi-day-tag {
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pi-day-tag.weekday {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #6366f1;
}

.pi-day-tag.weekend {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

/* =============================================
   MULTI-ENTRY LIST STYLES (Email, Phone, Address)
   ============================================= */

.crm-contact-detail-multi-entry-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.crm-contact-detail-multi-entry-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid transparent;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.crm-contact-detail-multi-entry-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #7c3aed, #6366f1);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px 0 0 10px;
}

.crm-contact-detail-multi-entry-row:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.crm-contact-detail-multi-entry-row:hover::before {
    transform: scaleY(1);
}

.crm-contact-detail-multi-entry-row.primary {
    background: #fefce8;
    border-color: #fef08a;
}

.crm-contact-detail-multi-entry-row.primary::before {
    background: linear-gradient(180deg, #eab308, #ca8a04);
    transform: scaleY(1);
}

.crm-contact-detail-entry-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #6366f1;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.crm-contact-detail-multi-entry-row:hover .crm-contact-detail-entry-icon {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: white;
}

.crm-contact-detail-multi-entry-row.primary .crm-contact-detail-entry-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
}

.crm-contact-detail-entry-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.crm-contact-detail-entry-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
}

.crm-contact-detail-entry-type {
    font-size: 0.75rem;
    color: #64748b;
}

.crm-contact-detail-primary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid #fcd34d;
    flex-shrink: 0;
}

/* =============================================
   EMPTY STATE STYLES
   ============================================= */

.crm-empty-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    border-radius: 16px;
    border: 2px dashed rgba(99, 102, 241, 0.15);
    gap: 0.75rem;
}

.crm-empty-state-box.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(168, 85, 247, 0.04) 100%);
    border-color: rgba(139, 92, 246, 0.15);
}

.crm-empty-state-box.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(96, 165, 250, 0.04) 100%);
    border-color: rgba(59, 130, 246, 0.15);
}

.crm-empty-state-box.green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.04) 0%, rgba(74, 222, 128, 0.04) 100%);
    border-color: rgba(34, 197, 94, 0.15);
}

.crm-empty-state-box.orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.04) 0%, rgba(251, 146, 60, 0.04) 100%);
    border-color: rgba(249, 115, 22, 0.15);
}

.crm-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.crm-empty-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(99, 102, 241, 0.2);
    animation: emptyIconPulse 3s ease-in-out infinite;
}

@keyframes emptyIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.crm-empty-icon .mud-icon-root {
    color: #6366f1;
    font-size: 2rem;
}

.crm-empty-state-box.purple .crm-empty-icon { 
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%); 
}
.crm-empty-state-box.purple .crm-empty-icon::before { border-color: rgba(139, 92, 246, 0.25); }
.crm-empty-state-box.purple .crm-empty-icon .mud-icon-root { color: #8b5cf6; }

.crm-empty-state-box.blue .crm-empty-icon { 
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.15) 100%); 
}
.crm-empty-state-box.blue .crm-empty-icon::before { border-color: rgba(59, 130, 246, 0.25); }
.crm-empty-state-box.blue .crm-empty-icon .mud-icon-root { color: #3b82f6; }

.crm-empty-state-box.green .crm-empty-icon { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.15) 100%); 
}
.crm-empty-state-box.green .crm-empty-icon::before { border-color: rgba(16, 185, 129, 0.25); }
.crm-empty-state-box.green .crm-empty-icon .mud-icon-root { color: #10b981; }

.crm-empty-state-box.orange .crm-empty-icon { 
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(251, 146, 60, 0.15) 100%); 
}
.crm-empty-state-box.orange .crm-empty-icon::before { border-color: rgba(249, 115, 22, 0.25); }
.crm-empty-state-box.orange .crm-empty-icon .mud-icon-root { color: #f97316; }

.crm-empty-content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    text-align: center;
    max-width: 280px;
}

.crm-empty-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.01em;
}

.crm-empty-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.crm-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.crm-empty-action .mud-icon-root {
    font-size: 1.125rem;
}

.crm-empty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}

/* Orange themed empty action button */
.crm-empty-state-box.orange .crm-empty-action {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.crm-empty-state-box.orange .crm-empty-action:hover {
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.45);
}

/* Green themed empty action button */
.crm-empty-state-box.green .crm-empty-action {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.crm-empty-state-box.green .crm-empty-action:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

/* =============================================
   FAMILY LIST STYLES
   ============================================= */

.cv-family-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cv-family-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.cv-family-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.cv-family-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ec4899, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.cv-family-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.cv-family-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.cv-family-relationship {
    font-size: 0.8125rem;
    color: #64748b;
}

.cv-family-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cv-family-item:hover .cv-family-actions {
    opacity: 1;
}

.cv-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cv-icon-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* =============================================
   MESSAGING LIST STYLES
   ============================================= */

.crm-contact-detail-messaging-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.crm-contact-detail-messaging-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.crm-contact-detail-messaging-item:hover {
    border-color: var(--clp-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.crm-contact-detail-messaging-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* Messaging App Icon Colors */
.crm-contact-detail-messaging-icon.whatsapp { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.crm-contact-detail-messaging-icon.telegram { background: linear-gradient(135deg, #0088cc 0%, #006699 100%); }
.crm-contact-detail-messaging-icon.signal { background: linear-gradient(135deg, #3a76f0 0%, #2c5fc5 100%); }
.crm-contact-detail-messaging-icon.messenger { background: linear-gradient(135deg, #00b2ff 0%, #006aff 50%, #9b36ff 100%); }
.crm-contact-detail-messaging-icon.imessage { background: linear-gradient(135deg, #34c759 0%, #30b350 100%); }
.crm-contact-detail-messaging-icon.slack { background: linear-gradient(135deg, #4a154b 0%, #611f69 100%); }
.crm-contact-detail-messaging-icon.discord { background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%); }
.crm-contact-detail-messaging-icon.skype { background: linear-gradient(135deg, #00aff0 0%, #0078d7 100%); }
.crm-contact-detail-messaging-icon.teams { background: linear-gradient(135deg, #5059c9 0%, #4b32c3 100%); }
.crm-contact-detail-messaging-icon.zoom { background: linear-gradient(135deg, #2d8cff 0%, #0b5cff 100%); }
.crm-contact-detail-messaging-icon.other { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

/* Social Media Platform Icons */
.crm-contact-detail-messaging-icon.facebook { background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%); }
.crm-contact-detail-messaging-icon.twitter,
.crm-contact-detail-messaging-icon.x { background: linear-gradient(135deg, #1da1f2 0%, #0d8ddb 100%); }
.crm-contact-detail-messaging-icon.instagram { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.crm-contact-detail-messaging-icon.linkedin { background: linear-gradient(135deg, #0077b5 0%, #005885 100%); }
.crm-contact-detail-messaging-icon.youtube { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); }
.crm-contact-detail-messaging-icon.tiktok { background: linear-gradient(135deg, #000000 0%, #25f4ee 50%, #fe2c55 100%); }
.crm-contact-detail-messaging-icon.pinterest { background: linear-gradient(135deg, #e60023 0%, #ad081b 100%); }
.crm-contact-detail-messaging-icon.snapchat { background: linear-gradient(135deg, #fffc00 0%, #ffeb3b 100%); color: #000; }

.crm-contact-detail-messaging-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.crm-contact-detail-messaging-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--mud-palette-text-primary);
}

.crm-contact-detail-messaging-handle {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =============================================
   TASK LIST STYLES
   ============================================= */

.cv-task-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cv-task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.cv-task-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.cv-task-item.overdue {
    background: #fef2f2;
    border-color: #fecaca;
}

.cv-task-checkbox {
    flex-shrink: 0;
}

.cv-task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.cv-task-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
}

.cv-task-due {
    font-size: 0.8125rem;
    color: #64748b;
}

.cv-task-priority {
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cv-task-priority.priority-high {
    background: #fef2f2;
    color: #dc2626;
}

.cv-task-priority.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.cv-task-priority.priority-low {
    background: #dbeafe;
    color: #2563eb;
}

/* =============================================
   FOLLOW-UP LIST STYLES
   ============================================= */

.cv-followup-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cv-followup-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.cv-followup-item:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.cv-followup-item.completed {
    opacity: 0.6;
}

.cv-followup-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    flex-shrink: 0;
}

.cv-followup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cv-followup-type {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.cv-followup-date {
    font-size: 0.8125rem;
    color: #64748b;
}

.cv-followup-notes {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* =============================================
   NOT FOUND STYLES
   ============================================= */

.cv-not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.cv-not-found-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.cv-not-found h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #334155;
    margin: 0 0 0.5rem 0;
}

.cv-not-found p {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

/* =============================================
   ADDITIONAL EMPTY STATE COLORS
   ============================================= */

.crm-empty-state-box.pink {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.04) 0%, rgba(244, 114, 182, 0.04) 100%);
    border-color: rgba(236, 72, 153, 0.15);
}

.crm-empty-state-box.pink .crm-empty-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12) 0%, rgba(244, 114, 182, 0.12) 100%);
}

.crm-empty-state-box.pink .crm-empty-icon .mud-icon-root {
    color: #ec4899;
}

.crm-empty-state-box.teal {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.04) 0%, rgba(45, 212, 191, 0.04) 100%);
    border-color: rgba(20, 184, 166, 0.15);
}

.crm-empty-state-box.teal .crm-empty-icon {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, rgba(45, 212, 191, 0.12) 100%);
}

.crm-empty-state-box.teal .crm-empty-icon .mud-icon-root {
    color: #14b8a6;
}

.crm-empty-state-box.indigo {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.04) 0%, rgba(129, 140, 248, 0.04) 100%);
    border-color: rgba(99, 102, 241, 0.15);
}

.crm-empty-state-box.indigo .crm-empty-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(129, 140, 248, 0.12) 100%);
}

.crm-empty-state-box.indigo .crm-empty-icon .mud-icon-root {
    color: #6366f1;
}

/* =============================================
   RESPONSIVE STYLES
   ============================================= */

@media (max-width: 768px) {
    .cv-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .cv-edit-btn {
        position: static;
        margin-bottom: 1rem;
    }

    .cv-detail-tabs {
        justify-content: center;
    }

    .cv-form-grid {
        grid-template-columns: 1fr;
    }

    .pi-grid-2,
    .pi-grid-3,
    .pi-grid-4,
    .pi-grid-5 {
        grid-template-columns: 1fr;
    }

    .cv-status-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   PI - PERSONAL INFORMATION SECTION STYLES
   Used by: ViewContactComponent.razor
   ============================================= */

/* Section Card */
.pi-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.pi-section-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Section Header */
.pi-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.pi-section-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
    display: flex;
}

/* Edit Button - Hidden by default, shown on hover */
.pi-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(8px);
}

.pi-section-card:hover .pi-edit-btn {
    opacity: 1;
    transform: translateX(0);
}

.pi-edit-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    border-color: #6366f1;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.pi-edit-btn:active {
    transform: translateY(0) scale(0.98);
}

.pi-edit-btn .mud-icon-root {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.pi-edit-btn:hover .mud-icon-root {
    transform: rotate(-5deg) scale(1.1);
}

/* Grid Layouts */
.pi-grid {
    display: grid;
    gap: 1rem;
}

.pi-grid-1 { grid-template-columns: 1fr; }
.pi-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pi-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pi-grid-4 { grid-template-columns: repeat(4, 1fr); }
.pi-grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Field Styles */
.pi-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.pi-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.pi-value {
    font-size: 0.9375rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pi-link {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pi-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.pi-color-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Communication Preferences - Enhanced Field Styles */
.pi-comm-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.pi-comm-field:hover {
    border-color: #c7d2fe;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.pi-comm-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.pi-comm-icon.languages {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.pi-comm-icon.preferred-lang {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
}

.pi-comm-icon.method {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    box-shadow: 0 3px 10px rgba(20, 184, 166, 0.3);
}

.pi-comm-icon.time {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.pi-comm-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pi-comm-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.pi-comm-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
}

.pi-comm-value.empty {
    color: #94a3b8;
    font-style: italic;
}

/* Communication Grid */
.pi-comm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (max-width: 992px) {
    .pi-comm-grid {
        grid-template-columns: 1fr;
    }
}

/* Day Tags - Enhanced */
.pi-days-section {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    border: 1px solid #e9d5ff;
}

.pi-days-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pi-days-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.pi-days-icon .mud-icon-root {
    font-size: 0.875rem;
}

.pi-days-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7c3aed;
}

.pi-days-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pi-day-tag {
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: default;
}

.pi-day-tag:hover {
    transform: translateY(-1px);
}

.pi-day-tag.weekday {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

.pi-day-tag.weekday:hover {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.15);
}

.pi-day-tag.weekend {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    border: 1px solid #fcd34d;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.15);
}

.pi-day-tag.weekend:hover {
    background: linear-gradient(135deg, #fde68a, #fcd34d);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.2);
}

/* Skills & Certifications Grid */
.pi-skills-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pi-skill-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.pi-skill-card:hover {
    border-color: #a7f3d0;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
}

.pi-skill-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.3);
}

.pi-skill-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.pi-skill-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.pi-skill-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.5;
}

.pi-skill-value.empty {
    color: #94a3b8;
    font-style: italic;
}

/* Skills Tags Container */
.pi-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.pi-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid #a7f3d0;
}

.pi-skill-tag:hover {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

/* Notes Section Styles */
.pi-notes-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pi-note-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    border: 1px solid #e9d5ff;
    transition: all 0.2s ease;
}

.pi-note-card:hover {
    border-color: #d8b4fe;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.pi-note-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
}

.pi-note-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pi-note-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7c3aed;
}

.pi-note-value {
    font-size: 0.9375rem;
    color: #1e293b;
    line-height: 1.6;
    min-height: 60px;
}

.pi-note-value.empty {
    color: #a78bfa;
    font-style: italic;
}

/* ========== TASK LIST STYLES ========== */

/* Task Stats Grid */
.task-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .task-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.task-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.task-stat-card:hover {
    border-color: #c7d2fe;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.task-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.task-stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.3);
}

.task-stat-icon.amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}

.task-stat-icon.green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.3);
}

.task-stat-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.3);
}

.task-stat-info {
    display: flex;
    flex-direction: column;
}

.task-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.task-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Task Filter Bar */
.task-filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.375rem;
    background: #f1f5f9;
    border-radius: 10px;
}

.task-filter-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-filter-btn:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.5);
}

.task-filter-btn.active {
    background: white;
    color: #6366f1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Task List */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.task-item:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.task-item.completed {
    opacity: 0.7;
    background: var(--mud-palette-background);
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--mud-palette-text-secondary);
}

.task-item.overdue {
    border-left: 4px solid #ef4444 !important;
}

.task-item.overdue:not(.completed) {
    background: linear-gradient(90deg, #fef2f2 0%, white 100%);
}

.task-checkbox {
    padding-top: 0.125rem;
}

.task-content {
    flex: 1;
    min-width: 0;
}

.task-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.task-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.task-priority {
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-priority.priority-high {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.task-priority.priority-medium {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
    border: 1px solid #fde68a;
}

.task-priority.priority-low {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.task-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.task-meta .overdue {
    color: #ef4444;
    font-weight: 600;
}

.task-due {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.task-due.overdue {
    color: #ef4444 !important;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.task-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.task-category {
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.task-description {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.5;
}

.task-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.task-item:hover .task-actions {
    opacity: 1;
}

.task-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-action-btn:hover {
    background: #e0e7ff;
    color: #6366f1;
}

.task-action-btn.delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* Task Add Button - MudButton Style */
.task-add-btn-mud {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25) !important;
    border-radius: 8px !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

.task-add-btn-mud:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4) !important;
    transform: translateY(-1px);
}

/* Fallback for regular button */
.task-add-btn,
button.task-add-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border: none;
    border-radius: 8px;
    color: white !important;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    transform: none !important;
}

.task-add-btn:hover,
button.task-add-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px) !important;
}

.task-add-btn:active,
button.task-add-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

.task-add-btn .mud-icon-root,
button.task-add-btn .mud-icon-root {
    font-size: 1rem;
}

/* Task Loading State */
.task-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: #64748b;
    font-size: 0.875rem;
}

/* Task Pagination */
.task-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.task-pagination-info {
    font-size: 0.8125rem;
    color: #64748b;
}

.task-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-page-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.task-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.task-page-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0.5rem;
}

.task-page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-page-num:hover:not(.active) {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.task-page-num.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: #6366f1;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.task-page-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #94a3b8;
    font-size: 0.875rem;
}

.task-pagination-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.task-page-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #1e293b;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-page-select:hover {
    border-color: #cbd5e1;
}

.task-page-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive Pagination */
@media (max-width: 640px) {
    .task-pagination {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .task-pagination-controls {
        justify-content: center;
    }

    .task-pagination-size {
        justify-content: center;
    }

    .task-page-numbers {
        display: none;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .pi-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .pi-grid-4,
    .pi-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pi-grid-2,
    .pi-grid-3,
    .pi-grid-4,
    .pi-grid-5 { grid-template-columns: 1fr; }
    
    .pi-section-card { padding: 1rem; }
    
    /* Always show edit button on mobile */
    .pi-edit-btn {
        opacity: 1;
        transform: translateX(0);
    }
}

.crm-pi-dialog-header {
    display: flex;
    align-items: center;
}

.crm-pi-dialog-content {
    min-width: 500px;
    padding: 1rem 0;
}

.crm-pi-dialog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.crm-pi-dialog-field {
    min-width: 0;
}

@media (max-width: 600px) {
    .crm-pi-dialog-content {
        min-width: 100%;
    }

    .crm-pi-dialog-grid {
        grid-template-columns: 1fr;
    }
}


/* =============================================
   CRM EDIT DIALOG - Ultra Modern Design
   Unique prefix: crm-dlg-
   Used by: EmailEditDialog, PhoneEditDialog
   ============================================= */

.crm-dlg-premium-dialog .mud-dialog {
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.08);
    max-width: 560px;
    width: 100%;
}

.crm-dlg-premium-dialog .mud-dialog-title,
.crm-dlg-premium-dialog .mud-dialog-content,
.crm-dlg-premium-dialog .mud-dialog-actions {
    padding: 0 !important;
    background: transparent;
}

/* ========== HEADER ========== */
.crm-dlg-premium-header {
    position: relative;
    padding: 1.75rem 2rem;
    overflow: hidden;
}

.crm-dlg-dialog-theme .crm-dlg-premium-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
}

.crm-dlg-header-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.crm-dlg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
}

.crm-dlg-orb-1 {
    width: 200px;
    height: 200px;
    background: #c4b5fd;
    top: -60px;
    right: -40px;
    animation: crm-dlg-float1 6s ease-in-out infinite;
}

.crm-dlg-orb-2 {
    width: 150px;
    height: 150px;
    background: #a78bfa;
    bottom: -40px;
    left: 20%;
    animation: crm-dlg-float2 8s ease-in-out infinite;
}

@keyframes crm-dlg-float1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-20px, 10px) scale(1.1);
    }
}

@keyframes crm-dlg-float2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(15px, -15px) scale(0.9);
    }
}

.crm-dlg-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.crm-dlg-header-main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 1;
}

.crm-dlg-icon-container {
    position: relative;
    flex-shrink: 0;
}

.crm-dlg-icon-glow {
    position: absolute;
    inset: -8px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    filter: blur(12px);
    animation: crm-dlg-glow-pulse 2s ease-in-out infinite;
}

@keyframes crm-dlg-glow-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.crm-dlg-icon-box {
    position: relative;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    color: white;
}

.crm-dlg-header-info {
    flex: 1;
    min-width: 0;
}

.crm-dlg-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem 0.25rem 0.5rem;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: white;
    margin-bottom: 0.625rem;
}

.crm-dlg-tag-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: crm-dlg-blink 1.5s ease-in-out infinite;
}

@keyframes crm-dlg-blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.crm-dlg-header-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.crm-dlg-header-desc {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

    .crm-dlg-header-desc strong {
        color: white;
        font-weight: 600;
    }

.crm-dlg-header-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.625rem 0.875rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    flex-shrink: 0;
    margin-right: 2rem;
}

/* Close Button */
.crm-dlg-premium-dialog .mud-dialog-close-button {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    color: white !important;
    background: rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    z-index: 100 !important;
    transition: all 0.2s ease !important;
}

    .crm-dlg-premium-dialog .mud-dialog-close-button:hover {
        background: rgba(255,255,255,0.25) !important;
        transform: scale(1.05);
    }

    .crm-dlg-premium-dialog .mud-dialog-close-button .mud-icon-root {
        font-size: 1.125rem !important;
    }

.crm-dlg-counter-num {
    font-size: 1.375rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.crm-dlg-counter-label {
    font-size: 0.5625rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.125rem;
}

/* ========== BODY ========== */
.crm-dlg-premium-body {
    padding: 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Section Content Padding */
.crm-dlg-task-section .crm-dlg-section-header + * {
    padding: 1rem 1.25rem;
}

.crm-dlg-task-section .crm-dlg-section-header + .crm-dlg-task-templates-list {
    padding: 1rem 1.25rem;
}

.crm-dlg-task-section .crm-dlg-items-list {
    padding: 0.75rem 1.25rem;
}

.crm-dlg-task-section .crm-dlg-add-more-btn {
    margin: 0 1.25rem 1rem;
}

.crm-dlg-task-section .crm-dlg-form-grid {
    padding: 1rem 1.25rem;
}

.crm-dlg-task-section .crm-dlg-form-grid + .crm-dlg-form-grid {
    padding-top: 0;
}

.crm-dlg-task-section .crm-dlg-task-reminder-info {
    margin: 0 1.25rem 1rem;
}

/* Form Grid - for form-based dialogs */
.crm-dlg-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.crm-dlg-form-field {
    min-width: 0;
}

    .crm-dlg-form-field:only-child,
    .crm-dlg-form-field.crm-dlg-full-width {
        grid-column: 1 / -1;
    }

.crm-dlg-form-input {
    width: 100%;
}

    .crm-dlg-form-input .mud-input-control-input-container {
        margin-top: 0 !important;
    }

    .crm-dlg-form-input .mud-input-outlined-border {
        border-color: #e2e8f0 !important;
        transition: all 0.2s ease !important;
    }

    .crm-dlg-form-input:hover .mud-input-outlined-border {
        border-color: #cbd5e1 !important;
    }

    .crm-dlg-form-input.mud-input-root-focused .mud-input-outlined-border,
    .crm-dlg-form-input .mud-input:focus-within .mud-input-outlined-border {
        border-color: #a78bfa !important;
        border-width: 2px !important;
    }

    .crm-dlg-form-input .mud-input-label {
        color: #64748b !important;
        font-weight: 500 !important;
    }

    .crm-dlg-form-input .mud-input-label-inputcontrol {
        font-size: 0.875rem !important;
    }

    .crm-dlg-form-input input,
    .crm-dlg-form-input .mud-select-input {
        font-size: 0.9375rem !important;
        color: #1e293b !important;
    }

    .crm-dlg-form-input .mud-input-helper-text {
        font-size: 0.75rem !important;
        color: #94a3b8 !important;
    }

@media (max-width: 600px) {
    .crm-dlg-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Zero State */
.crm-dlg-zero-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
}

.crm-dlg-zero-visual {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
}

.crm-dlg-zero-rings {
    position: absolute;
    inset: 0;
}

.crm-dlg-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: crm-dlg-ring-expand 3s ease-out infinite;
}

.crm-dlg-dialog-theme .crm-dlg-ring {
    border-color: #a78bfa;
}

.crm-dlg-ring-1 {
    inset: 0;
    animation-delay: 0s;
}

.crm-dlg-ring-2 {
    inset: -10px;
    animation-delay: 1s;
}

.crm-dlg-ring-3 {
    inset: -20px;
    animation-delay: 2s;
}

@keyframes crm-dlg-ring-expand {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.crm-dlg-zero-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.crm-dlg-dialog-theme .crm-dlg-zero-icon {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #7c3aed;
}

.crm-dlg-zero-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.crm-dlg-zero-text {
    margin: 0.5rem 0 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.crm-dlg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.crm-dlg-dialog-theme .crm-dlg-cta-btn {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.crm-dlg-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.45);
}

.crm-dlg-cta-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
}

/* Items List */
.crm-dlg-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* ========== ROW STYLES (Shared) ========== */
.crm-dlg-email-row,
.crm-dlg-phone-row,
.crm-dlg-address-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
    animation: crm-dlg-row-in 0.3s ease backwards;
    animation-delay: calc(var(--i) * 0.05s);
}

.crm-dlg-email-row,
.crm-dlg-phone-row {
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Phone Input Wrapper with IntlPhoneInput */
.crm-dlg-phone-input-wrapper {
    flex: 1;
    min-width: 240px;
}

.crm-dlg-phone-input-wrapper .intl-phone-wrapper {
    gap: 0;
}

.crm-dlg-phone-input-wrapper .intl-phone-input {
    min-height: 46px;
    background: var(--mud-palette-surface);
    border-width: 1.5px;
}

.crm-dlg-phone-input-wrapper .intl-phone-country-selector {
    padding: 0.625rem 0.5rem 0.625rem 0.875rem;
    gap: 0.5rem;
}

.crm-dlg-phone-input-wrapper .intl-phone-flag-img {
    width: 22px;
    height: 16px;
}

.crm-dlg-phone-input-wrapper .intl-phone-dial-code {
    font-size: 0.875rem;
    min-width: 34px;
}

.crm-dlg-phone-input-wrapper .intl-phone-number-input {
        /*padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;*/
        padding: 0 0 0 5px !important;
        margin: 0 !important;
}

.crm-dlg-phone-input-wrapper .intl-phone-number-input .mud-input {
    margin-top: 0 !important;
}

.crm-dlg-phone-input-wrapper .intl-phone-number-input .mud-input.mud-input-underline:after {
    border-bottom: 0px !important;
}

.crm-dlg-phone-input-wrapper .intl-phone-number-input .mud-input.mud-input-underline:before {
    border-bottom: 0px !important;
}

.crm-dlg-phone-input-wrapper .intl-phone-country-list {
    max-height: 240px;
}

/* Primary row styling */
.crm-dlg-phone-row.crm-dlg-is-primary .crm-dlg-phone-input-wrapper .intl-phone-input {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.3) 0%, rgba(253, 230, 138, 0.15) 100%);
    border-color: #fcd34d;
}

.crm-dlg-phone-row.crm-dlg-is-primary .crm-dlg-phone-input-wrapper .intl-phone-wrapper.focused .intl-phone-input,
.crm-dlg-phone-row.crm-dlg-is-primary .crm-dlg-phone-input-wrapper .intl-phone-wrapper.dropdown-open .intl-phone-input {
    border-color: #f59e0b;
    box-shadow: 
        0 0 0 3px rgba(245, 158, 11, 0.12),
        0 4px 16px rgba(245, 158, 11, 0.1);
}

.crm-dlg-phone-row.crm-dlg-is-primary .crm-dlg-phone-input-wrapper .intl-phone-dropdown {
    border-color: #f59e0b;
}

.crm-dlg-phone-row.crm-dlg-is-primary .crm-dlg-phone-input-wrapper .intl-phone-dropdown-header::after {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
}

.crm-dlg-phone-row.crm-dlg-is-primary .crm-dlg-phone-input-wrapper .intl-phone-country-item::before {
    background: #f59e0b;
}

.crm-dlg-phone-row.crm-dlg-is-primary .crm-dlg-phone-input-wrapper .intl-phone-country-dial {
    color: #d97706;
    background: rgba(245, 158, 11, 0.1);
}

.crm-dlg-phone-row.crm-dlg-is-primary .crm-dlg-phone-input-wrapper .intl-phone-country-check {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Phone Row Right Section */
.crm-dlg-phone-row-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Phone Type Select */
.crm-dlg-phone-type-select {
    min-width: 110px;
}

.crm-dlg-phone-type-select .mud-input-outlined-border {
    border-color: #e2e8f0 !important;
    border-radius: 8px !important;
}

.crm-dlg-phone-type-select:hover .mud-input-outlined-border {
    border-color: #cbd5e1 !important;
}

.crm-dlg-phone-type-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.crm-dlg-phone-type-option .mud-icon-root {
    font-size: 1rem;
    color: #64748b;
}

/* Phone Actions */
.crm-dlg-phone-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.crm-dlg-phone-actions .crm-dlg-set-primary-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.crm-dlg-phone-actions .crm-dlg-set-primary-btn:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-color: #fcd34d;
    color: #b45309;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.crm-dlg-phone-actions .crm-dlg-set-primary-btn .mud-icon-root {
    font-size: 0.875rem;
    color: #f59e0b;
}

.crm-dlg-phone-actions .crm-dlg-status-badge {
    padding: 0.375rem 0.625rem;
    font-size: 0.6875rem;
}

@media (max-width: 580px) {
    .crm-dlg-phone-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .crm-dlg-phone-input-wrapper {
        width: 100%;
    }
    
    .crm-dlg-phone-input-wrapper .intl-phone-dropdown {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        min-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 50vh;
    }
    
    .crm-dlg-phone-row-right {
        justify-content: space-between;
    }
}

@keyframes crm-dlg-row-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.crm-dlg-email-row:hover,
.crm-dlg-phone-row:hover,
.crm-dlg-address-row:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.crm-dlg-email-row.crm-dlg-is-primary,
.crm-dlg-phone-row.crm-dlg-is-primary,
.crm-dlg-address-row.crm-dlg-is-primary {
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
    border-color: #fcd34d;
}

/* Row Avatar */
.crm-dlg-row-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.crm-dlg-email-row:hover .crm-dlg-row-avatar,
.crm-dlg-phone-row:hover .crm-dlg-row-avatar,
.crm-dlg-address-row:hover .crm-dlg-row-avatar {
    transform: scale(1.05);
}

.crm-dlg-row-avatar .mud-icon-root {
    font-size: 1.25rem;
}

/* Email Type Colors */
.crm-dlg-row-avatar.crm-dlg-type-work {
    background: #fee2e2;
    color: #dc2626;
}

.crm-dlg-row-avatar.crm-dlg-type-personal {
    background: #d1fae5;
    color: #059669;
}

.crm-dlg-row-avatar.crm-dlg-type-other {
    background: #e0e7ff;
    color: #4f46e5;
}

/* Phone Type Colors */
.crm-dlg-row-avatar.crm-dlg-type-mobile {
    background: #dbeafe;
    color: #2563eb;
}

.crm-dlg-row-avatar.crm-dlg-type-home {
    background: #d1fae5;
    color: #059669;
}

.crm-dlg-row-avatar.crm-dlg-type-fax {
    background: #fef3c7;
    color: #d97706;
}

/* Address Type Colors */
.crm-dlg-row-avatar.crm-dlg-type-home {
    background: #d1fae5;
    color: #059669;
}

.crm-dlg-row-avatar.crm-dlg-type-mailing {
    background: #e0e7ff;
    color: #4f46e5;
}

.crm-dlg-row-avatar.crm-dlg-type-billing {
    background: #fef3c7;
    color: #d97706;
}

.crm-dlg-row-avatar.crm-dlg-type-shipping {
    background: #dbeafe;
    color: #2563eb;
}

/* Row Content */
.crm-dlg-row-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.crm-dlg-row-main {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.crm-dlg-type-badge {
    display: inline-flex;
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

    /* Email Type Badge Colors */
    .crm-dlg-type-badge.crm-dlg-type-work {
        background: #fef2f2;
        color: #dc2626;
    }

    .crm-dlg-type-badge.crm-dlg-type-personal {
        background: #ecfdf5;
        color: #059669;
    }

    .crm-dlg-type-badge.crm-dlg-type-other {
        background: #eef2ff;
        color: #4f46e5;
    }

    /* Phone Type Badge Colors */
    .crm-dlg-type-badge.crm-dlg-type-mobile {
        background: #eff6ff;
        color: #2563eb;
    }

    .crm-dlg-type-badge.crm-dlg-type-home {
        background: #ecfdf5;
        color: #059669;
    }

    .crm-dlg-type-badge.crm-dlg-type-fax {
        background: #fffbeb;
        color: #d97706;
    }

    /* Address Type Badge Colors */
    .crm-dlg-type-badge.crm-dlg-type-home {
        background: #ecfdf5;
        color: #059669;
    }

    .crm-dlg-type-badge.crm-dlg-type-mailing {
        background: #eef2ff;
        color: #4f46e5;
    }

    .crm-dlg-type-badge.crm-dlg-type-billing {
        background: #fffbeb;
        color: #d97706;
    }

    .crm-dlg-type-badge.crm-dlg-type-shipping {
        background: #eff6ff;
        color: #2563eb;
    }

    /* Social Media Type Badge Colors */
    .crm-dlg-type-badge.crm-dlg-type-platform {
        background: #f0fdf4;
        color: #16a34a;
    }

    .crm-dlg-type-badge.crm-dlg-type-username {
        background: #fef3c7;
        color: #d97706;
    }

    .crm-dlg-type-badge.crm-dlg-type-url {
        background: #e0e7ff;
        color: #4f46e5;
    }

/* Social Media Type Avatar Colors */
.crm-dlg-row-avatar.crm-dlg-type-platform {
    background: #d1fae5;
    color: #059669;
}

.crm-dlg-row-avatar.crm-dlg-type-username {
    background: #fef3c7;
    color: #d97706;
}

.crm-dlg-row-avatar.crm-dlg-type-url {
    background: #e0e7ff;
    color: #4f46e5;
}

/* Social Media Dialog Row */
.crm-dlg-social-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: crm-dlg-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    animation-delay: calc(var(--i) * 0.08s);
}

    .crm-dlg-social-row:hover {
        border-color: #c7d2fe;
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
        transform: translateY(-1px);
    }

/* Social Media Icon Preview in Header */
.crm-dlg-social-icon-preview {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

    .crm-dlg-social-icon-preview.facebook { background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%); }
    .crm-dlg-social-icon-preview.twitter { background: linear-gradient(135deg, #1da1f2 0%, #0d8ddb 100%); }
    .crm-dlg-social-icon-preview.instagram { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
    .crm-dlg-social-icon-preview.linkedin { background: linear-gradient(135deg, #0077b5 0%, #005885 100%); }
    .crm-dlg-social-icon-preview.youtube { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); }
    .crm-dlg-social-icon-preview.tiktok { background: linear-gradient(135deg, #000000 0%, #333333 100%); }
    .crm-dlg-social-icon-preview.pinterest { background: linear-gradient(135deg, #e60023 0%, #ad081b 100%); }
    .crm-dlg-social-icon-preview.snapchat { background: linear-gradient(135deg, #fffc00 0%, #ffeb3b 100%); color: #000; }
    .crm-dlg-social-icon-preview.other { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

/* Social Media Preview Section */
.crm-dlg-social-preview {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    animation: crm-dlg-fade-in 0.3s ease;
}

.crm-dlg-preview-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6366f1;
}

.crm-dlg-preview-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.crm-dlg-preview-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

    .crm-dlg-preview-icon.facebook { background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%); }
    .crm-dlg-preview-icon.twitter { background: linear-gradient(135deg, #1da1f2 0%, #0d8ddb 100%); }
    .crm-dlg-preview-icon.instagram { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
    .crm-dlg-preview-icon.linkedin { background: linear-gradient(135deg, #0077b5 0%, #005885 100%); }
    .crm-dlg-preview-icon.youtube { background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%); }
    .crm-dlg-preview-icon.tiktok { background: linear-gradient(135deg, #000000 0%, #333333 100%); }
    .crm-dlg-preview-icon.pinterest { background: linear-gradient(135deg, #e60023 0%, #ad081b 100%); }
    .crm-dlg-preview-icon.snapchat { background: linear-gradient(135deg, #fffc00 0%, #ffeb3b 100%); color: #000; }
    .crm-dlg-preview-icon.other { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

.crm-dlg-preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.crm-dlg-preview-platform {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.crm-dlg-preview-username {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.crm-dlg-preview-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .crm-dlg-preview-link:hover {
        background: #6366f1;
        color: white;
    }

/* Inline Select for Social Dialog */
.crm-dlg-inline-select {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
}

    .crm-dlg-inline-select .mud-input-control-input-container {
        margin-top: 0 !important;
    }

    .crm-dlg-inline-select .mud-input {
        margin-top: 0 !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
    }

    .crm-dlg-inline-select .mud-select-input {
        padding: 0 !important;
    }

@keyframes crm-dlg-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inline Input */
.crm-dlg-inline-input {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
}

    .crm-dlg-inline-input .mud-input-control-input-container {
        margin-top: 0 !important;
    }

    .crm-dlg-inline-input .mud-input {
        margin-top: 0 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        transition: all 0.2s ease !important;
    }

        .crm-dlg-inline-input .mud-input:hover {
            border-color: #cbd5e1 !important;
            background: #ffffff !important;
        }

        .crm-dlg-inline-input .mud-input:focus-within {
            border-color: #a78bfa !important;
            background: #ffffff !important;
            box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15) !important;
        }

    .crm-dlg-inline-input input {
        font-size: 0.9375rem !important;
        font-weight: 600 !important;
        color: #1e293b !important;
        padding: 0.5rem 0.75rem !important;
    }

        .crm-dlg-inline-input input::placeholder {
            color: #94a3b8;
            font-weight: 400;
        }

.crm-dlg-row-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
}

    .crm-dlg-row-meta .mud-icon-root {
        font-size: 0.875rem;
        color: #94a3b8;
    }

/* Row Right */
.crm-dlg-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.375rem;
    flex-shrink: 0;
}

.crm-dlg-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
}

    .crm-dlg-status-badge.crm-dlg-status-primary {
        background: #fef3c7;
        color: #b45309;
        border: 1px solid #fcd34d;
    }

        .crm-dlg-status-badge.crm-dlg-status-primary .mud-icon-root {
            font-size: 0.75rem;
            color: #f59e0b;
        }

.crm-dlg-set-primary-btn {
    padding: 0.25rem 0.625rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .crm-dlg-set-primary-btn:hover {
        background: #fef3c7;
        border-color: #fcd34d;
        color: #b45309;
    }

/* Action Group - groups Primary/SetPrimary with Remove button */
.crm-dlg-action-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Remove Button */
.crm-dlg-remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

    .crm-dlg-remove-btn:hover {
        background: #fef2f2;
        border-color: #fca5a5;
        color: #dc2626;
        transform: scale(1.05);
    }

    .crm-dlg-remove-btn:active {
        transform: scale(0.95);
    }

    .crm-dlg-remove-btn .mud-icon-root {
        font-size: 1.125rem;
    }

    .crm-dlg-remove-btn:disabled,
    .crm-dlg-remove-btn.crm-dlg-disabled {
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
        background: #f1f5f9;
        border-color: #e2e8f0;
        color: #cbd5e1;
    }

        .crm-dlg-remove-btn:disabled:hover,
        .crm-dlg-remove-btn.crm-dlg-disabled:hover {
            transform: none;
            background: #f1f5f9;
            border-color: #e2e8f0;
            color: #cbd5e1;
        }

/* Edit Button */
.crm-dlg-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.crm-dlg-edit-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #6366f1;
    transform: scale(1.05);
}

.crm-dlg-edit-btn:active {
    transform: scale(0.95);
}

.crm-dlg-edit-btn .mud-icon-root {
    font-size: 1.125rem;
}

/* Type Dropdown */
.crm-dlg-type-dropdown {
    margin: 0 !important;
    min-width: 80px !important;
}

    .crm-dlg-type-dropdown .mud-input-control-input-container {
        margin-top: 0 !important;
    }

    .crm-dlg-type-dropdown .mud-input {
        margin-top: 0 !important;
    }

    .crm-dlg-type-dropdown .mud-select-input {
        font-size: 0.6875rem !important;
        color: #64748b !important;
        padding: 0 !important;
    }

    .crm-dlg-type-dropdown .mud-list-item {
        min-height: 32px !important;
        padding: 0.375rem 0.75rem !important;
    }

    .crm-dlg-type-dropdown .mud-list-item-text {
        font-size: 0.75rem !important;
    }

/* Add More Button */
.crm-dlg-add-more-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    margin-top: 0.875rem;
    background: white;
    border: 2px dashed #d1d5db;
    border-radius: 14px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.crm-dlg-dialog-theme .crm-dlg-add-more-btn:hover {
    border-color: #7c3aed;
    border-style: solid;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    color: #7c3aed;
    transform: translateY(-1px);
}

.crm-dlg-add-icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.crm-dlg-dialog-theme .crm-dlg-add-more-btn:hover .crm-dlg-add-icon-wrap {
    background: #7c3aed;
    color: white;
}

.crm-dlg-arrow {
    margin-left: auto;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.2s ease;
}

.crm-dlg-add-more-btn:hover .crm-dlg-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========== ADDRESS SPECIFIC ========== */
.crm-dlg-address-content {
    flex: 1;
}

.crm-dlg-address-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.crm-dlg-address-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 580px) {
    .crm-dlg-address-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== FOOTER ========== */
.crm-dlg-premium-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.crm-dlg-footer-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.crm-dlg-hint-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    border-radius: 6px;
    color: #f59e0b;
}

.crm-dlg-footer-btns {
    display: flex;
    gap: 0.625rem;
}

.crm-dlg-btn-ghost {
    padding: 0.625rem 1.125rem;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .crm-dlg-btn-ghost:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

.crm-dlg-btn-danger {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.125rem;
    background: transparent;
    border: 1px solid #FECACA;
    border-radius: 10px;
    color: #DC2626;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .crm-dlg-btn-danger:hover {
        background: #FEE2E2;
        border-color: #F87171;
    }

    .crm-dlg-btn-danger .mud-icon-root {
        font-size: 1rem;
    }

.crm-dlg-btn-outline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    background: transparent;
    border: 2px solid #6366f1;
    border-radius: 10px;
    color: #6366f1;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .crm-dlg-btn-outline:hover {
        background: rgba(99, 102, 241, 0.08);
        border-color: #4f46e5;
        color: #4f46e5;
    }

    .crm-dlg-btn-outline .mud-icon-root {
        font-size: 1rem;
    }

.crm-dlg-btn-solid {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.crm-dlg-dialog-theme .crm-dlg-btn-solid {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.crm-dlg-btn-solid:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.crm-dlg-btn-solid:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.crm-dlg-loading-spin {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: crm-dlg-spin 0.7s linear infinite;
}

@keyframes crm-dlg-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== PROFESSIONAL DIALOG STYLES ========== */

/* Professional Dialog Body */
.crm-professional-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Section Styles */
.crm-professional-section {
    background: linear-gradient(135deg, #fefefe 0%, #fafbfc 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.crm-professional-section:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.crm-professional-section-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.crm-professional-section-header .mud-icon-root {
    color: #6366f1;
}

/* Company Row */
.crm-professional-company-row {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    align-items: flex-start;
}

.crm-professional-company-row .crm-professional-field {
    flex: 1;
}

/* Add Company Button */
.crm-professional-add-company-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    color: #6366f1;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 40px;
}

.crm-professional-add-company-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
    color: white;
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.crm-professional-add-company-btn:hover .mud-icon-root {
    transform: rotate(90deg);
}

.crm-professional-add-company-btn .mud-icon-root {
    transition: transform 0.3s ease;
}

/* Company Option in Autocomplete */
.crm-professional-company-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.crm-professional-company-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    flex-shrink: 0;
}

.crm-professional-company-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.crm-professional-company-option-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.crm-professional-company-option-dba {
    font-size: 0.75rem;
    color: #64748b;
}

/* No Results */
.crm-professional-no-results {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.crm-professional-no-results .mud-icon-root {
    color: #94a3b8;
}

/* New Company Form */
.crm-professional-new-company-form {
    margin: 0 1.25rem 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    border: 1px solid #c7d2fe;
    animation: crm-professional-slide-down 0.3s ease;
}

@keyframes crm-professional-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.crm-professional-new-company-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #4338ca;
}

.crm-professional-new-company-header .mud-icon-root {
    color: #6366f1;
}

/* Form Grid */
.crm-professional-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem;
}

.crm-professional-field {
    background: white;
    border-radius: 10px;
}

.crm-professional-field-full {
    grid-column: 1 / -1;
}

.crm-professional-field .mud-input-control {
    background: white;
}

/* New Company Actions */
.crm-professional-new-company-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

/* Company Preview Card */
.crm-professional-company-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 1.25rem 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 12px;
    border: 1px solid #c7d2fe;
    animation: crm-professional-fade-in 0.3s ease;
}

@keyframes crm-professional-fade-in {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.crm-professional-company-preview-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.crm-professional-company-preview-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.crm-professional-company-preview-name {
    font-size: 1rem;
    font-weight: 700;
    color: #3730a3;
}

.crm-professional-company-preview-dba {
    font-size: 0.8125rem;
    color: #4338ca;
}

.crm-professional-company-preview-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.375rem;
}

.crm-professional-company-preview-details span,
.crm-professional-company-preview-details a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #4f46e5;
}

.crm-professional-company-preview-details a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.crm-professional-company-preview-details a:hover {
    color: #3730a3;
    text-decoration: underline;
}

.crm-professional-company-preview-details .mud-icon-root {
    font-size: 0.875rem !important;
}

/* Section Header Colors */
.crm-professional-section:nth-child(1) .crm-professional-section-header {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-bottom-color: #c7d2fe;
}

.crm-professional-section:nth-child(1) .crm-professional-section-header .mud-icon-root {
    color: #6366f1;
}

.crm-professional-section:nth-child(2) .crm-professional-section-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom-color: #bbf7d0;
}

.crm-professional-section:nth-child(2) .crm-professional-section-header .mud-icon-root {
    color: #22c55e;
}

/* Sectioned Body for Details Dialog */
.crm-dlg-sectioned-body {
    padding: 1.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Enhanced Section Styling */
.crm-dlg-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.crm-dlg-section:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.crm-dlg-section-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #f1f5f9;
}

/* Section Color Themes */
.crm-dlg-section:nth-child(1) .crm-dlg-section-header {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
    border-bottom-color: #c7d2fe;
}

/*.crm-dlg-section:nth-child(1) .crm-dlg-section-header .mud-icon-root {
    color: #6366f1;
}

.crm-dlg-section:nth-child(2) .crm-dlg-section-header {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-bottom-color: #fcd34d;
}

.crm-dlg-section:nth-child(2) .crm-dlg-section-header .mud-icon-root {
    color: #f59e0b;
}

.crm-dlg-section:nth-child(3) .crm-dlg-section-header {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #9d174d;
    border-bottom-color: #f9a8d4;
}

.crm-dlg-section:nth-child(3) .crm-dlg-section-header .mud-icon-root {
    color: #ec4899;
}

.crm-dlg-section:nth-child(4) .crm-dlg-section-header {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #166534;
    border-bottom-color: #86efac;
}

.crm-dlg-section:nth-child(4) .crm-dlg-section-header .mud-icon-root {
    color: #22c55e;
}*/

/* Grid Layouts */
.crm-dlg-grid-1 {
    grid-template-columns: 1fr !important;
}

.crm-dlg-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.crm-dlg-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.crm-dlg-form-grid {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.crm-dlg-form-field {
    position: relative;
}

.crm-dlg-form-input {
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.crm-dlg-form-input:focus-within {
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.crm-dlg-form-input .mud-input-outlined-border {
    border-color: #e2e8f0;
}

.crm-dlg-form-input:focus-within .mud-input-outlined-border {
    border-color: #6366f1 !important;
}

/* Wide Dialog */
.crm-dlg-wide {
    max-width: 720px !important;
}

.crm-dlg-wide .mud-dialog-content {
    max-height: 70vh;
    overflow-y: auto;
}

/* Professional Header Variant */
.crm-dlg-header-professional {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #8b5cf6 100%) !important;
}

.crm-dlg-header-professional .crm-dlg-orb-1 {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4), transparent 70%);
}

.crm-dlg-header-professional .crm-dlg-orb-2 {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
}

/* Responsive */
@media (max-width: 640px) {
    .crm-professional-company-row {
        flex-direction: column;
    }

    .crm-professional-add-company-btn {
        width: 100%;
        justify-content: center;
    }

    .crm-professional-form-grid {
        grid-template-columns: 1fr;
    }

    .crm-dlg-grid-2,
    .crm-dlg-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .crm-professional-company-preview {
        flex-direction: column;
        text-align: center;
    }

    .crm-professional-company-preview-details {
        justify-content: center;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 580px) {
    .crm-dlg-premium-header {
        padding: 1.25rem;
    }

    .crm-dlg-header-counter {
        display: none;
    }

    .crm-dlg-premium-body {
        padding: 1rem;
    }

    .crm-dlg-card-content {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .crm-dlg-type-indicator {
        display: none;
    }

    .crm-dlg-fields-area {
        flex-direction: column;
        width: 100%;
    }

    .crm-dlg-type-field {
        width: 100%;
    }

    .crm-dlg-action-btns {
        width: 100%;
        justify-content: flex-end;
        padding-top: 0.625rem;
        border-top: 1px solid #f1f5f9;
    }

    .crm-dlg-premium-footer {
        flex-direction: column;
        gap: 0.875rem;
    }

    .crm-dlg-footer-hint {
        order: 2;
        font-size: 0.6875rem;
    }

    .crm-dlg-footer-btns {
        width: 100%;
    }

        .crm-dlg-footer-btns button {
            flex: 1;
            justify-content: center;
        }
}

/* =============================================
   TASK DIALOG STYLES
   Prefix: crm-dlg-task-
   Used by: TaskDialog.razor
   ============================================= */

/* Task Dialog Body */
.crm-dlg-task-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Task Section */
.crm-dlg-task-section {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.crm-dlg-task-section:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Task Templates */
.crm-dlg-task-templates {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 16px;
    border: 1px solid #e9d5ff;
    padding: 1rem 1.25rem;
    animation: crm-dlg-fade-in 0.3s ease;
}

.crm-dlg-task-templates-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7c3aed;
    margin-bottom: 0.75rem;
}

.crm-dlg-task-templates-label .mud-icon-root {
    color: #a855f7;
}

.crm-dlg-task-templates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.crm-dlg-task-template-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: white;
    border: 1px solid #d8b4fe;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #7c3aed;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(139, 92, 246, 0.1);
}

.crm-dlg-task-template-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-color: #7c3aed;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.crm-dlg-task-template-btn:active {
    transform: translateY(0);
}

.crm-dlg-task-template-btn.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-color: #7c3aed;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.crm-dlg-task-template-btn.active .mud-icon-root {
    animation: crm-dlg-bounce 0.5s ease;
}

@keyframes crm-dlg-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.crm-dlg-task-template-btn .mud-icon-root {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.crm-dlg-task-template-btn:hover .mud-icon-root {
    transform: scale(1.1);
}

/* Select Item with Icon */
.crm-dlg-select-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Priority Dots */
.crm-dlg-priority-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.crm-dlg-priority-dot.crm-dlg-priority-high {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(239, 68, 68, 0.4);
}

.crm-dlg-priority-dot.crm-dlg-priority-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(245, 158, 11, 0.4);
}

.crm-dlg-priority-dot.crm-dlg-priority-low {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(59, 130, 246, 0.4);
}

/* Target Type Selection */
.crm-dlg-task-target-section {
    padding: 0.25rem 0;
}

.crm-dlg-task-target-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.crm-dlg-task-target-toggle {
    display: flex;
    gap: 0.75rem;
}

.crm-dlg-task-target-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.crm-dlg-task-target-btn:hover {
    border-color: #a78bfa;
    color: #7c3aed;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.crm-dlg-task-target-btn.active {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-color: #7c3aed;
    color: #6d28d9;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.crm-dlg-task-target-btn .mud-icon-root {
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.crm-dlg-task-target-btn:hover .mud-icon-root,
.crm-dlg-task-target-btn.active .mud-icon-root {
    transform: scale(1.1);
}

/* Contact Option in Autocomplete */
.crm-dlg-contact-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0;
}

.crm-dlg-contact-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.75rem !important;
}

.crm-dlg-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.crm-dlg-contact-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.crm-dlg-contact-company {
    font-size: 0.75rem;
    color: #64748b;
}

/* Family Group Option */
.crm-dlg-family-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.375rem 0;
}

.crm-dlg-family-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #ec4899;
    flex-shrink: 0;
}

.crm-dlg-family-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.crm-dlg-family-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.crm-dlg-family-count {
    font-size: 0.75rem;
    color: #64748b;
}

/* Family Group Preview */
.crm-dlg-family-preview {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 1rem;
    animation: crm-dlg-fade-in 0.3s ease;
}

.crm-dlg-family-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 0.75rem;
}

.crm-dlg-family-preview-header .mud-icon-root {
    color: #22c55e;
}

.crm-dlg-family-preview-members {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.crm-dlg-family-member-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem 0.25rem 0.25rem;
    background: white;
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #166534;
    transition: all 0.2s ease;
}

.crm-dlg-family-member-chip:hover {
    border-color: #22c55e;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.15);
}

.crm-dlg-member-avatar {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.625rem !important;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: white !important;
}

.crm-dlg-family-member-chip.crm-dlg-more {
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    font-weight: 600;
}

/* Assignee Option in Autocomplete */
.crm-dlg-assignee-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem;
    width: 100%;
}

.crm-dlg-assignee-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.crm-dlg-assignee-icon.crm-dlg-assignee-contact {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #6366f1;
}

.crm-dlg-assignee-icon.crm-dlg-assignee-family {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #ec4899;
}

.crm-dlg-assignee-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.crm-dlg-assignee-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.crm-dlg-assignee-subtitle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

.crm-dlg-assignee-subtitle .mud-icon-root {
    font-size: 0.875rem;
    color: #94a3b8;
}

.crm-dlg-assignee-type-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.crm-dlg-assignee-type-badge.crm-dlg-type-contact {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    border: 1px solid #c7d2fe;
}

.crm-dlg-assignee-type-badge.crm-dlg-type-family {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #db2777;
    border: 1px solid #f9a8d4;
}

/* Recurring Task Info */
.crm-dlg-task-recurring-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border: 1px solid #c4b5fd;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6d28d9;
    animation: crm-dlg-fade-in 0.3s ease;
}

.crm-dlg-task-recurring-info .mud-icon-root {
    color: #7c3aed;
    animation: crm-dlg-spin 3s linear infinite;
}

/* Reminder Info */
.crm-dlg-task-reminder-info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #92400e;
    animation: crm-dlg-fade-in 0.3s ease;
    margin-top: 0.5rem;
}

.crm-dlg-task-reminder-info .mud-icon-root {
    color: #f59e0b;
    animation: crm-dlg-bell-ring 2s ease-in-out infinite;
}

@keyframes crm-dlg-bell-ring {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(0deg); }
}

/* Switch Field Styling */
.crm-dlg-switch-field {
    padding: 0.5rem 0;
}

.crm-dlg-switch-field .mud-switch {
    margin: 0;
}

/* Task Dialog Responsive */
@media (max-width: 580px) {
    .crm-dlg-task-templates-list {
        gap: 0.375rem;
    }

    .crm-dlg-task-template-btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }

    .crm-dlg-task-target-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }

    .crm-dlg-task-target-btn {
        padding: 0.75rem;
    }

    .crm-dlg-family-preview-members {
        gap: 0.375rem;
    }

    .crm-dlg-family-member-chip {
        font-size: 0.6875rem;
    }
}

/* DateTime Group - Premium Combined Date & Time Picker */
.crm-dlg-datetime-group {
    grid-column: 1 / -1;
    position: relative;
}

.crm-dlg-datetime-label {
    position: absolute;
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6366f1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.crm-dlg-datetime-label::before {
    content: '📅';
    font-size: 0.625rem;
}

.crm-dlg-datetime-inputs {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.crm-dlg-datetime-inputs:hover {
    border-color: #c7d2fe;
    box-shadow: 
        0 2px 8px rgba(99, 102, 241, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.crm-dlg-datetime-inputs:focus-within {
    background: #ffffff;
    border-color: #6366f1;
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.12),
        0 4px 16px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.crm-dlg-datetime-inputs .crm-dlg-datetime-date {
    flex: 1.3;
    min-width: 0;
    position: relative;
}

.crm-dlg-datetime-inputs .crm-dlg-datetime-date::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, #e2e8f0 20%, #e2e8f0 80%, transparent 100%);
}

.crm-dlg-datetime-inputs .crm-dlg-datetime-time {
    flex: 1;
    min-width: 0;
}

.crm-dlg-datetime-inputs .mud-input-outlined-border {
    border: none !important;
    border-radius: 0 !important;
}

.crm-dlg-datetime-inputs .mud-input-control {
    margin: 0 !important;
}

.crm-dlg-datetime-inputs .mud-input-slot {
    padding: 0.875rem 1rem !important;
    font-weight: 500;
    color: #1e293b;
}

.crm-dlg-datetime-inputs .mud-input-slot::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.crm-dlg-datetime-inputs .crm-dlg-form-input {
    background: transparent;
    border-radius: 0;
}

.crm-dlg-datetime-inputs .crm-dlg-form-input:focus-within {
    background: transparent;
    box-shadow: none;
}

.crm-dlg-datetime-inputs .mud-picker-input-button {
    color: #6366f1;
    transition: all 0.2s ease;
}

.crm-dlg-datetime-inputs .mud-picker-input-button:hover {
    color: #4f46e5;
    background: rgba(99, 102, 241, 0.08);
}

.crm-dlg-datetime-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    background: linear-gradient(180deg, #f1f5f9 0%, #e8ecf1 100%);
    color: #6366f1;
    position: relative;
}

.crm-dlg-datetime-separator::before,
.crm-dlg-datetime-separator::after {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, #cbd5e1 50%, transparent 100%);
}

.crm-dlg-datetime-separator::before {
    left: 0;
}

.crm-dlg-datetime-separator::after {
    right: 0;
}

.crm-dlg-datetime-separator .mud-icon-root {
    font-size: 1.25rem;
    filter: drop-shadow(0 1px 1px rgba(99, 102, 241, 0.2));
}

/* Responsive adjustments for datetime group */
@media (max-width: 480px) {
    .crm-dlg-datetime-inputs {
        flex-direction: column;
    }

    .crm-dlg-datetime-inputs .crm-dlg-datetime-date::after {
        display: none;
    }

    .crm-dlg-datetime-separator {
        padding: 0.5rem;
        background: linear-gradient(90deg, #f1f5f9 0%, #e8ecf1 50%, #f1f5f9 100%);
    }

    .crm-dlg-datetime-separator::before,
    .crm-dlg-datetime-separator::after {
        top: 0;
        bottom: auto;
        left: 15%;
        right: 15%;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent 0%, #cbd5e1 50%, transparent 100%);
    }

    .crm-dlg-datetime-separator::before {
        top: 0;
    }

    .crm-dlg-datetime-separator::after {
        top: auto;
        bottom: 0;
    }

    .crm-dlg-datetime-inputs .crm-dlg-datetime-date,
    .crm-dlg-datetime-inputs .crm-dlg-datetime-time {
        flex: 1;
    }
}

/* ============================================
   Task Reminder Snackbar - Premium Design
   ============================================ */

.task-reminder-snackbar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 420px;
    width: calc(100vw - 48px);
}

.task-reminder-snackbar.slide-in {
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.task-reminder-snackbar.slide-out {
    animation: slideOutDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(100%) scale(0.9);
    }
}

.task-reminder-container {
    background: linear-gradient(145deg, #1e1e2e 0%, #2d2d44 100%);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Header */
.task-reminder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.task-reminder-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-reminder-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 8px;
    color: white;
}

.task-reminder-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1e1e2e;
}

.task-reminder-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.task-reminder-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-reminder-page-info {
    font-size: 12px;
    color: #a1a1aa;
    font-weight: 500;
}

.task-reminder-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-reminder-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

/* Content */
.task-reminder-content {
    padding: 16px;
}

.task-reminder-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeInCard 0.3s ease;
}

@keyframes fadeInCard {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.task-reminder-card.priority-high {
    border-left: 3px solid #ef4444;
}

.task-reminder-card.priority-medium {
    border-left: 3px solid #f59e0b;
}

.task-reminder-card.priority-low {
    border-left: 3px solid #22c55e;
}

.task-reminder-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.task-reminder-type {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-reminder-type .mud-icon-root {
    font-size: 14px;
}

.task-reminder-priority {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    color: #a1a1aa;
}

.task-reminder-priority .priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.priority-high .task-reminder-priority .priority-dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.priority-medium .task-reminder-priority .priority-dot {
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.priority-low .task-reminder-priority .priority-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.task-reminder-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.task-reminder-card-desc {
    font-size: 13px;
    color: #a1a1aa;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-reminder-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.task-reminder-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #71717a;
}

.task-reminder-meta-item .mud-icon-root {
    font-size: 14px;
    color: #6366f1;
}

.task-reminder-card-actions {
    display: flex;
    gap: 10px;
}

.task-reminder-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-reminder-action-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #a1a1aa;
}

.task-reminder-action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.task-reminder-action-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.task-reminder-action-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Pagination */
.task-reminder-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.task-reminder-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #a1a1aa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-reminder-nav-btn:hover:not(:disabled) {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.task-reminder-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.task-reminder-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-reminder-dot {
    width: 8px;
    height: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.task-reminder-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.task-reminder-dot.active {
    width: 24px;
    border-radius: 4px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* Footer */
.task-reminder-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.task-reminder-footer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #71717a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-reminder-footer-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #a1a1aa;
}

.task-reminder-footer-btn .mud-icon-root {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .task-reminder-snackbar {
        bottom: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        width: auto;
    }

    .task-reminder-card-actions {
        flex-direction: column;
    }

    .task-reminder-action-btn {
        padding: 12px;
    }
}

/* =============================================
   CLP - CONTACTS LIST PAGE STYLES
   Prefix: clp-
   Used by: Contacts.razor
   ============================================= */

/* CSS Variables & Design Tokens */
:root {
    /* Colors & Gradients */
    --clp-primary: #5b6ef5;
    --clp-primary-dark: #4a5cd4;
    --clp-gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --clp-gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --clp-gradient-blue: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --clp-gradient-orange: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --clp-gradient-green: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --clp-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --clp-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    
    /* Border Radius */
    --clp-radius-lg: 12px;
    --clp-radius-xl: 16px;
}

/* Page Header */
.clp-page-header { margin-bottom: 2rem; }
.clp-greeting { font-size: 2rem; font-weight: 700; color: var(--clp-primary); margin-bottom: 0.25rem; }
.clp-greeting-user { font-size: 1.125rem; color: var(--mud-palette-text-secondary); }

/* Tabs Container */
.clp-tabs-container { background: var(--mud-palette-surface); border-radius: var(--clp-radius-xl); box-shadow: var(--clp-shadow-card); overflow: hidden; }
.clp-tabs-header { display: flex; gap: 0.5rem; padding: 1rem; border-bottom: 1px solid var(--mud-palette-lines-default); overflow-x: auto; background: var(--mud-palette-background); }
.clp-tab-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem; border: none; border-radius: 8px; background: transparent; color: var(--mud-palette-text-secondary); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; white-space: nowrap; }
.clp-tab-btn:hover { background: var(--mud-palette-action-default-hover); color: var(--clp-primary); }
.clp-tab-btn.active { background: var(--clp-primary); color: white; box-shadow: 0 4px 12px rgba(91, 110, 245, 0.3); }
.clp-tab-content { padding: 1.5rem; }

/* Section Header */
.clp-section-header { margin-bottom: 1.5rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.clp-section-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--clp-primary); text-transform: uppercase; margin-bottom: 0.5rem; }
.clp-section-subtitle { color: var(--mud-palette-text-secondary); }

/* Stats Cards */
.clp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.clp-stat-card { background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: var(--clp-radius-xl); padding: 1.5rem; display: flex; align-items: center; gap: 1rem; transition: all 0.3s ease; }
.clp-stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); }
.clp-stat-icon { width: 60px; height: 60px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.clp-stat-icon.purple { background: var(--clp-gradient-purple); }
.clp-stat-icon.pink { background: var(--clp-gradient-pink); }
.clp-stat-icon.blue { background: var(--clp-gradient-blue); }
.clp-stat-icon.orange { background: var(--clp-gradient-orange); }
.clp-stat-content { flex: 1; }
.clp-stat-value { font-size: 2.5rem; font-weight: 700; color: var(--mud-palette-text-primary); line-height: 1.2; }
.clp-stat-label { font-size: 0.875rem; color: var(--mud-palette-text-secondary); margin-top: 0.25rem; }
.clp-stat-change { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-top: 0.5rem; }
.clp-stat-change.positive { background: rgba(16, 185, 129, 0.1); color: #10b981; }

/* Charts Row */
.clp-charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.clp-chart-card { background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: var(--clp-radius-xl); overflow: hidden; }
.clp-chart-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--mud-palette-lines-default); }
.clp-chart-title { font-size: 1.125rem; font-weight: 600; color: var(--mud-palette-text-primary); }
.clp-chart-body { padding: 1.5rem; }

/* Funnel Chart */
.clp-funnel-stage { margin-bottom: 0.75rem; }
.clp-funnel-bar { display: flex; justify-content: space-between; align-items: center; padding: 0.875rem 1.25rem; border-radius: 8px; color: white; font-weight: 500; transition: transform 0.2s ease; }
.clp-funnel-bar:hover { transform: translateX(4px); }
.clp-funnel-label { font-size: 0.875rem; }
.clp-funnel-value { font-size: 1rem; font-weight: 700; }

/* Lead Sources */
.clp-source-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--mud-palette-lines-default); }
.clp-source-item:last-child { border-bottom: none; }
.clp-source-info { display: flex; align-items: center; gap: 0.75rem; }
.clp-source-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; }
.clp-source-name { font-size: 0.9375rem; font-weight: 500; color: var(--mud-palette-text-primary); }
.clp-source-count { font-size: 0.8125rem; color: var(--mud-palette-text-secondary); margin-top: 0.125rem; }
.clp-source-percentage { font-size: 1rem; font-weight: 700; color: var(--mud-palette-text-primary); }

/* Lead Generation Channels Grid */
.clp-lgc-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.5rem;
    max-width: 1000px;
}
.clp-lgc-card { 
    background: var(--mud-palette-surface); 
    border: 1px solid var(--mud-palette-lines-default); 
    border-radius: 12px; 
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
}
.clp-lgc-card:hover { 
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.clp-lgc-icon { 
    width: 56px; 
    height: 56px; 
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clp-lgc-icon img, .clp-lgc-icon svg { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}
.clp-lgc-icon-facebook { color: #1877F2; }
.clp-lgc-icon-instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.clp-lgc-icon-whatsapp { color: #25D366; }
.clp-lgc-icon-forms { color: #673AB7; }
.clp-lgc-icon-landing { color: #607D8B; }
.clp-lgc-icon-webhooks { color: #00BCD4; }
.clp-lgc-title { 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--mud-palette-text-primary);
    margin-bottom: 0.5rem;
}
.clp-lgc-desc { 
    font-size: 0.875rem; 
    color: var(--mud-palette-text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}
.clp-lgc-btn { 
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.clp-lgc-btn-connect { 
    background: #4285f4;
    color: white;
}
.clp-lgc-btn-connect:hover { background: #3367d6; }
.clp-lgc-btn-manage { 
    background: #34a853;
    color: white;
}
.clp-lgc-btn-manage:hover { background: #2d9248; }

/* Multi-Entry List (Emails, Phones) */
.clp-multi-entry-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.clp-multi-entry-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.clp-multi-entry-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}
.clp-multi-entry-row:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.1),
        0 16px 40px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}
.clp-multi-entry-row:hover::before {
    transform: scaleY(1);
}
.clp-multi-entry-row.is-primary {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
.clp-multi-entry-row.is-primary::before {
    background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 100%);
    transform: scaleY(1);
}
.clp-multi-entry-row.is-primary::after {
    content: '★ PRIMARY';
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: white;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}
.clp-multi-entry-fields {
    display: flex;
    flex: 1;
    gap: 0.875rem;
    align-items: center;
    padding-left: 0.25rem;
}
.clp-multi-entry-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}
.clp-multi-entry-actions .mud-icon-button {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
}
.clp-multi-entry-actions .mud-icon-button:hover {
    transform: scale(1.15);
    background: rgba(99, 102, 241, 0.1);
}

/* Family Group Selector */
.clp-family-group-selector {
    padding: 1rem 0;
}
.clp-family-group-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}
.clp-family-group-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--mud-palette-background);
    border: 2px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.clp-family-group-card:hover {
    border-color: #667eea;
    background: var(--mud-palette-surface);
}
.clp-family-group-card.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}
.clp-family-group-card.new-group {
    border-style: dashed;
}
.clp-family-group-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.clp-family-group-card.new-group .clp-family-group-icon {
    background: var(--mud-palette-lines-default);
    color: var(--mud-palette-text-secondary);
}
.clp-family-group-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.clp-family-group-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--mud-palette-text-primary);
}
.clp-family-group-count {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}
.clp-new-group-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--mud-palette-background);
    border-radius: 8px;
}
.clp-new-group-form .mud-input-control {
    flex: 1;
}

/* Family Members List */
.clp-empty-family {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 0.75rem;
    background: var(--mud-palette-background);
    border-radius: 10px;
    border: 2px dashed var(--mud-palette-lines-default);
}
.clp-family-members-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.clp-family-member-card {
    background: var(--mud-palette-background);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 1rem;
}
.clp-family-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
.clp-family-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.clp-family-member-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.clp-family-member-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: #667eea;
}

/* Family Members Relationship List */
.clp-family-members-relationship-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.clp-family-member-relationship-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: var(--mud-palette-background);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.clp-family-member-relationship-row:hover {
    border-color: #667eea;
    background: var(--mud-palette-surface);
}
.clp-family-member-info-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}
.clp-family-member-avatar-small {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}
.clp-family-member-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.clp-family-member-name-compact {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--mud-palette-text-primary);
}
.clp-family-member-role {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}
.clp-relationship-selector {
    flex-shrink: 0;
}

/* Lead Sources Grid Tab */
.clp-lead-sources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.clp-lead-source-card { 
    background: var(--mud-palette-surface); 
    border: 1px solid var(--mud-palette-lines-default); 
    border-radius: 12px; 
    padding: 1.25rem;
    transition: all 0.2s ease;
}
.clp-lead-source-card:hover { 
    border-color: #667eea; 
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}
.clp-lead-source-card.inactive { opacity: 0.6; }
.clp-lead-source-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.clp-lead-source-icon { 
    width: 48px; 
    height: 48px; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
}
.clp-lead-source-info { flex: 1; min-width: 0; }
.clp-lead-source-name { font-size: 1rem; font-weight: 600; color: var(--mud-palette-text-primary); margin: 0 0 0.25rem; }
.clp-lead-source-desc { 
    font-size: 0.8125rem; 
    color: var(--mud-palette-text-secondary); 
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clp-lead-source-actions { flex-shrink: 0; }
.clp-lead-source-stats { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-top: 1rem; 
    border-top: 1px solid var(--mud-palette-lines-default);
}
.clp-lead-source-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.clp-stat-value-lg { font-size: 1.25rem; font-weight: 700; color: var(--mud-palette-text-primary); }
.clp-stat-label-sm { font-size: 0.75rem; color: var(--mud-palette-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.clp-stat-badge { 
    padding: 0.25rem 0.75rem; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    font-weight: 500; 
}
.clp-stat-badge.active { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.clp-stat-badge.inactive { background: rgba(156, 163, 175, 0.1); color: #6b7280; }
.clp-delete-item { color: #ef4444 !important; }
.clp-delete-item:hover { background: rgba(239, 68, 68, 0.1) !important; }
.clp-empty-state { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 4rem 2rem; 
    text-align: center;
    background: var(--mud-palette-surface);
    border: 2px dashed var(--mud-palette-lines-default);
    border-radius: 12px;
}
.clp-empty-state h4 { font-size: 1.25rem; font-weight: 600; color: var(--mud-palette-text-primary); margin: 0 0 0.5rem; }
.clp-empty-state p { font-size: 0.9375rem; color: var(--mud-palette-text-secondary); margin: 0 0 1.5rem; }

/* Monthly Performance Card */
.clp-performance-card { background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: var(--clp-radius-xl); margin-bottom: 1.5rem; }

/* Recent Activity */
.clp-activity-feed { padding: 0 1.5rem 1.5rem; }
.clp-activity-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--mud-palette-lines-default); }
.clp-activity-item:last-child { border-bottom: none; }
.clp-activity-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.clp-activity-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.clp-activity-icon.blue { background: rgba(91, 110, 245, 0.1); color: #5b6ef5; }
.clp-activity-icon.purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.clp-activity-content { flex: 1; }
.clp-activity-text { font-size: 0.9375rem; color: var(--mud-palette-text-primary); }
.clp-activity-text strong { font-weight: 600; }
.clp-activity-time { font-size: 0.8125rem; color: var(--mud-palette-text-secondary); margin-top: 0.25rem; }

/* Contact Actions */
.clp-contact-actions {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}
.clp-search-container {
    flex: 1;
    min-width: 300px;
    position: relative;
}
.clp-search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--mud-palette-text-disabled);
    pointer-events: none;
}
.clp-search-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 45px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--clp-radius-lg);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-size: 0.875rem;
    transition: all 0.15s ease;
}
.clp-search-input:focus {
    outline: none;
    border-color: var(--clp-primary);
    box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.1);
}
.clp-search-input::placeholder {
    color: var(--mud-palette-text-disabled);
}
.clp-action-buttons {
    display: flex;
    gap: var(--spacing-md);
}
.clp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--clp-radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.clp-btn:active {
    transform: scale(0.98);
}
.clp-btn-primary {
    background: var(--clp-gradient-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}
.clp-btn-primary:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.clp-btn-secondary {
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    border: 1px solid var(--mud-palette-lines-default);
}
.clp-btn-secondary:hover {
    background: var(--mud-palette-action-default-hover);
    border-color: var(--clp-primary);
    color: var(--clp-primary);
}

/* Sort Container */
.clp-sort-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.clp-sort-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0.5rem;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 160px;
}
.clp-sort-select:hover {
    border-color: var(--clp-primary);
    background: var(--mud-palette-action-default-hover);
}
.clp-sort-select:focus {
    outline: none;
    border-color: var(--clp-primary);
    box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.1);
}

/* Filter Panel */
.clp-filter-panel {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--clp-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.clp-filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}
.clp-filter-panel-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--mud-palette-text-primary);
}
.clp-filter-panel-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}
.clp-filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
.clp-filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}
.clp-filter-select {
    padding: var(--spacing-md);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0.5rem;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.clp-filter-select:hover {
    border-color: var(--clp-primary);
}
.clp-filter-select:focus {
    outline: none;
    border-color: var(--clp-primary);
    box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.1);
}
.clp-filter-panel-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--mud-palette-lines-default);
}
.clp-filter-badge {
    display: inline-block;
    background: var(--clp-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: var(--spacing-xs);
}
.clp-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mud-palette-text-secondary);
    transition: all 0.15s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}
.clp-icon-btn:hover {
    background: var(--mud-palette-action-default-hover);
    color: var(--clp-primary);
}

/* Selection Toolbar */
.clp-selection-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.clp-selection-info {
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
}
.clp-selection-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.clp-selection-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.clp-selection-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}
.clp-selection-btn:active {
    transform: scale(0.98);
}

/* Pagination */
.clp-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-xl);
    border-top: 1px solid var(--mud-palette-lines-default);
}
.clp-pagination-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0.5rem;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-primary);
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    font-size: 0.875rem;
}
.clp-pagination-btn:not(:disabled):hover {
    background: var(--mud-palette-action-default-hover);
    border-color: var(--clp-primary);
    color: var(--clp-primary);
}
.clp-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.clp-pagination-info {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}
.clp-pagination-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}
.clp-pagination-select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 0.5rem;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 70px;
}
.clp-pagination-select:hover {
    border-color: var(--clp-primary);
    background: var(--mud-palette-action-default-hover);
}
.clp-pagination-select:focus {
    outline: none;
    border-color: var(--clp-primary);
    box-shadow: 0 0 0 3px rgba(91, 110, 245, 0.1);
}

/* Contacts Card Container */
.clp-contacts-card { background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: var(--clp-radius-xl); overflow: hidden; }
.clp-contacts-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--mud-palette-lines-default); }
.clp-view-toggle { display: flex; gap: 0.25rem; background: var(--mud-palette-background); padding: 0.25rem; border-radius: 8px; }
.clp-view-btn { padding: 0.5rem; border-radius: 6px; color: var(--mud-palette-text-secondary); background: transparent; border: none; cursor: pointer; transition: all 0.2s ease; }
.clp-view-btn:hover { background: var(--mud-palette-action-default-hover); }
.clp-view-btn.active { background: var(--clp-primary); color: white; }

/* Contacts Container */
.clp-contacts-container {
    padding: var(--spacing-xl);
    min-height: 400px;
}

/* Grid View */
.clp-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.clp-contact-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: var(--clp-radius-lg);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}
.clp-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--clp-primary);
}
.clp-contact-card .clp-card-checkbox {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.clp-contact-card:hover .clp-card-checkbox,
.clp-contact-card .clp-card-checkbox.checked,
.clp-has-selection .clp-contact-card .clp-card-checkbox {
    opacity: 1;
}
.clp-contact-card .clp-card-checkbox .mud-checkbox {
    margin: 0;
    padding: 0;
}
.clp-contact-card .clp-card-actions {
    display: flex;
    gap: 0.25rem;
}
.clp-contact-card .clp-card-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.clp-contact-card .clp-card-action-btn:hover {
    background: var(--mud-palette-action-default-hover);
    color: #667eea;
}
.clp-contact-card .clp-card-action-btn.delete:hover {
    background: #fef2f2;
    color: #ef4444;
}
.clp-contact-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}
.clp-contact-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--clp-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}
.clp-contact-info {
    flex: 1;
    min-width: 0;
}
.clp-contact-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clp-contact-position {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.clp-contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}
.clp-contact-detail {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}
.clp-contact-detail svg {
    color: var(--mud-palette-text-disabled);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.clp-contact-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--mud-palette-lines-default);
}
.clp-contact-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.clp-contact-badge.client {
    background: rgba(91, 110, 245, 0.1);
    color: var(--clp-primary);
}
.clp-contact-badge.lead {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.clp-contact-badge.partner {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.clp-contact-badge.vip {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* List View */
.clp-contacts-list { padding: 0; }
.clp-contact-list-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--mud-palette-lines-default); cursor: pointer; transition: all 0.2s ease; }
.clp-contact-list-item:hover { background: var(--mud-palette-action-default-hover); }
.clp-contact-list-item:last-child { border-bottom: none; }
.clp-contact-list-item .clp-contact-avatar { width: 50px; height: 50px; font-size: 1rem; }
.clp-contact-list-info { flex: 1; display: grid; grid-template-columns: 2fr 2fr 1.5fr 1fr auto; gap: 1rem; align-items: center; }
.clp-contact-list-detail h4 { font-size: 0.9375rem; font-weight: 600; color: var(--mud-palette-text-primary); margin-bottom: 0.25rem; }
.clp-contact-list-detail p { font-size: 0.8125rem; color: var(--mud-palette-text-secondary); }

/* Empty State */
.clp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px dashed var(--mud-palette-lines-default);
}

.clp-empty-state-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.clp-empty-state-icon .mud-icon-root {
    font-size: 2.5rem;
    color: #64748b;
}

.clp-empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
    margin: 0 0 0.75rem 0;
}

.clp-empty-state-description {
    font-size: 1rem;
    color: var(--mud-palette-text-secondary);
    max-width: 400px;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.clp-empty-state-description strong {
    color: var(--clp-primary);
    font-weight: 600;
}

.clp-empty-state-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.clp-empty-state-actions .mud-button-root {
    border-radius: 10px;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .clp-empty-state {
        padding: 2rem 1rem;
        min-height: 300px;
    }
    
    .clp-empty-state-icon {
        width: 64px;
        height: 64px;
    }
    
    .clp-empty-state-icon .mud-icon-root {
        font-size: 2rem;
    }
    
    .clp-empty-state-title {
        font-size: 1.25rem;
    }
    
    .clp-empty-state-description {
        font-size: 0.875rem;
    }
    
    .clp-empty-state-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .clp-empty-state-actions .mud-button-root {
        width: 100%;
    }
}

/* =============================================
   FAMILY COMPONENT STYLES
   Prefix: fm-
   ============================================= */

/* Family Group Card */
.fm-group-card {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1px solid #e9d5ff;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.fm-group-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9d5ff;
}

.fm-group-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-radius: 14px;
    color: white;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.fm-group-info {
    flex: 1;
}

.fm-group-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.fm-group-count {
    font-size: 0.875rem;
    color: #6b7280;
}

.fm-group-actions {
    display: flex;
    gap: 0.25rem;
}

/* Family Members Grid */
.fm-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.fm-member-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.fm-member-card:hover {
    border-color: #a855f7;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.15);
    transform: translateY(-2px);
}

.fm-member-card.current {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.fm-member-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    position: relative;
    overflow: hidden;
}

.fm-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-member-current-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.fm-member-current-badge .mud-icon-root {
    font-size: 0.875rem;
    color: white;
}

.fm-member-info {
    text-align: center;
}

.fm-member-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1f2937;
    margin-bottom: 0.125rem;
}

.fm-member-role {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
}

.fm-member-relationship {
    margin-top: 0.25rem;
}

.fm-member-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fm-member-card:hover .fm-member-actions {
    opacity: 1;
}

/* No Family Group Card */
.fm-no-group-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.fm-no-group-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 50%;
}

.fm-no-group-icon .mud-icon-root {
    font-size: 2.5rem;
    color: #64748b;
}

.fm-no-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.fm-no-group-desc {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Family List */
.fm-family-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fm-family-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.fm-family-item:hover {
    border-color: #ec4899;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1);
}

.fm-family-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.fm-family-details {
    flex: 1;
    min-width: 0;
}

.fm-family-name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1f2937;
    margin-bottom: 0.125rem;
}

.fm-family-relationship {
    display: block;
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.375rem;
}

.fm-family-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fm-contact-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #9ca3af;
}

.fm-contact-item .mud-icon-root {
    font-size: 0.875rem;
}

.fm-family-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fm-family-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fm-family-item:hover .fm-family-actions {
    opacity: 1;
}

/* Avatar Colors for Family */
.fm-avatar-pink { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.fm-avatar-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.fm-avatar-green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.fm-avatar-purple { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); }
.fm-avatar-orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.fm-avatar-teal { background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%); }

/* Family Groups List */
.fm-groups-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fm-group-list-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.fm-group-list-item:hover {
    border-color: #a855f7;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.1);
}

.fm-group-list-item.expanded {
    border-color: #a855f7;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.15);
}

.fm-group-list-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.fm-group-list-header:hover {
    background: #faf5ff;
}

.fm-group-list-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    flex-shrink: 0;
}

.fm-group-color-pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.fm-group-color-blue { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.fm-group-color-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.fm-group-color-purple { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); }
.fm-group-color-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
.fm-group-color-teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }

.fm-group-list-info {
    flex: 1;
    min-width: 0;
}

.fm-group-list-name {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.fm-group-list-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.fm-group-list-meta .mud-icon-root {
    font-size: 0.875rem;
}

.fm-group-list-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fm-group-list-item:hover .fm-group-list-actions {
    opacity: 1;
}

.fm-group-list-expand {
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.fm-group-list-item.expanded .fm-group-list-expand {
    color: #7c3aed;
}

/* Family Group Members (expanded) */
.fm-group-list-members {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-top: 1px solid #e9d5ff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fm-group-member-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9d5ff;
    transition: all 0.2s ease;
}

.fm-group-member-item:hover {
    border-color: #c4b5fd;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.1);
}

.fm-group-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.fm-group-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-group-member-info {
    flex: 1;
    min-width: 0;
}

.fm-group-member-name {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.fm-group-member-role {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
}

.fm-group-member-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fm-group-member-item:hover .fm-group-member-actions {
    opacity: 1;
}

/* Stats Grid */
.fm-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.fm-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.fm-stat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
}

.fm-stat-icon.purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
}

.fm-stat-icon.pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.fm-stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.fm-stat-info {
    display: flex;
    flex-direction: column;
}

.fm-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.fm-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* =============================================
   HOBBIES SECTION STYLES
   ============================================= */

/* Section Container Enhancements */
.fm-hobby-section {
    position: relative;
    overflow: hidden;
}

.fm-hobby-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.fm-pet-section {
    position: relative;
    overflow: hidden;
}

.fm-pet-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Section Icon Wrapper */
.fm-section-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    margin-right: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.fm-section-icon-wrapper.fm-hobby-theme {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.fm-section-icon-wrapper.fm-pet-theme {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

/* Section Count Badge */
.fm-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 12px;
    margin-left: 0.75rem;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

.fm-section-count.fm-pet-count {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}

/* Add Button Hover Enhancements */
.fm-add-btn-hover {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    gap: 0.375rem !important;
}

.fm-add-btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
    border-color: #f97316 !important;
    color: #ea580c !important;
}

.fm-add-btn-hover.fm-pet-btn:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border-color: #10b981 !important;
    color: #059669 !important;
}

/* Skill Chip Styling */
.fm-skill-chip {
    font-size: 0.6875rem !important;
    height: auto !important;
    padding: 0.125rem 0.5rem !important;
}

.fm-hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.fm-hobby-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.fm-hobby-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316 0%, #fb923c 50%, #fdba74 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fm-hobby-card:hover {
    border-color: #fdba74;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15);
    transform: translateY(-2px);
}

.fm-hobby-card:hover::before {
    opacity: 1;
}

.fm-hobby-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fm-hobby-card:hover .fm-hobby-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.fm-hobby-sports { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35); }
.fm-hobby-arts { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35); }
.fm-hobby-music { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35); }
.fm-hobby-reading { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35); }
.fm-hobby-gaming { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35); }
.fm-hobby-outdoor { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35); }
.fm-hobby-cooking { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35); }
.fm-hobby-travel { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35); }
.fm-hobby-tech { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35); }
.fm-hobby-other { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); box-shadow: 0 4px 12px rgba(107, 114, 128, 0.35); }

.fm-hobby-info {
    flex: 1;
    min-width: 0;
}

.fm-hobby-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.fm-hobby-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-weight: 500;
}

.fm-hobby-frequency {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #f97316;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid #fed7aa;
}

.fm-hobby-frequency .mud-icon-root {
    font-size: 0.875rem;
}

.fm-hobby-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.fm-hobby-actions {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.fm-hobby-card:hover .fm-hobby-actions {
    opacity: 1;
    transform: translateX(0);
}

.fm-hobby-actions .mud-icon-button {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
}

.fm-hobby-actions .mud-icon-button:hover {
    background: #f9fafb !important;
    border-color: #d1d5db !important;
}

/* =============================================
   PETS SECTION STYLES
   ============================================= */

.fm-pets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.fm-pet-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fffe 100%);
    border: 1px solid #d1fae5;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.fm-pet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fm-pet-card:hover {
    border-color: #6ee7b7;
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.18);
    transform: translateY(-3px);
}

.fm-pet-card:hover::before {
    opacity: 1;
}

.fm-pet-avatar {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.fm-pet-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.fm-pet-card:hover .fm-pet-avatar {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.fm-pet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-pet-avatar .mud-icon-root {
    font-size: 2rem;
}

.fm-pet-dog { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4); }
.fm-pet-cat { background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4); }
.fm-pet-bird { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4); }
.fm-pet-fish { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4); }
.fm-pet-rabbit { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4); }
.fm-pet-hamster { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
.fm-pet-reptile { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }
.fm-pet-other { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4); }

.fm-pet-info {
    flex: 1;
    min-width: 0;
}

.fm-pet-name {
    display: block;
    font-weight: 800;
    font-size: 1.125rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.fm-pet-type {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.fm-pet-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.fm-pet-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #374151;
    background: #f3f4f6;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.fm-pet-detail .mud-icon-root {
    font-size: 1rem;
    color: #6b7280;
}

.fm-pet-service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.fm-pet-actions {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.375rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.fm-pet-card:hover .fm-pet-actions {
    opacity: 1;
    transform: translateY(0);
}

.fm-pet-actions .mud-icon-button {
    background: white !important;
    border: 1px solid #d1fae5 !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.fm-pet-actions .mud-icon-button:hover {
    background: #f0fdf4 !important;
    border-color: #a7f3d0 !important;
}

/* Empty State Colors */
.crm-empty-state-box.orange {
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    border: 2px dashed #fb923c;
    border-radius: 20px;
}

.crm-empty-state-box.green {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    border: 2px dashed #34d399;
    border-radius: 20px;
}

/* =============================================
   HOBBY EDIT DIALOG STYLES
   Prefix: hed-
   ============================================= */

.hobby-edit-dialog {
    border-radius: 24px !important;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.hobby-edit-dialog .mud-dialog-content {
    padding: 0 !important;
}

.hobby-edit-dialog .mud-dialog-title {
    padding: 0 !important;
    margin: 0 !important;
}

.hobby-edit-dialog .mud-dialog-actions {
    padding: 0 !important;
}

.hed-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.hed-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hed-header-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    position: relative;
    z-index: 1;
}

.hed-header-icon .mud-icon-root {
    font-size: 1.75rem;
}

.hed-header-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hed-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.375rem 0;
    letter-spacing: -0.02em;
}

.hed-header-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.hed-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: #ffffff;
}

.hed-section {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.hed-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hed-label.hed-required::after {
    content: " *";
    color: #ef4444;
}

.hed-input, .hed-select {
    border-radius: 12px !important;
}

.hed-input .mud-input-outlined-border,
.hed-select .mud-input-outlined-border {
    border-radius: 12px !important;
}

.hed-select-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.hed-select-item .mud-icon-root {
    color: #f97316;
}

.hed-skill-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.hed-skill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hed-skill-item.beginner .hed-skill-dot { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); }
.hed-skill-item.intermediate .hed-skill-dot { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
.hed-skill-item.advanced .hed-skill-dot { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.hed-skill-item.expert .hed-skill-dot { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }

.hed-frequency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.hed-frequency-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
}

.hed-frequency-item .mud-icon-root {
    font-size: 1.5rem;
    transition: transform 0.25s ease;
}

.hed-frequency-item:hover {
    border-color: #fb923c;
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.hed-frequency-item:hover .mud-icon-root {
    transform: scale(1.1);
}

.hed-frequency-item.selected {
    border-color: #f97316;
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
    color: #ea580c;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25);
}

.hed-frequency-item.selected .mud-icon-root {
    color: #f97316;
}

.hed-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border-top: 1px solid #e5e7eb;
}

.hed-btn-cancel {
    border-radius: 12px !important;
    padding: 0.625rem 1.5rem !important;
    font-weight: 600 !important;
}

.hed-btn-submit {
    border-radius: 12px !important;
    padding: 0.625rem 1.75rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35) !important;
}

.hed-btn-cancel {
    border-radius: 10px !important;
}

.hed-btn-submit {
    border-radius: 10px !important;
    padding: 0.5rem 1.25rem !important;
}

/* =============================================
   PET EDIT DIALOG STYLES
   Prefix: ped-
   ============================================= */

.pet-edit-dialog {
    border-radius: 24px !important;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.pet-edit-dialog .mud-dialog-content {
    padding: 0 !important;
}

.pet-edit-dialog .mud-dialog-title {
    padding: 0 !important;
    margin: 0 !important;
}

.pet-edit-dialog .mud-dialog-actions {
    padding: 0 !important;
}

.ped-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.ped-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ped-header::after {
    content: '🐾';
    position: absolute;
    right: 2rem;
    bottom: 0.5rem;
    font-size: 3rem;
    opacity: 0.15;
    pointer-events: none;
}

.ped-header-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 18px;
    color: white;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    position: relative;
    z-index: 1;
}

.ped-header-icon .mud-icon-root {
    font-size: 1.875rem;
}

.ped-header-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ped-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 0.375rem 0;
    letter-spacing: -0.02em;
}

.ped-header-subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

.ped-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    background: #ffffff;
}

.ped-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ped-row {
    display: flex;
    gap: 1.25rem;
}

.ped-flex-1 {
    flex: 1;
}

.ped-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ped-label.ped-required::after {
    content: " *";
    color: #ef4444;
}

.ped-input, .ped-select {
    border-radius: 12px !important;
}

.ped-input .mud-input-outlined-border,
.ped-select .mud-input-outlined-border {
    border-radius: 12px !important;
}

.ped-pet-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.875rem;
}

.ped-pet-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 0.75rem;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
}

.ped-pet-type .mud-icon-root {
    transition: transform 0.3s ease;
}

.ped-pet-type:hover {
    border-color: #34d399;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.2);
}

.ped-pet-type:hover .mud-icon-root {
    transform: scale(1.15);
}

.ped-pet-type.selected {
    border-color: #10b981;
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.ped-pet-type.selected .ped-pet-type-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ped-pet-type-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ped-checkbox-card {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    transition: all 0.25s ease;
}

.ped-checkbox-card:hover {
    border-color: #60a5fa;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.ped-checkbox-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ped-checkbox-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.ped-checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ped-checkbox-title {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #1f2937;
}

.ped-checkbox-desc {
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

.ped-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border-top: 1px solid #e5e7eb;
}

.ped-btn-cancel {
    border-radius: 12px !important;
    padding: 0.625rem 1.5rem !important;
    font-weight: 600 !important;
}

.ped-btn-submit {
    border-radius: 12px !important;
    padding: 0.625rem 1.75rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
    transition: all 0.25s ease !important;
}

.ped-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4) !important;
}

/* Gender Selector for Pets */
.ped-gender-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.ped-gender-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

.ped-gender-item:hover {
    border-color: #a5b4fc;
    background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%);
}

.ped-gender-item.selected {
    border-color: #6366f1;
    background: linear-gradient(145deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.ped-gender-icon {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .fm-hobbies-grid {
        grid-template-columns: 1fr;
    }
    
    .fm-pets-grid {
        grid-template-columns: 1fr;
    }
    
    .fm-hobby-card {
        padding: 1rem;
    }
    
    .fm-pet-card {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .fm-pet-info {
        text-align: center;
    }
    
    .fm-pet-details {
        justify-content: center;
    }
    
    .fm-pet-actions {
        position: static;
        margin-top: 1rem;
    }
    
    .fm-section-icon-wrapper {
        width: 28px;
        height: 28px;
        margin-right: 0.5rem;
    }
    
    .fm-section-count {
        font-size: 0.6875rem;
        min-width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hed-frequency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ped-pet-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ped-gender-grid {
        grid-template-columns: 1fr;
    }
    
    .ped-row {
        flex-direction: column;
    }
    
    .ped-header::after {
        display: none;
    }
    
    .fm-hobby-icon {
        width: 44px;
        height: 44px;
    }
    
    .fm-hobby-name {
        font-size: 0.9375rem;
    }
    
    .fm-hobby-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
    
    .fm-pet-avatar {
        width: 64px;
        height: 64px;
    }
    
    .crm-empty-state-box.orange,
    .crm-empty-state-box.green {
        padding: 1.5rem 1rem;
    }
    
    .crm-empty-icon {
        width: 60px;
        height: 60px;
    }
    
    .crm-empty-title {
        font-size: 1rem;
    }
    
    .crm-empty-action {
        padding: 0.5rem 1.25rem;
        font-size: 0.8125rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .fm-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .fm-family-item {
        flex-wrap: wrap;
    }
    
    .fm-family-badges {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .fm-family-actions {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .fm-members-grid {
        grid-template-columns: 1fr;
    }
    
    .fm-group-header {
        flex-wrap: wrap;
    }
    
    .fm-group-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Avatar Colors */
.clp-avatar-pink { background: linear-gradient(135deg, #f093fb, #f5576c); }
.clp-avatar-blue { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.clp-avatar-green { background: linear-gradient(135deg, #11998e, #38ef7d); }
.clp-avatar-purple { background: linear-gradient(135deg, #667eea, #764ba2); }
.clp-avatar-orange { background: linear-gradient(135deg, #fa709a, #fee140); }

/* Settings */
.clp-settings-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; background: var(--mud-palette-surface); border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; padding: 0.5rem; }
.clp-settings-tab { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1rem; border: none; border-radius: 8px; background: transparent; color: var(--mud-palette-text-secondary); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; }
.clp-settings-tab:hover { background: var(--mud-palette-action-default-hover); color: var(--clp-primary); }
.clp-settings-tab.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); }

/* Category Types */
.clp-category-list { display: flex; flex-direction: column; gap: 0.75rem; }
.clp-category-card { 
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    background: var(--mud-palette-surface); 
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px; 
    padding: 1.25rem 1.5rem;
}
.clp-category-content {
    flex: 1;
    min-width: 0;
}
.clp-category-card h4 { 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--mud-palette-text-primary); 
    margin: 0 0 0.5rem; 
}
.clp-category-card p { 
    font-size: 0.875rem; 
    color: var(--mud-palette-text-secondary); 
    margin: 0;
    line-height: 1.5;
}
.clp-system-default-badge {
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    background: var(--mud-palette-background);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

/* Contact Types */
.clp-contact-types-list { display: flex; flex-direction: column; gap: 0.75rem; }
.clp-contact-type-card { 
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--mud-palette-surface); 
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px; 
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
}
.clp-contact-type-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}
.clp-contact-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.clp-contact-type-info {
    flex: 1;
    min-width: 0;
}
.clp-contact-type-info h4 { 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--mud-palette-text-primary); 
    margin: 0 0 0.25rem; 
}
.clp-contact-type-info p { 
    font-size: 0.875rem; 
    color: var(--mud-palette-text-secondary); 
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.clp-contact-type-count {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--mud-palette-background);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}
.clp-add-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px dashed var(--mud-palette-lines-default);
    border-radius: 10px;
    color: var(--mud-palette-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}
.clp-add-type-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}
.clp-field-meta {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
    margin: 0;
}

/* Custom Fields */
.clp-custom-fields-list { display: flex; flex-direction: column; gap: 0.75rem; }
.clp-custom-field-card { 
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--mud-palette-surface); 
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px; 
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}
.clp-custom-field-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}
.clp-custom-field-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.clp-custom-field-info {
    flex: 1;
    min-width: 0;
}
.clp-custom-field-info h4 { 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--mud-palette-text-primary); 
    margin: 0 0 0.25rem; 
}
.clp-custom-field-info p { 
    font-size: 0.8125rem; 
    color: var(--mud-palette-text-secondary); 
    margin: 0;
}
.clp-custom-field-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.clp-custom-field-card:hover .clp-custom-field-actions {
    opacity: 1;
}

/* Hover Actions */
.clp-hoverable {
    position: relative;
}
.clp-hover-actions {
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}
.clp-hoverable:hover .clp-hover-actions {
    opacity: 1;
}
.clp-hoverable:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

/* Lead Statuses */
.clp-lead-statuses-list { display: flex; flex-direction: column; gap: 0.75rem; }
.clp-lead-status-card { 
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--mud-palette-surface); 
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px; 
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
    cursor: grab;
}
.clp-lead-status-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}
.clp-lead-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.clp-lead-status-info {
    flex: 1;
    min-width: 0;
}
.clp-lead-status-info h4 { 
    font-size: 1rem; 
    font-weight: 600; 
    color: var(--mud-palette-text-primary); 
    margin: 0 0 0.125rem; 
}
.clp-lead-status-info p { 
    font-size: 0.875rem; 
    color: var(--mud-palette-text-secondary); 
    margin: 0;
}

/* General Settings */
.clp-general-settings { display: flex; flex-direction: column; gap: 2rem; }
.clp-settings-section { }
.clp-settings-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin: 0 0 1.25rem;
}
.clp-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
.clp-settings-row:last-child {
    border-bottom: none;
}
.clp-settings-row-info {
    flex: 1;
    min-width: 0;
}
.clp-settings-row-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin: 0 0 0.25rem;
}
.clp-settings-row-info p {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    margin: 0;
}
.clp-settings-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 8px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.clp-settings-select:hover {
    border-color: #667eea;
}
.clp-settings-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* Settings Cards Grid */
.clp-settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.clp-settings-card { 
    background: var(--mud-palette-surface); 
    border: 1px solid var(--mud-palette-lines-default); 
    border-radius: 12px; 
    padding: 1.25rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.clp-settings-card:hover { border-color: #667eea; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1); }
.clp-settings-card-header { display: flex; align-items: flex-start; gap: 1rem; }
.clp-settings-card-icon { 
    width: 44px; 
    height: 44px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
}
.clp-settings-card-content { flex: 1; min-width: 0; }
.clp-settings-card h4 { font-size: 1rem; font-weight: 600; color: var(--mud-palette-text-primary); margin: 0 0 0.25rem; }
.clp-settings-card p { font-size: 0.8125rem; color: var(--mud-palette-text-secondary); margin: 0; line-height: 1.5; }
.clp-settings-card-badge { 
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}
.clp-settings-card-badge.system { background: rgba(156, 163, 175, 0.1); color: #6b7280; }

/* Settings List Items */
.clp-settings-list { display: flex; flex-direction: column; gap: 0.75rem; }
.clp-settings-item { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    background: var(--mud-palette-surface); 
    border: 1px solid var(--mud-palette-lines-default); 
    border-radius: 10px; 
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}
.clp-settings-item:hover { border-color: #667eea; }
.clp-settings-item-left { display: flex; align-items: center; gap: 1rem; }
.clp-settings-item-color { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.clp-settings-item-info h5 { font-size: 0.9375rem; font-weight: 500; color: var(--mud-palette-text-primary); margin: 0 0 0.125rem; }
.clp-settings-item-info p { font-size: 0.8125rem; color: var(--mud-palette-text-secondary); margin: 0; }
.clp-settings-item-actions { display: flex; gap: 0.25rem; }

/* Settings Table */
.clp-settings-table { 
    width: 100%; 
    border-collapse: separate;
    border-spacing: 0;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    overflow: hidden;
}
.clp-settings-table thead { background: var(--mud-palette-background); }
.clp-settings-table th { 
    padding: 0.875rem 1.25rem; 
    text-align: left; 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mud-palette-text-secondary); 
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
.clp-settings-table td { 
    padding: 1rem 1.25rem; 
    font-size: 0.9375rem;
    color: var(--mud-palette-text-primary);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}
.clp-settings-table tr:last-child td { border-bottom: none; }
.clp-settings-table tr:hover td { background: var(--mud-palette-action-default-hover); }

/* Status Pipeline */
.clp-pipeline-list { display: flex; flex-direction: column; gap: 0.5rem; }
.clp-pipeline-item { 
    display: flex; 
    align-items: center; 
    gap: 1rem;
    background: var(--mud-palette-surface); 
    border: 1px solid var(--mud-palette-lines-default); 
    border-radius: 10px; 
    padding: 1rem 1.25rem;
    cursor: grab;
    transition: all 0.2s ease;
}
.clp-pipeline-item:hover { border-color: #667eea; box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1); }
.clp-pipeline-drag { color: var(--mud-palette-text-disabled); cursor: grab; }
.clp-pipeline-number { 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}
.clp-pipeline-content { flex: 1; }
.clp-pipeline-content h5 { font-size: 0.9375rem; font-weight: 500; color: var(--mud-palette-text-primary); margin: 0; }
.clp-pipeline-content span { font-size: 0.8125rem; color: var(--mud-palette-text-secondary); }

/* Contact Detail View Styles */
.clp-back-card { background: var(--mud-palette-surface); border-radius: 12px; padding: 1rem 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); }
.clp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.clp-back-btn:hover {
    border-color: #a5b4fc;
    color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

/* Profile Card */
.clp-profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 0 0 1px rgba(0,0,0,0.03),
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 16px 48px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.clp-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}
.clp-profile-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    pointer-events: none;
}
.clp-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}
.clp-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    flex-shrink: 0;
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.35),
        inset 0 2px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}
.clp-avatar-lg:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
}
.clp-upload-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.clp-upload-btn:hover {
    border-color: #a5b4fc;
    color: #6366f1;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}
.clp-profile-info {
    flex: 1;
    position: relative;
    z-index: 1;
}
.clp-profile-name {
    font-size: 1.625rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.375rem;
    letter-spacing: -0.03em;
}
.clp-profile-title {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0.875rem;
    font-weight: 500;
}
.clp-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}
.clp-profile-badge.lead {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
    color: #ea580c;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.15);
}
.clp-profile-badge.partner {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}
.clp-profile-badge.vendor {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    color: #db2777;
    box-shadow: 0 2px 6px rgba(219, 39, 119, 0.15);
}
.clp-profile-badge.vip {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #7c3aed;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.15);
}

/* Tab Navigation */
.clp-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.95) 100%);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    margin-bottom: 1.75rem;
    box-shadow: 
        0 0 0 1px rgba(0,0,0,0.03),
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 12px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255,255,255,0.8);
    overflow-x: auto;
    position: relative;
}
.clp-detail-tabs::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
    border-radius: 20px;
    pointer-events: none;
}
.clp-detail-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}
.clp-detail-tab-btn .mud-icon-root {
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.clp-detail-tab-btn:hover {
    background: rgba(99, 102, 241, 0.06);
    color: #6366f1;
}
.clp-detail-tab-btn:hover .mud-icon-root {
    transform: scale(1.15) rotate(-3deg);
    color: #6366f1;
}
.clp-detail-tab-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    box-shadow: 
        0 4px 14px rgba(99, 102, 241, 0.4),
        0 2px 6px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}
.clp-detail-tab-btn.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    border-radius: 14px;
    pointer-events: none;
}
.clp-detail-tab-btn.active .mud-icon-root {
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

/* Content Card */
.clp-content-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 24px;
    padding: 2rem 2.5rem 2.5rem;
    box-shadow: 
        0 0 0 1px rgba(0,0,0,0.03),
        0 4px 16px rgba(0, 0, 0, 0.04),
        0 16px 48px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
}
.clp-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 25%, #a855f7 50%, #ec4899 75%, #f43f5e 100%);
    background-size: 200% 100%;
    animation: clp-gradient-shift 8s ease-in-out infinite;
}
@keyframes clp-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.clp-content-card::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, transparent 100%);
    pointer-events: none;
}
.clp-content-title {
    display: none;
    align-items: center;
    gap: 0.875rem;
    z-index: 1;
}
.clp-content-title::before,
.clp-content-title::after {
    display: none;
}

/* Status Grid */
.clp-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    margin-bottom: 1.75rem;
    border: 1px solid #e2e8f0;
}
.clp-status-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}
.clp-status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #a5b4fc;
}
.clp-status-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.clp-status-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}
.clp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
}
.clp-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 0.25rem;
}
.clp-status-badge.not-connected {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
}
.clp-status-badge.not-connected::before { background: #dc2626; }
.clp-status-badge.connected {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #16a34a;
}
.clp-status-badge.connected::before { background: #16a34a; }
.clp-status-badge.pending {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
}
.clp-status-badge.pending::before { background: #d97706; }
.clp-actions-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.clp-actions-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.clp-actions-row {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}
.clp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.clp-action-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.clp-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}
.clp-action-btn.secondary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #475569;
    border: 1px solid #e2e8f0;
}
.clp-action-btn.secondary:hover {
    border-color: #a5b4fc;
    color: #6366f1;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

/* Form Sections */
.clp-form-section {
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.75rem 1.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.clp-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%);
    border-radius: 18px 0 0 18px;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.clp-form-section:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(99, 102, 241, 0.08),
        0 16px 48px rgba(0, 0, 0, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}
.clp-form-section:hover::before {
    transform: scaleY(1);
}
.clp-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
    letter-spacing: -0.02em;
}
.clp-form-section-title .mud-icon-root {
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 
        0 3px 10px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}
.clp-form-section:hover .clp-form-section-title .mud-icon-root {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.clp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.75rem;
}
.clp-form-grid.three-cols { grid-template-columns: repeat(3, 1fr); }
.clp-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.clp-form-group.full-width { grid-column: 1 / -1; }
.clp-form-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.clp-form-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.clp-form-value:hover {
    border-color: #a5b4fc;
    background: linear-gradient(135deg, #ffffff 0%, rgba(99, 102, 241, 0.02) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.clp-form-value.empty { color: #94a3b8; font-style: italic; }
.clp-form-value a { color: #6366f1; text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
.clp-form-value a:hover { color: #8b5cf6; }

/* Personal Information Sections */
.clp-pi-section-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
}
.clp-pi-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}
.clp-pi-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.clp-pi-section-title .mud-icon-root {
    color: #6b7280;
    font-size: 1.125rem;
}
.clp-pi-section-icon {
    display: none;
}
.clp-pi-grid {
    display: grid;
    gap: 1rem 1.5rem;
}
.clp-pi-grid-2 { grid-template-columns: repeat(2, 1fr); }
.clp-pi-grid-3 { grid-template-columns: repeat(3, 1fr); }
.clp-pi-grid-4 { grid-template-columns: repeat(4, 1fr); }
.clp-pi-grid-5 { grid-template-columns: repeat(5, 1fr); }
.clp-pi-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.clp-pi-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.clp-pi-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    line-height: 1.5;
}
.clp-pi-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.clp-pi-link:hover {
    color: #8b5cf6;
}
.clp-pi-link:hover::after {
    content: '→';
    margin-left: 0.25rem;
}
.clp-pi-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.625rem;
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.9),
        0 2px 6px rgba(0,0,0,0.1);
}
.clp-pi-grid-1 { grid-template-columns: 1fr; }
.clp-pi-input { width: 100%; }
.clp-pi-input .mud-input-outlined-border {
    border-radius: 12px !important;
    border-color: #e2e8f0 !important;
    transition: all 0.25s ease !important;
}
.clp-pi-input:hover .mud-input-outlined-border {
    border-color: #a5b4fc !important;
}
.clp-pi-input:focus-within .mud-input-outlined-border {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12) !important;
}
.clp-pi-input .mud-input-slot { 
    background: #fafbfc !important; 
    border-radius: 12px !important;
}
.clp-pi-action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.875rem;
    padding: 1.5rem 0 0 0;
    margin-top: 1.75rem;
    border-top: 1px solid #f1f5f9;
    position: relative;
    z-index: 1;
}
.clp-pi-action-buttons .mud-button-filled {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    box-shadow: 
        0 4px 14px rgba(99, 102, 241, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.15) !important;
    border-radius: 12px !important;
    transition: all 0.25s ease !important;
}
.clp-pi-action-buttons .mud-button-filled:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45) !important;
}
.clp-pi-action-buttons .mud-button-outlined {
    border-radius: 12px !important;
    border-color: #e2e8f0 !important;
    transition: all 0.25s ease !important;
}
.clp-pi-action-buttons .mud-button-outlined:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
.clp-upload-btn.secondary {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 10px;
    transition: all 0.25s ease;
}
.clp-upload-btn.secondary:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #ef4444;
    border-color: #fecaca;
}
.clp-edit-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.125rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.15);
    z-index: 10;
}
.clp-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}
.clp-edit-btn .mud-icon-root {
    transition: transform 0.3s ease;
}
.clp-edit-btn:hover .mud-icon-root {
    transform: rotate(-10deg);
}

/* Info Grid & Cards */
.clp-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
}
.clp-info-group {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e5e7eb;
}
.clp-info-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}
.clp-info-group h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #374151;
    text-transform: uppercase;
    margin: 0;
}
.clp-section-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    color: #6366f1;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.clp-section-edit-btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.clp-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}
.clp-info-row:hover {
    background: rgba(99, 102, 241, 0.03);
}
.clp-info-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.5rem;
    right: 0.5rem;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 20%, #e2e8f0 80%, transparent 100%);
}
.clp-info-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}
.clp-info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    text-align: right;
    max-width: 60%;
}

/* Lead Status Dropdown Styles */
.clp-lead-status-container { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--mud-palette-lines-default); }
.clp-lead-status-label { font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mud-palette-text-secondary); margin-bottom: 0.375rem; display: block; }
.clp-lead-status-select { width: 100%; padding: 0.5rem 2rem 0.5rem 0.75rem; font-size: 0.8125rem; font-weight: 600; border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; transition: all 0.2s ease; }
.clp-lead-status-select:hover { border-color: var(--clp-primary); }
.clp-lead-status-select:focus { outline: none; border-color: var(--clp-primary); box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15); }
.clp-lead-status-select.status-new { background-color: rgba(99, 102, 241, 0.1); border-color: #6366f1; color: #6366f1; }
.clp-lead-status-select.status-attempted { background-color: rgba(245, 158, 11, 0.1); border-color: #f59e0b; color: #d97706; }
.clp-lead-status-select.status-contacted { background-color: rgba(59, 130, 246, 0.1); border-color: #3b82f6; color: #2563eb; }
.clp-lead-status-select.status-qualified { background-color: rgba(34, 197, 94, 0.1); border-color: #22c55e; color: #16a34a; }
.clp-lead-status-select.status-unqualified { background-color: rgba(239, 68, 68, 0.1); border-color: #ef4444; color: #dc2626; }

/* Lead Status Badge */
.clp-lead-status-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem; font-size: 0.6875rem; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.clp-lead-status-badge.new { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.clp-lead-status-badge.attempted { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.clp-lead-status-badge.contacted { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.clp-lead-status-badge.qualified { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.clp-lead-status-badge.unqualified { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

/* Tasks Tab Styles */
.clp-task-filters { margin-bottom: 1.5rem; }
.clp-task-filter-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.clp-task-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.clp-task-filter-btn:hover { border-color: var(--mud-palette-primary); color: var(--mud-palette-primary); }
.clp-task-filter-btn.active { 
    background: var(--mud-palette-primary); 
    border-color: var(--mud-palette-primary); 
    color: white; 
}
.clp-task-filter-btn.active .clp-task-count { background: rgba(255,255,255,0.2); color: white; }
.clp-task-count {
    padding: 0.125rem 0.5rem;
    background: var(--mud-palette-background);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}
.clp-task-count-danger { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

.clp-task-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.clp-task-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
}
.clp-task-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clp-task-stat-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.clp-task-stat-icon.orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.clp-task-stat-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.clp-task-stat-icon.red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.clp-task-stat-info { display: flex; flex-direction: column; }
.clp-task-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--mud-palette-text-primary); }
.clp-task-stat-label { font-size: 0.8125rem; color: var(--mud-palette-text-secondary); }

.clp-task-list { display: flex; flex-direction: column; gap: 0.75rem; }
.clp-task-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    transition: all 0.2s ease;
}
.clp-task-item:hover { border-color: var(--mud-palette-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.clp-task-item.completed { opacity: 0.7; }
.clp-task-item.completed .clp-task-title { text-decoration: line-through; color: var(--mud-palette-text-secondary); }
.clp-task-item.overdue { border-left: 3px solid #ef4444; }
.clp-task-checkbox { padding-top: 0.125rem; }
.clp-task-content { flex: 1; min-width: 0; }
.clp-task-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.clp-task-title { font-size: 0.9375rem; font-weight: 600; color: var(--mud-palette-text-primary); }
.clp-task-priority {
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.clp-task-priority.priority-high { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.clp-task-priority.priority-medium { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.clp-task-priority.priority-low { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.clp-task-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.clp-task-meta span { display: flex; align-items: center; gap: 0.25rem; font-size: 0.8125rem; color: var(--mud-palette-text-secondary); }
.clp-task-meta .overdue { color: #ef4444; font-weight: 500; }
.clp-task-family-group { color: var(--mud-palette-primary) !important; }
.clp-task-recurring { 
    padding: 0.125rem 0.5rem; 
    background: rgba(var(--mud-palette-info-rgb), 0.1); 
    border-radius: 4px; 
    color: var(--mud-palette-info) !important;
    text-transform: capitalize;
}
.clp-task-description { 
    margin: 0.5rem 0 0; 
    font-size: 0.875rem; 
    color: var(--mud-palette-text-secondary); 
    line-height: 1.5;
}
.clp-task-actions { display: flex; gap: 0.25rem; opacity: 0; transition: opacity 0.2s ease; }
.clp-task-item:hover .clp-task-actions { opacity: 1; }

.clp-task-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--mud-palette-surface);
    border: 2px dashed var(--mud-palette-lines-default);
    border-radius: 12px;
    color: var(--mud-palette-text-secondary);
}
.clp-task-empty h4 { margin: 1rem 0 0.5rem; font-size: 1.125rem; color: var(--mud-palette-text-primary); }
.clp-task-empty p { margin: 0; font-size: 0.875rem; }

/* Responsive Styles */
@media (max-width: 1200px) {
    .clp-pi-grid-5 { grid-template-columns: repeat(3, 1fr); }
    .clp-pi-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
    .clp-stats-grid { grid-template-columns: 1fr 1fr; }
    .clp-charts-row { grid-template-columns: 1fr; }
}
@media (max-width: 992px) { 
    .clp-form-grid { grid-template-columns: repeat(2, 1fr); } 
    .clp-form-grid.three-cols { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 768px) {
    .clp-stats-grid { grid-template-columns: 1fr; }
    .clp-contacts-grid { grid-template-columns: 1fr; }
    .clp-contact-list-info { grid-template-columns: 1fr; gap: 0.5rem; }
    .clp-task-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .clp-task-filter-group { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
    .clp-profile-card { flex-direction: column; text-align: center; }
    .clp-status-grid { grid-template-columns: 1fr; }
    .clp-info-grid { grid-template-columns: 1fr; }
    .clp-form-grid { grid-template-columns: 1fr; }
    .clp-form-grid.three-cols { grid-template-columns: 1fr; }
    .clp-pi-grid-5, .clp-pi-grid-4, .clp-pi-grid-3, .clp-pi-grid-2, .clp-pi-grid-1 { grid-template-columns: 1fr; }
    .clp-pi-section-card { padding: 1rem 1.25rem; }
    .clp-pi-action-buttons { flex-direction: column; }
    .clp-pi-action-buttons button { width: 100%; }
}

/* =============================================
   ACTIVITY TIMELINE / FOLLOW-UP COMPONENT
   ============================================= */

/* Activity Toolbar */
.activity-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.activity-toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.activity-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Activity Search Bar */
.activity-search-bar {
    margin-bottom: 1rem;
}

.activity-search-bar .mud-input-control {
    background: var(--mud-palette-surface);
}

/* Activity Filter Panel */
.activity-filter-panel {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.activity-filter-row {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.activity-filter-row .mud-input-control {
    min-width: 160px;
}

/* Activity Loading */
.activity-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--mud-palette-text-secondary);
}

/* Activity Timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Date Group Header */
.activity-date-header {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 1rem;
}

.activity-date-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Activity Item */
.activity-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 1.5rem;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1.75rem;
    bottom: 0;
    width: 2px;
    background: var(--mud-palette-lines-default);
}

.activity-item:last-child::before {
    display: none;
}

/* Activity Item Header */
.activity-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.activity-type-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-type-icon {
    position: absolute;
    left: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-surface);
    border: 2px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-secondary);
    z-index: 1;
}

.activity-type-icon.email {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
    color: #2563eb;
}

.activity-type-icon.meeting {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #6ee7b7;
    color: #059669;
}

.activity-type-icon.call {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fcd34d;
    color: #d97706;
}

.activity-type-icon.note {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-color: #a5b4fc;
    color: #4f46e5;
}

.activity-type-icon.task {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #f9a8d4;
    color: #db2777;
}

.activity-type-icon.item.created,
.activity-type-icon[class*="item created"] {
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
    border-color: #5eead4;
    color: #0d9488;
}

.activity-type-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.activity-timestamp {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.activity-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-reminder-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: #FEF9C3;
    border: 1px solid #FDE047;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #854D0E;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.activity-reminder-badge:hover {
    background: #FEF08A;
    border-color: #FACC15;
    box-shadow: 0 2px 6px rgba(250, 204, 21, 0.2);
}

.activity-reminder-badge .mud-icon-root {
    color: #CA8A04;
    font-size: 0.875rem;
}

/* Past reminder styling */
.activity-reminder-badge.past {
    background: #FEE2E2;
    border-color: #FECACA;
    color: #991B1B;
}

.activity-reminder-badge.past .mud-icon-root {
    color: #DC2626;
}

/* Activity Card */
.activity-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.activity-card:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.activity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.activity-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.activity-avatar.purple { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.activity-avatar.blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.activity-avatar.green { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.activity-avatar.orange { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.activity-avatar.pink { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.activity-avatar.teal { background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%); }

.activity-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.activity-user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.activity-action-text {
    font-size: 0.9375rem;
    color: var(--mud-palette-text-secondary);
    font-weight: 400;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 0.5rem;
}

.activity-meta .mud-icon-root {
    font-size: 1rem;
    color: var(--mud-palette-text-disabled);
}

.activity-subject {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    margin-bottom: 0.5rem;
}

.activity-description {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.6;
    max-height: 3.2em;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.activity-description.expanded {
    max-height: none;
}

.activity-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--mud-palette-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.activity-show-more:hover {
    color: var(--mud-palette-primary-darken);
}

/* Activity Attachments */
.activity-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.activity-attachment {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--mud-palette-background);
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.activity-attachment:hover {
    background: var(--mud-palette-action-default-hover);
    color: var(--mud-palette-primary);
}

/* Activity Footer */
.activity-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.activity-reaction-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.activity-reaction-btn:hover {
    background: var(--mud-palette-action-default-hover);
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary);
}

.activity-reactions {
    display: flex;
    gap: 0.25rem;
}

.activity-reaction {
    font-size: 1rem;
    cursor: pointer;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.activity-reaction:hover {
    background: var(--mud-palette-action-default-hover);
}

.activity-delete-item {
    color: #ef4444 !important;
}

.activity-delete-item:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Activity Menu Items */
.activity-menu-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.25rem 0;
    min-width: 160px;
}

.activity-menu-item span {
    flex: 1;
    font-size: 0.875rem;
}

.activity-menu-item.has-submenu .submenu-arrow {
    color: var(--mud-palette-text-secondary);
    margin-left: auto;
}

.activity-menu-item .mud-icon-root {
    font-size: 1.125rem;
    color: var(--mud-palette-text-secondary);
}

.activity-delete-item .activity-menu-item .mud-icon-root {
    color: #ef4444;
}

/* Load More Button */
.activity-load-more {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

/* =============================================
   ACTIVITY COMMENT SECTION (Trello-style)
   ============================================= */

.activity-comment-section {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.activity-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--mud-palette-background-gray);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.activity-comment-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.activity-toggle-details {
    background: none;
    border: none;
    color: var(--mud-palette-text-secondary);
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.activity-toggle-details:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--mud-palette-primary);
}

.activity-comment-input-wrapper {
    padding: 0;
}

/* Rich Text Toolbar */
.activity-text-toolbar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: var(--mud-palette-surface);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    flex-wrap: wrap;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0.375rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 28px;
    height: 28px;
}

.toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--mud-palette-text-primary);
}

.toolbar-btn.active {
    background: var(--mud-palette-primary-lighten);
    color: var(--mud-palette-primary);
}

.toolbar-btn.font-btn {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.375rem 0.5rem;
}

.toolbar-btn.font-btn span {
    margin-right: 2px;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--mud-palette-lines-default);
    margin: 0 0.375rem;
}

.toolbar-spacer {
    flex: 1;
}

.toolbar-right {
    margin-left: auto;
}

/* Comment Textarea */
.activity-comment-textarea {
    padding: 0;
}

.activity-comment-textarea .mud-input-control {
    margin: 0;
}

.activity-comment-textarea .mud-input-slot {
    padding: 0.75rem 1rem !important;
}

.activity-comment-textarea .mud-input {
    font-size: 0.875rem;
    line-height: 1.5;
}

.activity-comment-textarea .mud-input::placeholder {
    color: var(--mud-palette-text-disabled);
}

.activity-comment-textarea textarea {
    resize: none;
    min-height: 60px;
}

/* Action Bar */
.activity-comment-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 1rem;
    background: var(--mud-palette-background-gray);
    border-top: 1px solid var(--mud-palette-lines-default);
}

.activity-comment-actions .mud-button-filled {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: none;
    padding: 0.375rem 1rem;
    min-height: 32px;
}

.activity-comment-actions .watch-checkbox {
    margin-left: 0;
}

.activity-comment-actions .watch-checkbox .mud-typography {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

/* Dark mode adjustments */
.mud-theme-dark .activity-comment-header {
    background: rgba(255, 255, 255, 0.03);
}

.mud-theme-dark .activity-text-toolbar {
    background: rgba(255, 255, 255, 0.02);
}

.mud-theme-dark .toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mud-theme-dark .activity-toggle-details:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mud-theme-dark .activity-comment-actions {
    background: rgba(255, 255, 255, 0.03);
}

/* Responsive */
@media (max-width: 768px) {
    .activity-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .activity-toolbar-left {
        justify-content: center;
    }
    
    .activity-toolbar-right {
        justify-content: center;
    }
    
    .activity-filter-row {
        flex-direction: column;
    }
    
    .activity-filter-row .mud-input-control {
        width: 100%;
    }
    
    .activity-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* =============================================
   CONTACT LIST SKELETON LOADING
   ============================================= */

/* Skeleton Animation */
@keyframes clp-skeleton-shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.clp-skeleton-pulse {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: clp-skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Grid Skeleton Card */
.clp-contact-card-skeleton {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.clp-skeleton-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clp-skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200px 100%;
    animation: clp-skeleton-shimmer 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.clp-skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.clp-skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200px 100%;
    animation: clp-skeleton-shimmer 1.5s ease-in-out infinite;
}

.clp-skeleton-line.w-70 { width: 70%; }
.clp-skeleton-line.w-60 { width: 60%; }
.clp-skeleton-line.w-50 { width: 50%; }
.clp-skeleton-line.w-40 { width: 40%; }
.clp-skeleton-line.w-30 { width: 30%; }

.clp-skeleton-details {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.25rem;
}

.clp-skeleton-detail {
    height: 16px;
    width: 85%;
    border-radius: 4px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200px 100%;
    animation: clp-skeleton-shimmer 1.5s ease-in-out infinite;
}

.clp-skeleton-detail:nth-child(2) { width: 70%; animation-delay: 0.1s; }
.clp-skeleton-detail:nth-child(3) { width: 60%; animation-delay: 0.2s; }

.clp-skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--mud-palette-lines-default);
    margin-top: 0.25rem;
}

.clp-skeleton-badge {
    width: 60px;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200px 100%;
    animation: clp-skeleton-shimmer 1.5s ease-in-out infinite;
}

/* List Skeleton Row */
.clp-contact-list-skeleton {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.clp-skeleton-list-info {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr 1fr;
    gap: 1rem;
    align-items: center;
}

@media (max-width: 768px) {
    .clp-skeleton-list-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Summary Tab Skeleton */
.clp-stat-card-skeleton {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.clp-skeleton-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200px 100%;
    animation: clp-skeleton-shimmer 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.clp-skeleton-stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Chart Skeleton */
.clp-chart-card-skeleton {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    overflow: hidden;
}

.clp-skeleton-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.clp-skeleton-chart-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.clp-skeleton-funnel-bar {
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200px 100%;
    animation: clp-skeleton-shimmer 1.5s ease-in-out infinite;
}

.clp-skeleton-funnel-bar:nth-child(1) { animation-delay: 0s; }
.clp-skeleton-funnel-bar:nth-child(2) { animation-delay: 0.1s; }
.clp-skeleton-funnel-bar:nth-child(3) { animation-delay: 0.2s; }
.clp-skeleton-funnel-bar:nth-child(4) { animation-delay: 0.3s; }
.clp-skeleton-funnel-bar:nth-child(5) { animation-delay: 0.4s; }

.clp-skeleton-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200px 100%;
    animation: clp-skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Source List Skeleton */
.clp-skeleton-source-list {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.clp-skeleton-source-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.clp-skeleton-source-item:last-child {
    border-bottom: none;
}

.clp-skeleton-source-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200px 100%;
    animation: clp-skeleton-shimmer 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.clp-skeleton-source-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Line Chart Skeleton */
.clp-skeleton-line-chart {
    height: 250px;
    margin: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 400px 100%;
    animation: clp-skeleton-shimmer 2s ease-in-out infinite;
}

/* Activity Skeleton */
.clp-skeleton-activity-list {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.clp-skeleton-activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.clp-skeleton-activity-item:last-child {
    border-bottom: none;
}

.clp-skeleton-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200px 100%;
    animation: clp-skeleton-shimmer 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.clp-skeleton-activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .clp-stats-grid .clp-stat-card-skeleton {
        padding: 1.25rem;
    }
    
    .clp-skeleton-stat-icon {
        width: 50px;
        height: 50px;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   INTERNATIONAL PHONE INPUT - PREMIUM DESIGN
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

/* Wrapper */
.intl-phone-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Floating Label */
.intl-phone-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9375rem;
    font-weight: 500;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    background: transparent;
    padding: 0 0.25rem;
}

.intl-phone-label.active {
    top: -0.625rem;
    left: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    background: linear-gradient(to bottom, transparent 50%, var(--mud-palette-surface, #fff) 50%);
}

.intl-phone-wrapper.error .intl-phone-label.active {
    color: #ef4444;
}

/* Main Input Container */
.intl-phone-input {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--mud-palette-surface, #fff);
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 52px;
}

.intl-phone-input::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through */
}

.intl-phone-wrapper.focused .intl-phone-input::before {
    opacity: 1;
}

.intl-phone-wrapper:hover:not(.disabled) .intl-phone-input {
    border-color: #c7d2fe;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
}

.intl-phone-wrapper.focused .intl-phone-input {
    border-color: #6366f1;
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.1),
        0 8px 32px rgba(99, 102, 241, 0.12);
}

.intl-phone-wrapper.dropdown-open .intl-phone-input {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.intl-phone-wrapper.error .intl-phone-input {
    border-color: #fca5a5;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.02) 0%, transparent 100%);
}

.intl-phone-wrapper.error.focused .intl-phone-input {
    border-color: #ef4444;
    box-shadow: 
        0 0 0 4px rgba(239, 68, 68, 0.1),
        0 8px 32px rgba(239, 68, 68, 0.12);
}

.intl-phone-wrapper.disabled .intl-phone-input {
    background: #f8fafc;
    border-color: #e2e8f0;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Country Selector */
.intl-phone-country-selector {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 0.625rem 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.intl-phone-country-selector:hover {
    background: rgba(99, 102, 241, 0.04);
}

.intl-phone-country-selector:active {
    background: rgba(99, 102, 241, 0.08);
}

.intl-phone-wrapper.disabled .intl-phone-country-selector {
    cursor: not-allowed;
    pointer-events: none;
}

/* Flag Wrapper */
.intl-phone-flag-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intl-phone-flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.intl-phone-country-selector:hover .intl-phone-flag-img {
    transform: scale(1.1);
}

/* Dial Code */
.intl-phone-dial-code {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary, #1e293b);
    min-width: 40px;
    letter-spacing: 0.01em;
}

/* Arrow */
.intl-phone-arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(148, 163, 184, 0.1);
    transition: all 0.2s ease;
}

.intl-phone-country-selector:hover .intl-phone-arrow-container {
    background: rgba(99, 102, 241, 0.12);
}

.intl-phone-arrow {
    color: #64748b;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.intl-phone-arrow.open {
    transform: rotate(180deg);
    color: #6366f1;
}

/* Separator */
.intl-phone-separator {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
    flex-shrink: 0;
    margin: 0 0.125rem;
}

/* Phone Number Input */
.intl-phone-number-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary, #1e293b);
    background: transparent;
    min-width: 0;
    letter-spacing: 0.02em;
}

.intl-phone-number-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.intl-phone-number-input:disabled {
    cursor: not-allowed;
}

/* Clear Button */
.intl-phone-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 0.75rem;
    border: none;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.intl-phone-clear:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.05);
}

.intl-phone-clear:active {
    transform: scale(0.95);
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   INTL PHONE DROPDOWN
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

.intl-phone-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--mud-palette-surface, #fff);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 999999;
    overflow: hidden;
    animation: intl-dropdown-enter 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
}

@keyframes intl-dropdown-enter {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Header */
.intl-phone-dropdown-header {
    position: relative;
    background: #fafafa;
    border-bottom: 1px solid #e2e8f0;
}

/* Search */
.intl-phone-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.intl-phone-search-icon {
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.intl-phone-search:focus-within .intl-phone-search-icon {
    color: #6366f1;
}

.intl-phone-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary, #1e293b);
    padding: 0;
}

.intl-phone-search input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.intl-phone-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 6px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.intl-phone-search-clear:hover {
    background: rgba(148, 163, 184, 0.25);
    color: #475569;
}

/* Country List */
.intl-phone-country-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
}

/* No Results */
.intl-phone-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 0.75rem;
    color: #94a3b8;
}

.intl-phone-no-results span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Country Item */
.intl-phone-country-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.intl-phone-country-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #6366f1;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.intl-phone-country-item:hover {
    background: #f8fafc;
}

.intl-phone-country-item:hover::before {
    transform: scaleY(1);
}

.intl-phone-country-item.selected {
    background: #eef2ff;
}

.intl-phone-country-item.selected::before {
    transform: scaleY(1);
}

.intl-phone-country-item:active {
    background: #e0e7ff;
}

/* Flag in Country List */
.intl-phone-list-flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Country Name */
.intl-phone-country-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dial Code */
.intl-phone-country-dial {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6366f1;
    flex-shrink: 0;
}

/* Check Mark */
.intl-phone-country-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #6366f1;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   INTL PHONE HELPER & ERROR TEXT
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

.intl-phone-helper {
    font-size: 0.8125rem;
    color: #64748b;
    margin-left: 0.25rem;
}

.intl-phone-error-text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #ef4444;
    margin-left: 0.25rem;
}

.intl-phone-error-text svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   INTL PHONE BACKDROP
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

.intl-phone-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999998;
    background: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   INTL PHONE SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

.intl-phone-country-list::-webkit-scrollbar {
    width: 8px;
}

.intl-phone-country-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
    margin: 4px 0;
}

.intl-phone-country-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c7d2fe 0%, #a5b4fc 100%);
    border-radius: 4px;
    border: 2px solid #f1f5f9;
}

.intl-phone-country-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a5b4fc 0%, #818cf8 100%);
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   INTL PHONE DARK MODE SUPPORT
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

.mud-theme-dark .intl-phone-input {
    border-color: #334155;
    background: #1e293b;
}

.mud-theme-dark .intl-phone-wrapper:hover:not(.disabled) .intl-phone-input {
    border-color: #4f46e5;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.mud-theme-dark .intl-phone-dial-code,
.mud-theme-dark .intl-phone-number-input {
    color: #f1f5f9;
}

.mud-theme-dark .intl-phone-number-input::placeholder {
    color: #64748b;
}

.mud-theme-dark .intl-phone-separator {
    background: linear-gradient(to bottom, transparent, #334155 20%, #334155 80%, transparent);
}

.mud-theme-dark .intl-phone-dropdown {
    background: #1e293b;
    border-color: #6366f1;
}

.mud-theme-dark .intl-phone-dropdown-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: #334155;
}

.mud-theme-dark .intl-phone-country-name {
    color: #f1f5f9;
}

.mud-theme-dark .intl-phone-country-flag {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.mud-theme-dark .intl-phone-country-list::-webkit-scrollbar-track {
    background: #1e293b;
}

.mud-theme-dark .intl-phone-country-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4f46e5 0%, #6366f1 100%);
    border-color: #1e293b;
}

.mud-theme-dark .intl-phone-label.active {
    background: linear-gradient(to bottom, transparent 50%, #1e293b 50%);
}

.mud-theme-dark .intl-phone-search input {
    color: #f1f5f9;
}

.mud-theme-dark .intl-phone-clear {
    background: rgba(148, 163, 184, 0.15);
}

.mud-theme-dark .intl-phone-search-clear {
    background: rgba(148, 163, 184, 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════════════════════════
   INTL PHONE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
    .intl-phone-input {
        min-height: 48px;
    }
    
    .intl-phone-flag {
        font-size: 1.25rem;
    }
    
    .intl-phone-dial-code {
        font-size: 0.875rem;
        min-width: 36px;
    }
    
    .intl-phone-number-input {
        font-size: 0.9375rem;
        padding: 0.75rem 0.875rem;
    }
    
    .intl-phone-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        max-height: 60vh;
        border: 2px solid #6366f1;
    }
    
    .intl-phone-country-list {
        max-height: calc(60vh - 80px);
    }
}

/* ============================================
   International Phone Display Component
   ============================================ */
.intl-phone-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--mud-palette-text-primary);
}

/* Flag */
.intl-phone-display-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.intl-phone-display-flag img,
.intl-phone-display-flag-img {
    width: 22px !important;
    max-width: 22px !important;
    height: 16px !important;
    max-height: 16px !important;
    object-fit: cover;
    display: block;
}

/* Dial Code */
.intl-phone-display-code {
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
}

/* Number */
.intl-phone-display-number {
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Copy Button */
.intl-phone-display-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.intl-phone-display:hover .intl-phone-display-copy {
    opacity: 1;
}

.intl-phone-display-copy:hover {
    background: #f1f5f9;
    color: #6366f1;
}

.intl-phone-display-copy .mud-icon-root {
    font-size: 0.875rem;
}

/* Size Variants */
.intl-phone-display-sm {
    font-size: 0.8125rem;
    gap: 0.375rem;
}

.intl-phone-display-sm .intl-phone-display-flag {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 13px !important;
    min-height: 13px !important;
    max-height: 13px !important;
}

.intl-phone-display-sm .intl-phone-display-flag img,
.intl-phone-display-sm .intl-phone-display-flag-img {
    width: 18px !important;
    max-width: 18px !important;
    height: 13px !important;
    max-height: 13px !important;
}

.intl-phone-display-sm .intl-phone-display-copy {
    width: 20px;
    height: 20px;
}

.intl-phone-display-lg {
    font-size: 1.125rem;
    gap: 0.625rem;
}

.intl-phone-display-lg .intl-phone-display-flag {
    width: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
}

.intl-phone-display-lg .intl-phone-display-flag img,
.intl-phone-display-lg .intl-phone-display-flag-img {
    width: 26px !important;
    max-width: 26px !important;
    height: 18px !important;
    max-height: 18px !important;
}

.intl-phone-display-lg .intl-phone-display-copy {
    width: 28px;
    height: 28px;
}

/* Chip Variant */
.intl-phone-display-chip {
    background: #f1f5f9;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.intl-phone-display-chip:hover {
    background: #e2e8f0;
}

.intl-phone-display-chip .intl-phone-display-copy {
    opacity: 1;
    margin-left: 0.25rem;
}

/* Badge Variant */
.intl-phone-display-badge {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    border: 1px solid #c7d2fe;
}

.intl-phone-display-badge .intl-phone-display-code {
    color: #6366f1;
}

.intl-phone-display-badge .intl-phone-display-number {
    color: #3730a3;
}

.intl-phone-display-badge .intl-phone-display-copy {
    opacity: 1;
}

.intl-phone-display-badge .intl-phone-display-copy:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* Inline Variant */
.intl-phone-display-inline {
    gap: 0.375rem;
}

.intl-phone-display-inline .intl-phone-display-flag {
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 12px !important;
    min-height: 12px !important;
    max-height: 12px !important;
}

.intl-phone-display-inline .intl-phone-display-flag img,
.intl-phone-display-inline .intl-phone-display-flag-img {
    width: 16px !important;
    max-width: 16px !important;
    height: 12px !important;
    max-height: 12px !important;
}

.intl-phone-display-inline .intl-phone-display-code {
    font-size: 0.8125rem;
}

.intl-phone-display-inline .intl-phone-display-number {
    font-size: 0.875rem;
}

/* Link-style when clickable */
a .intl-phone-display,
.intl-phone-display-clickable {
    cursor: pointer;
    transition: color 0.2s ease;
}

a .intl-phone-display:hover .intl-phone-display-number,
.intl-phone-display-clickable:hover .intl-phone-display-number {
    color: #6366f1;
    text-decoration: underline;
}

/* ========================================
   Family Edit Dialog Styles
   ======================================== */

/* Dialog Base */
.family-edit-dialog {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.family-edit-dialog .mud-dialog-title {
    padding: 0 !important;
}

.family-edit-dialog .mud-dialog-content {
    padding: 0 !important;
}

.family-edit-dialog .mud-dialog-actions {
    padding: 0 !important;
}

/* Hide default MudDialog close button */
.family-edit-dialog .mud-dialog-close-button {
    display: none !important;
}

/* Header */
.fed-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
    color: white;
}

.fed-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.fed-header-content {
    flex: 1;
}

.fed-header-close-btn {
    color: white !important;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
}

.fed-header-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2) !important;
}

.fed-header-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.fed-header-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    opacity: 0.85;
}

/* Body */
.fed-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 65vh;
    overflow-y: auto;
}

/* Option Tabs */
.fed-option-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.fed-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: 2px solid transparent;
}

.fed-tab:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
}

.fed-tab.fed-tab-active {
    background: white;
    color: #4f46e5;
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.fed-tab .mud-icon-root {
    font-size: 1.125rem;
}

/* Contact family badges */
.fed-contact-family.fed-has-family {
    color: #059669;
}

.fed-contact-family.fed-has-family .mud-icon-root {
    color: #10b981;
}

.fed-contact-family.fed-no-family {
    color: #6b7280;
}

/* My Role Section */
.fed-my-role-section {
    margin-top: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

/* Family Hint with Icon */
.fed-family-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fed-family-hint .mud-icon-root {
    color: #3b82f6;
    flex-shrink: 0;
}

/* Create Family Prompt (for contact without family) */
.fed-create-family-prompt {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.fed-create-family-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fed-create-family-icon .mud-icon-root {
    color: white;
}

.fed-create-family-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
}

.fed-create-family-content p {
    margin: 0;
    font-size: 0.8125rem;
    color: #3b82f6;
}

/* Roles Section */
.fed-roles-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #bfdbfe;
}

/* New Family Card (for Option 2) */
.fed-new-family-card {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    border: 2px solid #86efac;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(34, 197, 94, 0.1), 0 2px 4px -1px rgba(34, 197, 94, 0.06);
}

.fed-new-family-card .fed-card-header {
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-radius: 14px 14px 0 0;
}

.fed-new-family-card .fed-card-header .mud-icon-root {
    color: white;
}

.fed-new-family-card .fed-card-header span {
    color: white;
}

.fed-new-family-intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px dashed #86efac;
}

.fed-new-family-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fed-new-family-icon .mud-icon-root {
    color: white;
}

.fed-new-family-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #166534;
}

.fed-new-family-text p {
    margin: 0;
    font-size: 0.8125rem;
    color: #15803d;
}

.fed-new-family-card > .fed-section,
.fed-new-family-card > .fed-household-roles-section,
.fed-new-family-card > .fed-additional-members-section {
    padding: 0 1.25rem;
    margin: 1rem 0;
}

.fed-additional-members-hint {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}

/* Notes Section */
.fed-notes-section {
    margin-top: 0.5rem;
}

/* Section */
.fed-section {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.fed-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}

.fed-label.fed-required::after {
    content: " *";
    color: #ef4444;
}

/* Row layout */
.fed-row {
    display: flex;
    gap: 1rem;
}

.fed-flex-1 {
    flex: 1;
}

/* Cards */
.fed-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
}

.fed-card.fed-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.fed-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.fed-card-header .mud-icon-root {
    color: #6366f1;
}

.fed-marriage-card {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-color: #fbcfe8;
}

.fed-marriage-card .fed-card-header .mud-icon-root {
    color: #ec4899;
}

.fed-contact-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.fed-contact-card .fed-card-header .mud-icon-root {
    color: #3b82f6;
}

/* Marriage Section */
.fed-marriage-section {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border: 1px solid #fbcfe8;
    border-radius: 10px;
}

.fed-marriage-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #be185d;
    font-size: 0.875rem;
    margin-bottom: 0.875rem;
}

.fed-marriage-header .mud-icon-root {
    color: #ec4899;
}

/* Contact Option in Autocomplete */
.fed-contact-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.fed-contact-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.fed-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.fed-contact-name {
    font-weight: 500;
    color: #1f2937;
}

.fed-contact-family {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

.fed-contact-family .mud-icon-root {
    font-size: 0.875rem;
}

/* Family Members Section */
.fed-family-members-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #bfdbfe;
}

.fed-family-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e40af;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.fed-family-header .mud-icon-root {
    color: #3b82f6;
}

.fed-member-count {
    margin-left: auto;
    font-size: 0.6875rem !important;
    height: 22px !important;
}

.fed-family-hint {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 0.75rem 0;
}

.fed-members-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.fed-member-card {
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fed-member-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.fed-member-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.fed-member-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.fed-member-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.fed-member-role {
    font-size: 0.75rem;
    color: #6b7280;
}

.fed-member-relation-select {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fed-label-small {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.fed-select-group-sm {
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.fed-select-item-sm {
    padding-left: 0.625rem;
    font-size: 0.8125rem;
}

/* Member Marriage Details */
.fed-member-marriage-details {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border: 1px solid #fbcfe8;
    border-radius: 8px;
}

.fed-member-marriage-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    color: #be185d;
    font-size: 0.75rem;
    margin-bottom: 0.625rem;
}

.fed-member-marriage-header .mud-icon-root {
    color: #ec4899;
    font-size: 0.875rem;
}

.fed-input-small {
    background: white;
    font-size: 0.8125rem;
}

/* New Family Form */
.fed-new-family-form {
    margin-top: 0.875rem;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
}

.fed-additional-members-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #bfdbfe;
}

.fed-additional-members-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e40af;
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

.fed-additional-members-header .mud-icon-root {
    color: #3b82f6;
}

.fed-member-count-sm {
    margin-left: auto;
    font-size: 0.625rem !important;
    height: 18px !important;
}

.fed-new-members-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.fed-new-member-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.fed-select-small {
    background: white;
    font-size: 0.8125rem;
}

.fed-add-member-btn {
    border-radius: 6px !important;
    font-size: 0.8125rem !important;
}

/* No Family Section */
.fed-no-family-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #bfdbfe;
}

.fed-no-family-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fef3c7;
    border-radius: 8px;
    font-size: 0.8125rem;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.fed-no-family-message .mud-icon-root {
    color: #f59e0b;
}

.fed-create-family-option {
    padding: 0.5rem;
}

.fed-checkbox {
    margin: 0 !important;
}

/* Family Group Section in New Contact */
.fed-family-group-section {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #bbf7d0;
}

.fed-family-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #166534;
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
}

.fed-family-group-header .mud-icon-root {
    color: #22c55e;
}

.fed-optional-chip {
    margin-left: auto;
    font-size: 0.625rem !important;
    height: 18px !important;
    background: #e5e7eb !important;
    color: #6b7280 !important;
}

/* New Contact Card - Enhanced Styles */
.fed-new-contact-card {
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    border: 2px solid #6ee7b7;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1), 0 2px 4px -1px rgba(16, 185, 129, 0.06);
}

.fed-new-contact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
}

.fed-new-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.fed-new-contact-icon .mud-icon-root {
    color: white;
}

.fed-new-contact-title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.fed-new-contact-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.fed-new-contact-subtitle {
    font-size: 0.75rem;
    opacity: 0.85;
}

.fed-new-contact-form {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(to bottom, rgba(209, 250, 229, 0.3) 0%, rgba(167, 243, 208, 0.2) 100%);
}

.fed-new-contact-form > .fed-section,
.fed-new-contact-form > .fed-new-contact-section,
.fed-new-contact-form > .fed-new-contact-marriage-section,
.fed-new-contact-form > .fed-new-contact-family-section {
    display: block !important;
    visibility: visible !important;
}

.fed-new-contact-section {
    display: block;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #d1fae5;
    margin-top: 0;
}

.fed-new-contact-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #047857;
    font-size: 0.8125rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #d1fae5;
}

.fed-new-contact-section .fed-row {
    display: flex;
    gap: 1rem;
}

.fed-new-contact-section .fed-section {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.fed-new-contact-section-header .mud-icon-root {
    color: #10b981;
}

.fed-new-contact-section-header.fed-marriage-theme {
    color: #be185d;
    border-bottom-color: #fbcfe8;
}

.fed-new-contact-section-header.fed-marriage-theme .mud-icon-root {
    color: #ec4899;
}

.fed-new-contact-section-header.fed-family-theme {
    color: #1e40af;
    border-bottom-color: #bfdbfe;
}

.fed-new-contact-section-header.fed-family-theme .mud-icon-root {
    color: #3b82f6;
}

.fed-new-contact-section-header.fed-roles-theme {
    color: #7c3aed;
    border-bottom-color: #ddd6fe;
}

.fed-new-contact-section-header.fed-roles-theme .mud-icon-root {
    color: #8b5cf6;
}

/* Household Roles Section */
.fed-household-roles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.fed-role-checkbox {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border: 1px solid #e9d5ff;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    transition: all 0.2s ease;
}

.fed-role-checkbox:hover {
    border-color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.fed-role-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.fed-role-icon {
    flex-shrink: 0;
    padding: 0.375rem;
    border-radius: 8px;
    margin-top: 2px;
}

.fed-role-icon-head {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706 !important;
}

.fed-role-icon-primary {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb !important;
}

.fed-role-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.fed-role-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.fed-role-description {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.fed-new-contact-input {
    background: #f9fafb !important;
    border-radius: 8px;
}

.fed-new-contact-select {
    background: #f9fafb !important;
    border-radius: 8px;
}

.fed-new-contact-marriage-section {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border: 1px solid #fbcfe8;
    border-radius: 12px;
    padding: 1rem;
}

.fed-new-contact-family-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1rem;
}

.fed-new-contact-family-checkbox {
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.fed-checkbox-label {
    font-size: 0.875rem;
    color: #374151;
}

.fed-new-family-group-form {
    margin-top: 0.875rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
}

.fed-household-roles-section {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 10px;
    border: 1px solid #e9d5ff;
}

.fed-household-roles-section .fed-new-contact-section-header {
    margin-bottom: 0.75rem;
}

/* Family Group Card (Separate Section - Required) */
.fed-family-group-card {
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 0.75rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.fed-family-group-card .fed-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1e40af;
    font-size: 0.95rem;
}

.fed-family-group-card .fed-card-header .mud-icon-root {
    color: #3b82f6;
}

.fed-required-chip {
    margin-left: auto;
    font-size: 0.625rem !important;
    height: 18px !important;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #dc2626 !important;
    border: 1px solid #fca5a5 !important;
    font-weight: 600 !important;
}

.fed-family-group-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

.fed-family-group-hint .mud-icon-root {
    color: #3b82f6;
    flex-shrink: 0;
}

.fed-family-group-form {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #bfdbfe;
}

.fed-family-group-checkbox {
    padding: 0.625rem 0.875rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.75rem;
}

.fed-family-group-card.fed-family-required {
    border-color: #dc2626;
    background: linear-gradient(145deg, #fef2f2 0%, #fee2e2 50%, #fecaca 100%);
}

.fed-family-group-card.fed-family-required .fed-card-header {
    color: #991b1b;
}

.fed-family-group-card.fed-family-required .fed-card-header .mud-icon-root {
    color: #dc2626;
}

.fed-hint-required {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.fed-hint-required .mud-icon-root {
    color: #dc2626;
}

/* Family Group Autocomplete */
.fed-family-autocomplete {
    background: white;
}

.fed-family-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.25rem;
}

.fed-family-option-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    color: #3b82f6;
    flex-shrink: 0;
}

.fed-family-option-icon.fed-new-icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #10b981;
}

.fed-family-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.fed-family-option-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fed-family-option-members {
    font-size: 0.75rem;
    color: #6b7280;
}

.fed-family-option-hint {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 500;
}

.fed-family-new-option {
    border-top: 1px dashed #d1d5db;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

.fed-family-no-items {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: #6b7280;
    font-size: 0.8125rem;
}

.fed-new-family-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #047857;
    font-size: 0.8125rem;
}

.fed-new-family-indicator .mud-icon-root {
    color: #10b981;
}

.fed-existing-family-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1e40af;
    font-size: 0.8125rem;
}

.fed-existing-family-indicator .mud-icon-root {
    color: #3b82f6;
}

.fed-family-group-form .fed-section {
    margin-bottom: 1rem;
}

.fed-family-group-form .fed-section:last-child {
    margin-bottom: 0;
}

.fed-family-group-card .fed-household-roles-section {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 10px;
    border: 1px solid #e9d5ff;
}

/* Divider Section */
.fed-divider-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.fed-divider-line {
    flex: 1;
    height: 1px;
    background: #d1d5db;
}

.fed-divider-text {
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Select Groups */
.fed-select-group {
    font-weight: 600;
    color: #374151;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.fed-select-item {
    padding-left: 0.75rem;
}

/* Inputs */
.fed-input,
.fed-select {
    background: white;
}

.fed-textarea {
    background: white;
}

/* Footer */
.fed-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.fed-btn-cancel {
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
}

.fed-btn-submit {
    border-radius: 8px !important;
    padding: 0.5rem 1.5rem !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    gap: 0.5rem;
}

.fed-btn-submit:disabled {
    opacity: 0.6;
}

.fed-spinner {
    width: 18px !important;
    height: 18px !important;
    margin-right: 0.25rem;
}

/* Scrollbar */
.fed-body::-webkit-scrollbar {
    width: 6px;
}

.fed-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.fed-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.fed-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Family Edit Dialog Responsive */
@media (max-width: 640px) {
    .fed-row {
        flex-direction: column;
    }
    
    .fed-header {
        padding: 1rem;
    }
    
    .fed-header-icon {
        width: 40px;
        height: 40px;
    }
    
    .fed-header-title {
        font-size: 1.125rem;
    }
    
    .fed-body {
        padding: 1rem;
    }
    
    .fed-new-contact-header {
        padding: 0.875rem 1rem;
    }
    
    .fed-new-contact-icon {
        width: 36px;
        height: 36px;
    }
    
    .fed-new-contact-form {
        padding: 1rem;
    }
    
    .fed-footer {
        padding: 0.875rem 1rem;
        flex-direction: column-reverse;
    }
    
    .fed-btn-cancel,
    .fed-btn-submit {
        width: 100%;
        justify-content: center;
    }
}