/**
 * LearnDash Chart Integration Styles
 */

 .ld-chart-container {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.ld-chart-total-time {
    font-size: 16px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.ld-chart-canvas-container {
    margin-bottom: 20px;
    position: relative;
    height: 400px;
}

.ld-chart-filters {
    text-align: center;
    margin-top: 20px;
}

.ld-chart-filter-button {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.ld-chart-filter-button:hover {
    background-color: #e0e0e0;
}

.ld-chart-filter-button.active {
    background-color: #2271b1;
    color: white;
    border-color: #2271b1;
}

.ld-chart-legend {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.ld-chart-legend-item {
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.ld-chart-legend-color {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 3px;
}

.ld-legend-firebase {
    background-color: #4285F4;
}

.ld-legend-learndash {
    background-color: #34A853;
}

.ld-chart-no-data {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* Debug information styling */
.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 h5 {
    margin: 12px 0 5px;
    color: #23282d;
    font-weight: 500;
}

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

.ld-debug-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e5e5;
    margin: 10px 0;
    font-size: 12px;
}

.ld-debug-table th, 
.ld-debug-table td {
    border: 1px solid #e5e5e5;
    padding: 8px;
    text-align: left;
}

.ld-debug-table th {
    background: #f1f1f1;
    font-weight: bold;
}

.ld-debug-table tr:nth-child(even) {
    background: #f9f9f9;
}

.ld-debug-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

.ld-debug-warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ld-chart-canvas-container {
        height: 300px;
    }
    
    .ld-chart-title {
        font-size: 20px;
    }
    
    .ld-chart-filter-button {
        padding: 6px 12px;
        font-size: 13px;
    }
}