/* Add this to your css/components.css or create dashboard.css */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
}

.stat-card.success::before {
    background: linear-gradient(90deg, var(--success), #0da76e);
}

.stat-card.warning::before {
    background: linear-gradient(90deg, var(--warning), #e28b0a);
}

.stat-card.error::before {
    background: linear-gradient(90deg, var(--error), #dc2626);
}

.card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin: 0.5rem 0;
}

.card-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dashboard-content {
    margin-top: 2rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
    color: var(--text);
}

.quick-action-btn:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 1.5rem;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}

.quick-action-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

.recent-orders {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-item:hover {
    background: var(--border-light);
    border-color: var(--primary-300);
}

.order-info {
    flex: 1;
}

.order-id {
    font-weight: 600;
    color: var(--text);
}

.order-customer {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.order-details {
    text-align: right;
}

.order-amount {
    font-weight: 600;
    color: var(--text);
}

.order-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-accepted {
    background: #dbeafe;
    color: #1e40af;
}

.status-ready {
    background: #e0e7ff;
    color: #3730a3;
}

.status-delivered {
    background: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.chart-container {
    padding: 1rem;
}

.chart-legend {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    padding: 1rem 0;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.chart-bar-label {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.chart-bars-container {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    height: 100%;
}

.chart-bar {
    position: relative;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    min-height: 4px;
}

.chart-bar.orders {
    background: var(--primary-600);
    width: 12px;
}

.chart-bar.revenue {
    background: var(--success);
    width: 12px;
}

.chart-bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.empty-state-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state-small i {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state-small p {
    color: var(--text-muted);
    margin: 0;
}

.loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-muted);
}

.spinner.small {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-bars {
        height: 150px;
    }
    
    .chart-bar {
        width: 8px !important;
    }
    
    .chart-bar-value {
        font-size: 0.625rem;
        top: -20px;
    }
}