/* Wedding Health Widget Styles */

#health-widget-container {
    flex-shrink: 0; /* Prevent container from shrinking */
}

.health-widget {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.15);
}

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

.health-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #be123c;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.health-score {
    background: linear-gradient(135deg, #fce7f3 0%, #e0e7ff 100%);
    color: #be123c;
    font-size: 18px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 45px;
    text-align: center;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.health-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.health-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.health-item:hover {
    background: rgba(252, 231, 243, 0.3);
}

.health-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.health-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.health-label {
    font-size: 11px;
    font-weight: 700;
    color: #9f1239;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.health-description {
    font-size: 10px;
    font-weight: 500;
    color: #831843;
    opacity: 0.8;
}

.health-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.health-item:hover .health-status {
    transform: scale(1.2);
}

/* Status colors */
.status-red {
    background-color: #ef4444;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.status-yellow {
    background-color: #f59e0b;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
}

.status-green {
    background-color: #10b981;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

.status-gray {
    background-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(209, 213, 219, 0.4);
}

.btn-claude-help {
    width: 100%;
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(190, 18, 60, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-claude-help:hover {
    background: linear-gradient(135deg, #9f1239 0%, #881337 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(190, 18, 60, 0.4);
}

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

/* Loading and error states */
.health-widget-loading,
.health-widget-error {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #831843;
    border: 1px solid rgba(236, 72, 153, 0.15);
}

.health-widget-error {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .health-widget {
        padding: 14px;
    }

    .health-header h3 {
        font-size: 13px;
    }

    .health-score {
        font-size: 16px;
        padding: 4px 10px;
    }

    .health-item {
        padding: 6px;
    }

    .health-icon {
        font-size: 16px;
    }

    .health-label {
        font-size: 10px;
    }

    .health-description {
        font-size: 9px;
    }

    .btn-claude-help {
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* Animation for status changes */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.health-status.status-updated {
    animation: pulse 0.5s ease-in-out;
}
