/* Visualization Widget Styles */
.visualization-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.widget-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.widget-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.widget-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.widget-empty {
    text-align: center;
    color: #9ca3af;
    padding: 2rem;
}

.widget-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.3;
}

.widget-empty p {
    margin: 0;
    font-size: 0.875rem;
}

/* Summary Card Styles */
.summary-card .widget-body {
    padding: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    font-size: 2rem;
    color: #3b82f6;
    opacity: 0.8;
}

.summary-content {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.summary-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Dashboard Layout Overrides */
.e-dashboardlayout.e-control .e-panel {
    transition: all 0.3s ease;
}

.e-dashboardlayout.e-control .e-panel:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.e-dashboardlayout.e-control .e-panel .e-panel-container {
    height: 100%;
}

/* Dashboard Controls */
.dashboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-controls-left {
    display: flex;
    gap: 0.5rem;
}

.dashboard-controls-right {
    display: flex;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-controls-left,
    .dashboard-controls-right {
        width: 100%;
        justify-content: center;
    }
}
