/**
 * Dashboard Widget Styles
 *
 * @package MUSTWP
 */

/* Widget Container */
.mustwp-dashboard-widget {
    margin: 0;
    font-size: 14px;
    color: inherit;
}

/* Header */
.mustwp-dashboard-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 4px;
}

.mustwp-dashboard-title {
    font-size: 14px !important;
    font-weight: bold !important;
    margin: 0 !important;
    line-height: 1.4;
}

.mustwp-directional-hint {
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    line-height: 1.4;
    color: inherit;
}

.mustwp-dashboard-meta {
    font-size: 13px;
    line-height: 1.4;
    color: #646970;
    margin-top: 4px;
}

/* Device Sections */
.mustwp-device-section {
    margin: 0;
    width: 100%;
}

.mustwp-device-heading {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 8px !important;
}

.mustwp-device-separator {
    margin: 20px 0 15px;
    border: none;
    border-top: 1px solid #dcdcde;
}

.mustwp-device-content {
    padding: 0;
}

/* Subhead */
.mustwp-dashboard-subhead {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Chart Container */
.mustwp-dashboard-chart {
    position: relative;
    margin-bottom: 16px;
}

/* Stacked Bar */
.mustwp-stacked-bar {
    display: flex;
    height: 32px;
    overflow: hidden;
    background: #f0f0f1;
    position: relative;
}

.mustwp-bar-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.mustwp-bar-poor {
    background: #f33;
}

.mustwp-bar-needs-improvement {
    background: #fa3;
}

.mustwp-bar-good {
    background: #0c6;
}


/* Legend */
.mustwp-dashboard-legend {
    margin-bottom: 16px;
}

.mustwp-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.mustwp-legend-item:last-child {
    margin-bottom: 0;
}

.mustwp-legend-dot {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.mustwp-dot-poor {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 12px solid #f33;
    background: none;
    border-radius: 0;
}

.mustwp-dot-needs-improvement {
    background: #fa3;
    border-radius: 0;
}

.mustwp-dot-good {
    background: #0c6;
    border-radius: 50%;
}

.mustwp-legend-label {
    flex: 1;
}

.mustwp-legend-count {
    font-weight: 500;
}



/* Empty State */
.mustwp-dashboard-empty {
    margin: 16px 0 0 0;
    padding: 16px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    font-size: 14px;
    line-height: 1.5;
}

/* Device Verdict */
.mustwp-device-verdict {
    margin: 16px 0 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* Disclaimer */
.mustwp-dashboard-disclaimer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #dcdcde;
    font-size: 12px;
    color: #646970;
    line-height: 1.5;
}

.mustwp-dashboard-disclaimer a {
    color: #2271b1;
    text-decoration: none;
}

.mustwp-dashboard-disclaimer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media screen and (max-width: 782px) {
    .mustwp-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mustwp-device-heading {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .mustwp-device-content {
        padding: 12px;
    }
    
    .mustwp-legend-item {
        font-size: 14px;
    }
    
    .mustwp-legend-label {
        display: none;
    }
    
    .mustwp-legend-dot {
        width: 14px;
        height: 14px;
    }
    
    .mustwp-dot-poor {
        border-left-width: 7px;
        border-right-width: 7px;
        border-bottom-width: 14px;
    }
    
}

/* Empty State */
.mustwp-dashboard-empty-state {
    padding: 16px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #50575e;
}

.mustwp-dashboard-empty-state a {
    font-weight: 600;
    text-decoration: none;
}

.mustwp-dashboard-empty-state a:hover {
    text-decoration: underline;
}


