/* AI Twin Chat - Modern Interface */

:root {
    /* Modern Color Palette */
    --primary: #6366f1;
    --primary-hover: #5855eb;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-sidebar: #fafbfc;
    --bg-chat: #ffffff;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --text-inverse: #ffffff;
    
    /* Border Colors */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-strong: #9ca3af;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}

/* App Background */
.app-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    z-index: -1;
}

/* Main App Container */
.app-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
}

/* Sidebar */
.sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Sidebar Header */
.sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.logo-text span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: var(--space-2);
}

.new-chat-btn, .group-chat-btn {
    flex: 1;
    background: var(--primary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.group-chat-btn {
    background: var(--secondary);
}

.new-chat-btn:hover, .group-chat-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.group-chat-btn:hover {
    background: var(--secondary-hover);
}

/* Twin Categories */
.twin-categories {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
}

.category-section {
    margin-bottom: var(--space-8);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    padding: var(--space-2) 0;
}

.category-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.category-icon.real {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.category-icon.fantasy {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary);
}

.category-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex: 1;
}

.count {
    background: var(--gray-200);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

/* Twin List */
.twin-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.twin-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    border: 1px solid transparent;
}

.twin-item:hover {
    background: var(--bg-primary);
    border-color: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.twin-item.selected {
    background: var(--bg-primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.twin-item.real-twin {
    border-left: 3px solid var(--primary);
}

.twin-item.fantasy-twin {
    border-left: 3px solid var(--secondary);
}

.twin-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.twin-avatar img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-primary);
}

.status-dot.online {
    background: var(--success);
}

.status-dot.offline {
    background: var(--error);
}

.twin-info {
    flex: 1;
    min-width: 0;
}

.twin-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twin-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.twin-badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    flex-shrink: 0;
}

.twin-badge.real {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.twin-badge.fantasy {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary);
}

.twin-badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* Chat Main Area */
.chat-main {
    display: flex;
    flex-direction: column;
    background: var(--bg-chat);
    overflow: hidden;
}

/* Chat Header */
.chat-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-twin-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.twin-avatar-large {
    position: relative;
    width: 50px;
    height: 50px;
}

.twin-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-primary);
}

.status-indicator.online {
    background: var(--success);
}

.twin-details h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.twin-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.twin-badges {
    display: flex;
    gap: var(--space-2);
}

.badge {
    font-size: 0.625rem;
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge.real {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.badge.fantasy {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary);
}

.badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.chat-actions {
    display: flex;
    gap: var(--space-2);
}

.action-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-2);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Welcome Screen */
.welcome-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.welcome-content {
    text-align: center;
    max-width: 600px;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.welcome-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.action-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    text-align: left;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.quick-action-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: left;
    font-size: 0.875rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.quick-action-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Message Styles */
.message {
    display: flex;
    gap: var(--space-3);
    max-width: 80%;
    animation: fadeInUp 0.3s ease-out;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.assistant {
    align-self: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}

.message-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    position: relative;
    max-width: 100%;
    min-width: 200px;
}

.message.user .message-content {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

.message-text {
    margin: 0;
    line-height: 1.7;
    word-wrap: break-word;
    font-size: 1rem;
    font-weight: 400;
}

.message-meta {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.message.user .message-meta {
    color: rgba(255, 255, 255, 0.7);
}

/* Chat Input */
.chat-input-container {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    padding: var(--space-4) var(--space-6);
    flex-shrink: 0;
}

.input-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.input-field {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: flex-end;
    gap: var(--space-3);
    transition: all var(--transition-fast);
}

.input-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-field textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 20px;
    max-height: 120px;
    font-family: inherit;
}

.input-field textarea::placeholder {
    color: var(--text-tertiary);
}

.input-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.attach-btn, .send-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.attach-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.send-btn {
    background: var(--primary);
    color: var(--text-inverse);
}

.send-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.typing-dots {
    display: flex;
    gap: var(--space-1);
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-tertiary);
    border-radius: var(--radius-full);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 280px 1fr;
    }
    
    .sidebar {
        padding: var(--space-4);
    }
}

@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        max-height: 200px;
        overflow-y: auto;
    }
    
    .twin-list {
        flex-direction: row;
        overflow-x: auto;
        gap: var(--space-2);
        padding-bottom: var(--space-2);
    }
    
    .twin-item {
        min-width: 200px;
        flex-shrink: 0;
    }
    
    .chat-header {
        padding: var(--space-3) var(--space-4);
    }
    
    .chat-messages {
        padding: var(--space-4);
    }
    
    .chat-input-container {
        padding: var(--space-3) var(--space-4);
    }
    
    .welcome-content h1 {
        font-size: 1.5rem;
    }
    
    .welcome-content p {
        font-size: 1rem;
    }
    
    .quick-actions {
        gap: var(--space-6);
    }
}

@media (max-width: 480px) {
    .sidebar-header {
        padding: var(--space-4);
    }
    
    .logo-text h1 {
        font-size: 1.125rem;
    }
    
    .message {
        max-width: 95%;
    }
    
    .input-field {
        padding: var(--space-2) var(--space-3);
    }
    
    .welcome-content {
        padding: var(--space-4);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-strong);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error States */
.error {
    color: var(--error);
}

/* Success States */
.success {
    color: var(--success);
}

/* ============================================================================
   HEALTH DATA STYLES
   ============================================================================ */

/* Health Button */
.health-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.health-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.health-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Health Modal */
.health-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.health-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

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

.health-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
}

.health-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

.health-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.health-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.health-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
    background: #ffffff;
}

/* Period Selector */
.health-period-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.period-btn {
    padding: 8px 20px;
    border: 1.5px solid #d1d5db;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #6b7280;
    transition: all 0.2s;
    min-width: 60px;
    text-align: center;
}

.period-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f5ff;
}

.period-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

/* Health Summary Content */
.health-summary-content {
    min-height: 200px;
}

.health-loading,
.health-error,
.health-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.health-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.health-empty h3 {
    margin: 16px 0 8px;
    color: var(--text-primary);
}

.health-hint {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* Health Metrics Grid */
.health-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.health-metric-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.health-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #6366f1;
}

.health-metric-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.health-metric-icon {
    font-size: 20px;
    line-height: 1;
}

.health-metric-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-metric-value-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
}

.health-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.health-metric-unit {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-left: 2px;
}

.health-metric-range {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    font-weight: 400;
}

/* Health Connections */
.health-connections {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.health-connections h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-connection-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.health-connection-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.health-connection-badge.google_fit {
    background: #4285f4;
    color: white;
}

.health-connection-badge.apple_health {
    background: #000000;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .health-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .health-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .health-modal-header h2 {
        font-size: 20px;
    }
}
}