/**
 * LearnDash Summary Chart Styles
 */

 .ld-summary-chart-container {
    max-width: 400px;
    margin: 0 auto 30px;
    padding: 20px;
    text-align: center;
}

.ld-summary-chart-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.ld-summary-chart-wrapper {
    position: relative;
    height: 200px;
    margin-bottom: 20px;
    width: 100%;
}

.ld-summary-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Position the percentage in the middle of the half-donut */
.ld-summary-percentage {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #000;
    z-index: 10;
}

/* Position the attempts count below the percentage */
.ld-summary-attempts {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #666;
    z-index: 10;
}

.ld-summary-no-data {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* Debug styling (reusing styles from main plugin) */
.ld-chart-debug {
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.ld-chart-debug h3 {
    margin-top: 0;
    color: #d54e21;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.ld-chart-debug h4 {
    margin: 15px 0 5px;
    color: #23282d;
    background: #f1f1f1;
    padding: 8px;
    border-radius: 3px;
}

.ld-chart-debug pre {
    background: #fff;
    padding: 10px;
    border: 1px solid #e5e5e5;
    overflow: auto;
    max-height: 200px;
    font-size: 12px;
    line-height: 1.4;
}

/* Error message */
.error {
    color: #d63638;
    padding: 10px;
    background-color: #ffefef;
    border-left: 4px solid #d63638;
    margin: 10px 0;
}