/**
 * Improved LearnDash Chart Integration Styles
 */

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

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

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

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

/* Dropdown Selector Styles */
.improved-ld-chart-selector-container {
    text-align: center;
    margin: 20px 0;
}

.improved-ld-chart-selector {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 16px;
    min-width: 250px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path fill="%23333" d="M0 0l6 6 6-6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.improved-ld-chart-selector:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

label[for="testSelector"] {
    font-weight: 500;
    margin-right: 10px;
}

.improved-ld-chart-no-data {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin: 20px 0;
}

/* Debug information styling */
.improved-ld-chart-debug {
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
}

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

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

.improved-ld-chart-debug h5 {
    margin: 12px 0 5px;
    color: #23282d;
    font-weight: 500;
}

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

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

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

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

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

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

.improved-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) {
    .improved-ld-chart-canvas-container {
        height: 300px;
    }
    
    .improved-ld-chart-title {
        font-size: 20px;
    }
    
    .improved-ld-chart-selector {
        width: 100%;
        max-width: none;
        font-size: 14px;
    }
}