/* Touch-friendly improvements for mobile profile page */
button, .btn, [role="button"], .auth-tab, .social-btn, .edit-btn-small, .delete-btn-small {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 32px; /* Minimum touch target */
    min-width: 32px;
}

button:active, .btn:active, [role="button"]:active, .auth-tab:active, .social-btn:active,
.edit-btn-small:active, .delete-btn-small:active {
    transform: scale(0.98);
}

/* Ensure form inputs are touch-friendly */
input, select, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Supplement Insights & AI Features */
.supplement-insights-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 12px;
    border: 1px solid #e1e8ff;
}

.supplement-insights-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.ai-insight-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #4a90e2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ai-insight-box:last-child {
    margin-bottom: 0;
}

.ai-insight-box .loading {
    color: #666;
    font-style: italic;
    font-size: 14px;
}

.effectiveness-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.effectiveness-stars {
    color: #ffa500;
    font-size: 18px;
}

.saturation-progress {
    background: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    margin: 10px 0;
    overflow: hidden;
}

.saturation-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #28a745);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.saturation-timeline {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Daily Tips Section */
.daily-tips-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e8 100%);
    border-radius: 12px;
    border: 1px solid #d4edda;
}

.daily-tips-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.daily-tip-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tip-content {
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
}

.tip-category {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Compact Biometric Data */
.biometric-data.compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.biometric-item.compact {
    padding: 8px 12px;
    font-size: 13px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.biometric-item.compact .metric-label {
    font-size: 11px;
    color: #666;
    display: block;
}

.biometric-item.compact .metric-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

/* Enhanced Supplement Cards with Goal Linking - Sidebar Version */
.supplement-item-enhanced {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 13px;
}

.supplement-item-enhanced:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.supplement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.supplement-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.supplement-goals-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 6px 0;
}

.goal-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 1px 4px;
    border-radius: 8px;
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 500;
}

.supplement-timing {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 6px;
    margin: 6px 0;
    font-size: 11px;
}

.timing-label {
    font-weight: 600;
    color: #856404;
    font-size: 10px;
}

.saturation-progress {
    background: #f0f0f0;
    border-radius: 6px;
    height: 6px;
    margin: 4px 0;
    overflow: hidden;
}

.saturation-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #28a745);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.saturation-timeline {
    font-size: 10px;
    color: #666;
    margin-top: 3px;
}

/* Profile-specific styles */
.profile-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 5px;
}

/* Authentication Modal */
.auth-modal-content {
    max-width: 450px;
    width: 90%;
    padding: 30px;
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #2ca9bc;
    border-bottom-color: #2ca9bc;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.social-auth {
    margin-bottom: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.google-btn {
    color: #333;
}

.facebook-btn {
    color: #1877F2;
}

.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
    color: #666;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2ca9bc;
}

.auth-submit-btn {
    width: 100%;
    background: #2ca9bc;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-submit-btn:hover {
    background: #238a9d;
}

.demo-credentials {
    margin: 10px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-align: center;
}

.demo-credentials p {
    margin: 0;
    color: #6c757d;
}

.demo-credentials strong {
    color: #2ca9bc;
}

/* Profile Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* New Sidebar Layout */
.dashboard-layout {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    align-items: flex-start;
    overflow-x: visible;
    min-width: fit-content;
}

.goals-sidebar {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.supplements-sidebar {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.goals-sidebar-content,
.supplements-sidebar-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.goals-sidebar-content {
    border-left: 4px solid #2ca9bc;
}

.supplements-sidebar-content {
    border-right: 4px solid #28a745;
}

.goals-sidebar h3,
.supplements-sidebar h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.goals-sidebar h3:before {
    content: "🎯";
    font-size: 20px;
}

.supplements-sidebar h3:before {
    content: "💊";
    font-size: 20px;
}

.goals-list,
.supplements-list {
    max-height: 400px;
    overflow-y: auto;
}

.goals-list .goal-item-compact,
.supplements-list .supplement-item-compact {
    margin-bottom: 8px;
    padding: 12px;
    background: #f8fffe;
    border: 1px solid #e8f4f8;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.goals-list .goal-item-compact:hover {
    background: #f0f9ff;
    border-color: #2ca9bc;
}

.supplements-list .supplement-item-compact:hover {
    background: #f0fdf4;
    border-color: #28a745;
}

.goals-list .goal-item-compact h4,
.supplements-list .supplement-item-compact h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.supplements-list .supplement-item-compact {
    position: relative;
}

.supplements-list .supplement-item-compact .supplement-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.supplements-list .supplement-item-compact .supplement-badge.explorer {
    background: #2ca9bc;
}

/* Small Edit/Delete Buttons for Supplement Cards */
.supplement-actions {
    display: flex;
    gap: 2px;
    margin-top: 6px;
    justify-content: flex-end;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.supplement-item-enhanced:hover .supplement-actions {
    opacity: 1;
}

.edit-btn-small,
.delete-btn-small {
    background: none;
    border: none;
    padding: 2px 3px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    opacity: 0.7;
}

.edit-btn-small {
    color: #6c757d;
}

.edit-btn-small:hover {
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
    opacity: 1;
}

.delete-btn-small {
    color: #6c757d;
}

.delete-btn-small:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    opacity: 1;
}

.edit-btn-small:active,
.delete-btn-small:active {
    transform: scale(0.9);
}

.goals-sidebar.goals-active,
.supplements-sidebar.supplements-active {
    animation: sidebarPulse 1s ease-in-out;
}

@keyframes sidebarPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 4px 20px rgba(44, 169, 188, 0.3); }
    100% { transform: scale(1); }
}

.compact-btn {
    font-size: 12px;
    padding: 8px 12px;
    margin-top: 15px;
}

.main-content {
    flex: 1.8;
    min-width: 0;
    max-width: 55%;
}

.main-content .dashboard-grid {
    margin-top: 0;
}

/* Health Dashboard Section - Prominent Cards at Top */
.health-dashboard-section {
    margin-bottom: 25px;
}

.dashboard-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.dashboard-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.dashboard-card .card-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.last-sync-mini {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 400;
}

/* Biometric Overview Card */
.biometric-overview-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.biometric-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.metric-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

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

.metric-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.metric-item .metric-label {
    font-size: 11px;
    color: #7f8c8d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-item .metric-value {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dashboard-sync-btn {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dashboard-sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dashboard-sync-btn:active {
    transform: translateY(0);
}

.connect-wearable-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.connect-wearable-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Goal Alignment Dashboard Card */
.goal-alignment-dashboard-card {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.goal-alignment-content {
    max-height: 300px;
    overflow-y: auto;
}

.goal-alignment-content .goal-item {
    padding: 15px;
    margin-bottom: 12px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.goal-alignment-content .goal-item:last-child {
    margin-bottom: 0;
}

.goal-alignment-content .goal-item h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.goal-alignment-content .alignment-score {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.goal-alignment-content .alignment-score.high {
    background: #d4edda;
    color: #155724;
}

.goal-alignment-content .alignment-score.medium {
    background: #fff3cd;
    color: #856404;
}

.goal-alignment-content .alignment-score.low {
    background: #f8d7da;
    color: #721c24;
}

.goal-alignment-content .biometric-status {
    padding: 12px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.goal-alignment-content .biometric-status.status-good {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.goal-alignment-content .biometric-status.status-needs-support {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.goal-alignment-content .missing-supplements {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #495057;
}

.goal-alignment-content .missing-supplements strong {
    color: #2c3e50;
}

.empty-state-mini {
    padding: 30px 20px;
    text-align: center;
    color: #7f8c8d;
}

.empty-state-mini p {
    margin: 0;
    font-size: 14px;
}

/* Responsive dashboard cards */
@media (max-width: 968px) {
    .dashboard-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Health Wealth Banner - Bank Account Style */
.health-wealth-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.health-wealth-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.wealth-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.wealth-score-container {
    flex: 1;
}

.wealth-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wealth-score {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wealth-trend {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.95;
}

.wealth-trend.positive {
    color: #4ade80;
}

.wealth-trend.neutral {
    color: rgba(255, 255, 255, 0.7);
}

.wealth-progress-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#health-wealth-chart {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
}

.wealth-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.wealth-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.wealth-stat .stat-icon {
    font-size: 28px;
}

.wealth-stat .stat-content {
    display: flex;
    flex-direction: column;
}

.wealth-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.wealth-stat .stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.daily-checkin-btn {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.daily-checkin-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.daily-checkin-btn:active:not(:disabled) {
    transform: translateY(0);
}

.daily-checkin-btn.checked-in {
    background: rgba(74, 222, 128, 0.3);
    border-color: rgba(74, 222, 128, 0.5);
    cursor: default;
}

.daily-checkin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Health Transactions Card */
.health-transactions-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.transactions-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.transaction-date {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.transaction-item.positive {
    border-left-color: #28a745;
}

.transaction-item.negative {
    border-left-color: #dc3545;
}

.transaction-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.transaction-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-desc {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.transaction-time {
    font-size: 12px;
    color: #7f8c8d;
}

.transaction-amount {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

.transaction-item.negative .transaction-amount {
    color: #dc3545;
}

/* Health Wealth Notifications */
.health-wealth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    font-size: 15px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.health-wealth-notification.show {
    transform: translateX(0);
}

.health-wealth-notification.success {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
}

.health-wealth-notification.achievement {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.health-wealth-notification.info {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
}

/* Health Wealth Rewards Catalog */
.rewards-catalog-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.rewards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.rewards-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
}

.conversion-rate {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.balance-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

.balance-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.balance-item.secondary {
    opacity: 0.9;
}

.balance-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    color: white;
    font-size: 28px;
    font-weight: 700;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.balance-dollar {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
}

.rewards-section {
    margin-bottom: 32px;
}

.rewards-section:last-child {
    margin-bottom: 0;
}

.rewards-section h5 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 700;
    padding-left: 4px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.reward-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateX(2px);
}

.reward-info {
    flex: 1;
    margin-right: 16px;
}

.reward-name {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.reward-description {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
}

.reward-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    white-space: nowrap;
}

.reward-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.reward-btn:active {
    transform: translateY(0);
}

.reward-cost {
    font-size: 16px;
    font-weight: 700;
}

.reward-value {
    font-size: 12px;
    opacity: 0.9;
}

/* Responsive rewards */
@media (max-width: 968px) {
    .balance-summary {
        grid-template-columns: 1fr;
    }

    .reward-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .reward-info {
        margin-right: 0;
    }

    .reward-btn {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* Responsive Health Wealth */
@media (max-width: 968px) {
    .health-wealth-banner {
        padding: 20px;
    }

    .wealth-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .wealth-score {
        font-size: 42px;
    }

    .wealth-stats {
        flex-direction: column;
        gap: 12px;
    }

    #health-wealth-chart {
        width: 100%;
    }
}

/* Responsive dashboard cards */
@media (max-width: 968px) {
    .dashboard-cards-grid {
        grid-template-columns: 1fr;
    }
}

.energy-section,
.profile-info-section,
.tracking-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.energy-section {
    grid-column: span 2;
}

.energy-section h3,
.profile-info-section h3,
.tracking-section h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-weight: 600;
}

/* Energy Body Visualization */
.energy-body-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.body-visualization {
    flex-shrink: 0;
}

.body-svg {
    width: 150px;
    height: 300px;
}

#energy-fill {
    transition: clip-path 0.5s ease;
}

.energy-controls {
    flex: 1;
    max-width: 300px;
}

.energy-controls label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: #333;
}

#energy-value {
    color: #2ca9bc;
    font-weight: 600;
}

.energy-slider {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #dc3545 0%, #ffc107 50%, #28a745 100%);
    outline: none;
    margin-bottom: 10px;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.energy-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ca9bc, #238a9d);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(44, 169, 188, 0.4);
    border: 2px solid white;
    transition: all 0.3s ease;
}

.energy-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(44, 169, 188, 0.6);
}

.energy-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

.energy-slider {
    -webkit-appearance: none;
    appearance: none;
}

.energy-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ca9bc, #238a9d);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(44, 169, 188, 0.4);
    transition: all 0.3s ease;
}

.energy-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(44, 169, 188, 0.6);
}

.energy-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* Profile Info */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.edit-btn,
.add-btn {
    background: #f8f9fa;
    color: #2ca9bc;
    border: 1px solid #2ca9bc;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.edit-btn:hover,
.add-btn:hover {
    background: #2ca9bc;
    color: white;
}

/* Tracking Sections */
.tracking-list {
    min-height: 100px;
}

.empty-state,
.add-supplement-area {
    text-align: center;
    color: #666;
    padding: 20px;
}

.empty-state p,
.add-supplement-area p {
    margin-bottom: 15px;
}

.tracking-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #2ca9bc;
}

.tracking-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.tracking-item-name {
    font-weight: 600;
    color: #2c3e50;
}

.tracking-item-actions {
    display: flex;
    gap: 5px;
}

.tracking-item-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.tracking-item-actions button:hover {
    background: #e9ecef;
}

.tracking-item-details {
    font-size: 14px;
    color: #666;
}

/* Profile Setup Form */
.profile-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.condition-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.condition-checkbox:hover {
    background: #f8f9fa;
}

.condition-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.profile-submit-btn {
    width: 100%;
    background: #2ca9bc;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.profile-submit-btn:hover {
    background: #238a9d;
}

/* Navigation Updates */
.logout-btn {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #dc3545;
    color: white;
}

/* Modal Updates */
.modal-submit-btn {
    background: #2ca9bc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-submit-btn:hover {
    background: #238a9d;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .goals-sidebar,
    .supplements-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }
    
    .main-content {
        max-width: 100%;
        flex: 1;
    }
    
    .goals-sidebar-content,
    .supplements-sidebar-content {
        border-left: none;
        border-right: none;
        border-top: 4px solid #2ca9bc;
        padding: 15px;
    }
    
    .supplements-sidebar-content {
        border-top-color: #28a745;
    }
    
    .goals-list,
    .supplements-list {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    /* Minimize header on mobile */
    header {
        padding: 8px 10px;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid #e9ecef;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .header-logo {
        width: 30px;
        height: 30px;
    }
    
    .header-text {
        display: none; /* Hide header text on mobile to save space */
    }
    
    .nav-buttons {
        flex-direction: row;
        gap: 5px;
        flex-wrap: wrap;
    }
    
    .nav-button {
        padding: 6px 10px;
        font-size: 0.8em;
        min-width: auto;
        white-space: nowrap;
    }
    
    /* Dashboard grid improvements - maximize space */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 5px;
        margin-top: 10px;
    }
    
    /* Profile main container - remove unnecessary padding */
    .profile-main {
        padding: 5px;
        margin-top: 0;
    }
    
    .energy-section {
        grid-column: span 1;
        padding: 15px;
    }
    
    .energy-body-container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Form improvements */
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .conditions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Input improvements */
    input, select, textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Button improvements */
    button {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px; /* Touch-friendly minimum */
    }
    
    /* Modal improvements */
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: none;
        border-radius: 8px;
    }
    
    .auth-modal-content {
        padding: 20px;
    }
    
    /* Sidebar improvements */
    .dashboard-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .goals-sidebar,
    .supplements-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    
    .main-dashboard {
        width: 100%;
    }
    
    /* Enhanced mobile navigation */
    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Modal improvements for mobile */
    .modal-content {
        width: 95%;
        max-width: 500px;
        margin: 20px auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Form improvements */
    .tracking-section {
        margin-bottom: 20px;
    }
    
    /* SVG body visualization mobile friendly */
    .body-visualization {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .energy-controls {
        width: 100%;
        margin-top: 15px;
    }
    
    /* Supplement cards mobile */
    .supplement-item-enhanced {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .edit-btn-small,
    .delete-btn-small {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    /* Ultra-compact header for smallest screens */
    header {
        padding: 5px;
        min-height: 40px;
    }
    
    .header-logo {
        width: 25px;
        height: 25px;
    }
    
    .nav-button {
        padding: 4px 8px;
        font-size: 0.75em;
        border-radius: 4px;
    }
    
    .dashboard-grid {
        padding: 0 5px;
        gap: 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    .card h3 {
        font-size: 1.1em;
    }
    
    input, select, textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }

    button {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px; /* Touch target size */
        border-radius: 8px;
    }

    .modal-content {
        margin: 2% auto;
        width: 98%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .auth-modal-content {
        padding: 15px;
    }

    .auth-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Enhanced mobile optimizations */
    .profile-form {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Energy section mobile */
    .energy-section {
        padding: 15px 10px;
    }
    
    .body-svg {
        max-width: 150px;
        height: auto;
    }
    
    .energy-controls {
        width: 100%;
        margin-top: 15px;
    }
    
    /* Sidebar content mobile */
    .goals-sidebar-content,
    .supplements-sidebar-content {
        padding: 12px;
        border-radius: 8px;
    }
    
    /* Goals grid mobile */
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .goal-card {
        padding: 12px;
    }
    
    /* Supplement items mobile */
    .supplement-item-enhanced {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .edit-btn-small,
    .delete-btn-small {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 32px;
    }
    
    /* Info items mobile */
    .info-label {
        font-size: 13px;
    }
    
    .info-value {
        font-size: 14px;
        font-weight: 600;
    }
    
    /* Profile info grid mobile */
    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .social-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* Animation for energy fill */
@keyframes energyPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes lowEnergyPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

@keyframes mediumEnergyGlow {
    0%, 100% { opacity: 0.7; filter: brightness(1); }
    50% { opacity: 0.9; filter: brightness(1.1); }
}

#energy-fill.high-energy {
    animation: energyPulse 2s infinite;
    filter: brightness(1.2) saturate(1.3);
}

#energy-fill.medium-energy {
    animation: mediumEnergyGlow 3s infinite;
    filter: brightness(1.1) saturate(1.1);
}

#energy-fill.low-energy {
    animation: lowEnergyPulse 4s infinite;
    filter: brightness(0.8) saturate(0.8);
}

/* Enhanced energy slider styling */
.energy-slider {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #dc3545 0%, #ffc107 50%, #28a745 100%);
    outline: none;
    margin-bottom: 10px;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.energy-slider:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transform: translateY(-1px);
}

/* Energy Confirmation Section */
.energy-confirmation {
    margin-top: 15px;
    text-align: center;
}

.confirm-energy-btn {
    background: linear-gradient(135deg, #2ca9bc, #238a9d);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(44, 169, 188, 0.3);
    min-width: 180px;
}

.confirm-energy-btn:hover {
    background: linear-gradient(135deg, #238a9d, #1f7a8a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 169, 188, 0.4);
}

.confirm-energy-btn:active {
    transform: translateY(0);
}

.confirm-energy-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.energy-status {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.energy-status.confirmed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.energy-status.saved {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b3d9ff;
}

/* Energy Recommendations */
.energy-recommendations {
    margin-top: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border: 1px solid #e1e8ff;
    border-radius: 12px;
    padding: 15px;
    animation: fadeInUp 0.5s ease;
}

.energy-rec-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.energy-rec-icon {
    font-size: 18px;
}

.energy-rec-content {
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
}

/* Energy Summary Section */
.energy-summary {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    border-left: 4px solid #2ca9bc;
}

/* Expandable Toggle Button */
.energy-detailed-toggle {
    text-align: center;
    margin-bottom: 15px;
}

.energy-expand-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto;
    min-width: 160px;
    justify-content: center;
}

.energy-expand-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.energy-expand-btn .collapse-text {
    display: none;
}

.energy-expand-btn.expanded .expand-text {
    display: none;
}

.energy-expand-btn.expanded .collapse-text {
    display: inline;
}

.energy-expand-btn .toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 10px;
}

.energy-expand-btn.expanded .toggle-arrow {
    transform: rotate(180deg);
}

/* Detailed Analysis Section */
.energy-detailed-analysis {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.energy-detailed-analysis.expanded {
    max-height: 1000px;
    opacity: 1;
}

/* Practical Recommendations Layout */
.energy-practical-recs {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ff;
}

.energy-rec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .energy-rec-row {
        grid-template-columns: 1fr;
    }
}

.energy-rec-section {
    margin-bottom: 15px;
}

.energy-rec-section.compact {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 0;
}

.energy-rec-section:last-child {
    margin-bottom: 0;
}

.energy-rec-section h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sleep section styling */
.energy-rec-section h4:contains("😴") {
    color: #6f42c1;
    background: rgba(111, 66, 193, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Wearable section styling */
.energy-rec-section h4:contains("⌚") {
    color: #17a2b8;
    background: rgba(23, 162, 184, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Readiness section styling */
.energy-rec-section h4:contains("🎯") {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.energy-rec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.energy-rec-list li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    font-size: 13px;
    line-height: 1.4;
}

.energy-rec-list li:before {
    content: "•";
    color: #2ca9bc;
    position: absolute;
    left: 8px;
    font-weight: bold;
}

.energy-rec-list li.more-items {
    font-style: italic;
    color: #6c757d;
    font-size: 12px;
}

.energy-rec-list li.more-items:before {
    content: "⋯";
}

/* Sleep-specific list items */
.energy-rec-section:has(h4:contains("😴")) .energy-rec-list li:before {
    content: "🌙";
    font-size: 12px;
}

/* Wearable-specific list items */
.energy-rec-section:has(h4:contains("⌚")) .energy-rec-list li:before {
    content: "📊";
    font-size: 12px;
}

/* Readiness-specific list items */
.energy-rec-section:has(h4:contains("🎯")) .energy-rec-list li:before {
    content: "⚡";
    font-size: 12px;
}

.energy-boost-tip {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 13px;
}

.energy-maintain-tip {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 13px;
}

.energy-warning-tip {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 13px;
}

/* Animation for recommendations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI Review Modal Styles */
.ai-review-modal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ai-review-modal h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.ai-review-modal .modal-header {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 20px -20px;
}

.dosage-optimization-card {
    margin: 10px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #ffc107;
    transition: all 0.2s ease;
}

.dosage-optimization-card.high-priority {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.dosage-optimization-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timing-recommendation-card {
    margin: 10px 0;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 3px solid #2196f3;
}

.progress-analysis-card {
    margin: 10px 0;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 3px solid #22c55e;
}

.goal-alignment-card {
    margin: 10px 0;
    padding: 12px;
    background: #fef7ff;
    border-radius: 8px;
    border-left: 3px solid #a855f7;
}

.safety-consideration-card {
    margin: 10px 0;
    padding: 12px;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
}

.long-term-recommendation-card {
    margin: 10px 0;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 3px solid #0ea5e9;
}

.ai-review-summary {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.priority-actions-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.priority-actions-section h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.action-item {
    margin: 5px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.action-item.high-urgency {
    border-left: 3px solid #dc3545;
}

/* Enhanced dosage warning styles */
.dosage-warning {
    font-size: 10px;
    margin-top: 2px;
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
}

.dosage-warning.severely-low {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.dosage-warning.low {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.dosage-warning.too-high {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.dosage-warning.unclear {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

/* Success/Error Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
}

/* Health Goals Modal Styles */
.goals-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.goals-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.goal-checkbox {
    cursor: pointer;
    display: block;
}

.goal-checkbox input[type="checkbox"] {
    display: none;
}

.goal-card {
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.goal-card h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.goal-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    flex-grow: 1;
}

.goal-checkbox input[type="checkbox"]:checked + .goal-card {
    border-color: #2ca9bc;
    background: #f0f9fb;
    box-shadow: 0 2px 8px rgba(44, 169, 188, 0.15);
}

.goal-checkbox:hover .goal-card {
    border-color: #2ca9bc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.goals-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background: #5a6268;
}

/* Interaction Analysis Styles */
.interaction-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.interaction-summary {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #2ca9bc;
}

.interaction-summary h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
}

.interaction-summary p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.interaction-details {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}

.interaction-item {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #28a745;
}

.interaction-item.negative {
    border-left-color: #dc3545;
}

.interaction-item.safety {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.interaction-item h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.interaction-item p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.interaction-supplements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.supplement-tag {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.interaction-recommendations {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.interaction-recommendations h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.recommendation-item {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #17a2b8;
}

.recommendation-item.high-priority {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.recommendation-item.medium-priority {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.recommendation-item h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.recommendation-item ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.recommendation-item li {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.goal-alignment {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
}

.goal-alignment h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.goal-item {
    margin-bottom: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #28a745;
}

.goal-item h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.alignment-score {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.alignment-score.low {
    background: #dc3545;
}

.alignment-score.medium {
    background: #ffc107;
    color: #212529;
}

.missing-supplements {
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.missing-supplements strong {
    color: #2c3e50;
}

.refresh-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.refresh-btn:hover {
    background: #138496;
}

/* Diet Modal Specific Styles */
.diet-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
}

.diet-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    text-align: center;
}

.diet-setup {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.diet-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #28a745;
}

.diet-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Dietary Preferences */
.diet-preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.diet-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.diet-checkbox:hover {
    border-color: #28a745;
    background: #f0fdf4;
}

.diet-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #28a745;
}

.diet-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

/* Meal Frequency */
.meal-frequency-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meal-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.meal-option:hover {
    border-color: #28a745;
    background: #f0fdf4;
}

.meal-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #28a745;
}

.meal-option input[type="radio"] {
    margin-right: 10px;
    width: auto;
}

/* Food Groups */
.food-intake-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.food-group {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.food-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.food-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.food-group select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

/* Hydration */
.hydration-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hydration-info .form-group {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

/* Meal Timing */
.meal-timing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.meal-time {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.meal-time label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
}

.meal-time input[type="time"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.meal-time input[type="time"]:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

/* Additional Information */
.additional-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.additional-info .form-group {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.additional-info .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.additional-info select,
.additional-info textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.additional-info select:focus,
.additional-info textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.additional-info textarea {
    min-height: 60px;
    line-height: 1.4;
}

/* Diet Actions */
.diet-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

/* Diet Plan Display Styles */
.diet-plan-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.diet-detail-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #28a745;
}

.diet-detail-section h5 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.diet-detail-section p {
    margin: 8px 0;
    color: #555;
    line-height: 1.5;
}

.food-intake-summary,
.hydration-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.food-item,
.hydration-item {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #2c3e50;
    border: 1px solid #e1e8ed;
    display: inline-block;
}

.diet-plan-summary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.diet-plan-summary h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.diet-plan-summary .last-updated {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Diet Modal Responsive Design */
@media (max-width: 768px) {
    .diet-modal-content {
        padding: 20px;
        margin: 5% auto;
    }
    
    .meal-count-buttons {
        justify-content: center;
    }
    
    .supplement-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .diet-actions {
        flex-direction: column;
    }
}

/* Supplement Details Modal Styles */
.supplement-details-content {
    max-width: 500px;
    width: 90%;
    padding: 30px;
}

.supplement-details-body {
    margin: 20px 0;
}

.supplement-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.info-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #28a745;
}

.info-section h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-section p {
    margin: 0;
    color: #495057;
    font-size: 16px;
    font-weight: 500;
}

.supplement-source-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #2ca9bc, #238a9d);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
}

.badge-icon {
    font-size: 18px;
}

.supplement-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.delete-btn-modal {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.delete-btn-modal:hover {
    background: #c82333;
}

/* Diet Plan Display Styles */
.diet-plan-summary {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.diet-plan-summary h4 {
    margin: 0 0 5px 0;
    color: white;
}

.last-updated {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.meal-plan-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.meal-plan-item {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.meal-plan-item:hover {
    border-color: #17a2b8;
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.1);
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.meal-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.meal-time {
    background: #17a2b8;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.meal-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meal-supplements,
.meal-content-display {
    font-size: 14px;
    line-height: 1.4;
}

.meal-supplements strong,
.meal-content-display strong {
    color: #495057;
}

/* Responsive design for meal plan */
@media (max-width: 768px) {
    .meal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .meal-time {
        align-self: flex-start;
    }
}

/* Footer Styles */
.app-footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 3px solid #28a745;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-branding {
    flex: 1;
}

.footer-branding p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-branding strong {
    color: #28a745;
    font-weight: 600;
}

.ai-badge {
    color: #a8e6cf;
    font-size: 13px;
    font-weight: 500;
}

.footer-legal {
    flex: 1;
    text-align: right;
}

.footer-legal p {
    margin: 0;
    font-size: 12px;
    color: #bdc3c7;
    opacity: 0.9;
}

/* Responsive Footer */
@media (max-width: 768px) {
    /* Hide footer completely on mobile to maximize dashboard space */
    .app-footer {
        display: none;
    }
}

/* Biometric Data Section */
.biometric-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.biometric-section h3 {
    margin: 0 0 20px 0;
    font-size: 1.4em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.biometric-source {
    font-size: 0.7em;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.biometric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.biometric-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.biometric-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.biometric-icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

.biometric-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1;
}

.biometric-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.biometric-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sync-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8em;
}

.status-indicator {
    font-size: 1em;
}

.status-text {
    color: rgba(255, 255, 255, 0.8);
}

.connect-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    font-weight: 500;
    margin-left: 5px;
}

.connect-link:hover {
    color: white;
    text-decoration: none;
}

.sync-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sync-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.sync-btn:active {
    transform: translateY(0);
}

.last-sync {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

/* Data Source Indicator */
#profile-data-source {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85em;
}

#profile-data-source[data-source="fitbit"] {
    background: #00d4aa;
    color: white;
}

#profile-data-source[data-source="garmin"] {
    background: #007cc3;
    color: white;
}

#profile-data-source[data-source="apple_health"] {
    background: #ff6b6b;
    color: white;
}

#profile-data-source[data-source="manual"] {
    background: #95a5a6;
    color: white;
}

/* Responsive Biometric Section */
@media (max-width: 768px) {
    .biometric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .biometric-card {
        padding: 15px;
    }
    
    .biometric-value {
        font-size: 1.5em;
    }
    
    .biometric-actions {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .biometric-grid {
        grid-template-columns: 1fr;
    }
    
    .biometric-section {
        padding: 20px 15px;
    }
}

/* Wearable Connect Button Styling */
.wearable-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    background: linear-gradient(135deg, #5a73e8 0%, #6b4aa0 100%) !important;
}

.wearable-connect-btn:active {
    transform: translateY(0);
}

.profile-options {
    transition: all 0.3s ease;
}

.profile-options:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Interaction Analysis Section */
.interaction-analysis-section {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff2cc 100%);
    border-radius: 12px;
    border: 1px solid #ffd700;
}

.interaction-analysis-section h4 {
    margin: 0 0 15px 0;
    color: #b8860b;
    font-size: 16px;
    font-weight: 600;
}

.interaction-summary {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #ffd700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.interaction-details {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.interaction-item {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #ddd;
}

.interaction-item.positive {
    background: #f0fff4;
    border-left-color: #28a745;
}

.interaction-item.negative {
    background: #fff5f5;
    border-left-color: #dc3545;
}

.interaction-item.safety {
    background: #fff9e6;
    border-left-color: #ffc107;
}

.interaction-supplements {
    margin: 8px 0;
}

.supplement-tag {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 2px 8px;
    margin: 2px;
    border-radius: 4px;
    font-size: 12px;
}

.interaction-recommendations,
.goal-alignment {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
