/**
 * Feedback Indicators Styling
 */

.feedback-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feedback-stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.stat-badge.good { background: #d1fae5; color: #065f46; }
.stat-badge.warning { background: #fef3c7; color: #92400e; }
.stat-badge.critical { background: #fee2e2; color: #991b1b; }

.stat-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-mini-bar {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
}

.stat-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/** Global Indicator Container **/
#global-feedback-indicators {
    min-height: 250px;
    position: relative;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--gestemas-shadow);
    max-width: 100%;
}

/* [NEW] Feedback Indicators Grid - Bento-style Layout */
.feedback-indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--grid-gap, 24px);
    width: 100%;
    margin-top: 16px;
    align-items: start;
}

/* Allow canvas to fill its container properly */
.feedback-indicators-grid canvas {
    max-width: 100%;
    height: auto !important;
    max-height: 250px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 12px;
}

@media (max-width: 768px) {
    .feedback-indicators-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
