/**
 * Dashboard Styles
 *
 * @package QuarkcodeNeuralCommerce
 * @since 1.0.0
 */

/* Stats Grid */
.qcnc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.qcnc-stat-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.qcnc-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.qcnc-stat-box.qcnc-highlight {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.qcnc-stat-box.qcnc-warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.qcnc-stat-box h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.qcnc-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
}

/* Charts Row */
.qcnc-charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.qcnc-chart-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qcnc-chart-box h2 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

.qcnc-chart-box table {
    margin: 0;
}

.qcnc-chart-box table th {
    background: #f8f9fa;
    padding: 12px;
    font-weight: 600;
}

.qcnc-chart-box table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.qcnc-chart-box table tr:last-child td {
    border-bottom: none;
}

/* Order Details */
.qcnc-order-details {
    padding: 20px;
}

.qcnc-order-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.qcnc-order-summary-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.qcnc-order-summary-item strong {
    display: block;
    margin-bottom: 5px;
    color: #6c757d;
    font-size: 12px;
    text-transform: uppercase;
}

.qcnc-order-summary-item span {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.qcnc-order-items-table {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
}

.qcnc-order-items-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.qcnc-order-items-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* Empty State */
.qcnc-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.qcnc-empty-state svg,
.qcnc-empty-state img {
    max-width: 200px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.qcnc-empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.qcnc-empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .qcnc-stats-grid {
        grid-template-columns: 1fr;
    }

    .qcnc-charts-row {
        grid-template-columns: 1fr;
    }

    .qcnc-stat-value {
        font-size: 24px;
    }

    .qcnc-order-summary {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qcnc-stat-box,
.qcnc-chart-box {
    animation: fadeIn 0.3s ease-in-out;
}

/* Profit Indicator */
.qcnc-profit-positive {
    color: #28a745;
    font-weight: bold;
}

.qcnc-profit-negative {
    color: #dc3545;
    font-weight: bold;
}

.qcnc-profit-neutral {
    color: #6c757d;
}

/* Margin Indicator */
.qcnc-margin-high {
    color: #28a745;
}

.qcnc-margin-medium {
    color: #ffc107;
}

.qcnc-margin-low {
    color: #dc3545;
}
