.performance-doctor-widget {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

    .widget-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;

        h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #1e1e1e;
        }

        .tier-badge {
            display: inline-block;
            padding: 2px 8px;
            background: #0099CC;
            color: #fff;
            font-size: 11px;
            font-weight: 600;
            border-radius: 3px;
            text-transform: uppercase;
        }
    }

    .widget-description {
        color: #6b7280;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .analyze-button {
        width: 100%;
        justify-content: center;
        margin-bottom: 20px;

        &.is-primary {
            background: #3b82f6;
            border-color: #3b82f6;

            &:hover:not(:disabled) {
                background: #1d4ed8;
                border-color: #1d4ed8;
            }

            &:disabled {
                opacity: 0.6;
            }
        }

        .components-spinner {
            margin: 0 5px 0 0;
        }
    }

    .widget-features {
        ul {
            margin: 0;
            padding: 0;
            list-style: none;

            li {
                padding: 8px 0;
                color: #374151;
                font-size: 14px;
                display: flex;
                align-items: center;
                gap: 8px;

                &:first-child {
                    padding-top: 0;
                }

                &:last-child {
                    padding-bottom: 0;
                }
            }
        }
    }
}

/* Modal Styles */
.performance-doctor-modal {
    .components-modal__content {
        padding: 20px;
        max-width: 600px;
    }

    .recommendations-list {
        margin-bottom: 20px;

        .recommendation-item {
            background: #f9fafb;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 15px;

            &:last-child {
                margin-bottom: 0;
            }

            .recommendation-header {
                display: flex;
                align-items: center;
                gap: 10px;
                margin-bottom: 10px;

                .priority-icon {
                    font-size: 20px;
                    flex-shrink: 0;
                }

                h4 {
                    margin: 0;
                    font-size: 16px;
                    font-weight: 600;
                    flex: 1;
                }
            }

            .recommendation-details {
                margin: 0;
                padding-left: 30px;
                list-style: disc;

                li {
                    margin-bottom: 8px;
                    line-height: 1.6;
                    color: #4b5563;

                    &:last-child {
                        margin-bottom: 0;
                    }
                }
            }
        }
    }

    .usage-info {
        text-align: center;
        padding: 15px;
        background: #e5e7eb;
        border-radius: 6px;
        margin-bottom: 20px;

        p {
            margin: 0;
            color: #374151;
            font-size: 14px;
        }
    }

    .modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding-top: 20px;
        border-top: 1px solid #e5e7eb;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .performance-doctor-widget {
        .widget-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }
    }

    .performance-doctor-modal {
        .components-modal__content {
            padding: 15px;
        }

        .recommendation-item {
            padding: 15px;

            .recommendation-details {
                padding-left: 20px;
            }
        }
    }
}