.truewp-stats-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.truewp-stats-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.truewp-stats-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.truewp-stats-section-title {
    background-color: #f8f9fa;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.4rem;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
}

.truewp-stats-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
}

.truewp-stats-table-container {
    flex: 1;
    min-width: 300px;
}

.truewp-stats-chart-container {
    flex: 1;
    min-width: 300px;
    min-height: 350px;
    position: relative;
}

.truewp-stats-table-wrapper {
    margin-bottom: 20px;
}

.truewp-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.truewp-stats-table th {
    text-align: left;
    padding: 12px 15px;
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.truewp-stats-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.truewp-stats-table tbody tr:hover {
    background-color: #f8f9fa;
}

.truewp-stats-bar-container {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.truewp-stats-bar {
    height: 100%;
    background-color: #4e73df;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.truewp-stats-footer {
    padding: 0 !important;
    text-align: center;
    border-top: 2px solid #f8f9fa;
}

.truewp-stats-collapse-btn {
    background: none;
    border: none;
    color: #4e73df;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.truewp-stats-collapse-btn:hover {
    color: #3a5bc7;
    background-color: #f8f9fa;
}

.truewp-stats-collapse-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
}

.truewp-stats-collapse-icon::before,
.truewp-stats-collapse-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.truewp-stats-collapse-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.truewp-stats-collapse-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.truewp-stats-table.expanded .truewp-stats-collapse-icon::after {
    opacity: 0;
    transform: translateX(-50%) rotate(90deg);
}

.truewp-stats-table.expanded .truewp-stats-collapse-text {
    display: none;
}

.truewp-stats-table.expanded .truewp-stats-collapse-btn::after {
    content: 'Show less';
}

/* Responsive styles */
@media (max-width: 768px) {
    .truewp-stats-content {
        flex-direction: column;
    }
    
    .truewp-stats-table-container {
        order: 1;
    }
    
    .truewp-stats-chart-container {
        order: 2;
    }
}

.truewp-stats-percentage {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.truewp-stats-decimal {
    font-size: 12px;
    opacity: 0.8;
    vertical-align: none;
}

/* For better mobile display */
@media (max-width: 768px) {
    .truewp-stats-percentage {
        font-size: 14px;
    }
    
    .truewp-stats-decimal {
        font-size: 10px;
    }
}