/* Chart Controls */
.chart-controls {
    display: flex;
    gap: 8px;

}

.chart-controls .btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.chart-controls .btn-primary {
    background: #111;
    color: white;
    border-color: #111;
}

.chart-controls .btn-outline {
    background: white;
    color: #6c757d;
}

.chart-controls .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Chart Data Container */
.chart-data {

}

/* Order Types List */
.order-types-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-type-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s;
}

.order-type-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.order-type-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-type-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-type-name {
    font-weight: 500;
    color: #212529;
    flex: 1;
}

.order-type-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.order-type-count {
    color: #6c757d;
    font-weight: 500;
}

.order-type-percentage {
    font-weight: 700;
    font-size: 16px;
}

/* Progress Bar */
.order-type-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.order-type-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, currentColor, currentColor);
    opacity: 0.8;
}

/* Chart Summary */
.chart-summary {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.summary-label {
    color: #6c757d;
}

.summary-value {
    font-weight: 700;
    font-size: 18px;
}

/* Empty State */
.chart-empty {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

.chart-empty p {
    margin: 0;
    font-size: 14px;
}

/* Loading State */
.chart-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.spinner-border {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .chart-controls {
        flex-wrap: wrap;
    }

    .chart-controls .btn {
        flex: 1;
        min-width: 80px;
    }

    .order-type-item {
        padding: 10px;
    }

    .order-type-icon {
        font-size: 20px;
        width: 28px;
        height: 28px;
    }
}