/**
 * FINEART Shop Backoffice Styles
 */

/* Stats Grid */
.fineart-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.fineart-stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.2s ease;
}

.fineart-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.fineart-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.fineart-stat-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.fineart-stat-label {
    font-size: 14px;
    color: #50575e;
    margin-bottom: 8px;
    font-weight: 500;
}

.fineart-card-primary .fineart-stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.fineart-stat-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.fineart-stat-meta {
    font-size: 13px;
    color: #787c82;
}

.fineart-card-primary .fineart-stat-meta {
    color: rgba(255, 255, 255, 0.8);
}

.fineart-card-link {
    display: inline-block;
    margin-top: 16px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.fineart-card-link:hover {
    color: #135e96;
}

/* Quick Actions */
.fineart-quick-actions {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
}

.fineart-quick-actions h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
}

.fineart-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.fineart-action-buttons .button-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Recent Sales */
.fineart-recent-sales {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
}

.fineart-recent-sales h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
}

.fineart-recent-sales table {
    margin-top: 16px;
}

/* Shop Info */
.fineart-shop-info {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.fineart-shop-info h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
}

.fineart-shop-info p {
    margin: 8px 0;
}

/* Empty State */
.fineart-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    margin: 20px 0;
}

.fineart-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.fineart-empty-state h2,
.fineart-empty-state h3 {
    color: #50575e;
    margin-bottom: 12px;
}

.fineart-empty-state p {
    color: #787c82;
    margin-bottom: 24px;
}

/* Inventory Grid */
.fineart-inventory-summary {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 16px 24px;
    margin: 20px 0;
}

.fineart-inventory-count {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

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

.fineart-inventory-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.fineart-inventory-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.fineart-inventory-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f6f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fineart-inventory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fineart-placeholder-image {
    font-size: 60px;
    color: #c3c4c7;
}

.fineart-inventory-details {
    padding: 16px;
}

.fineart-inventory-title {
    font-size: 16px;
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #1d2327;
}

.fineart-inventory-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.fineart-inventory-size {
    color: #50575e;
}

.fineart-inventory-price {
    color: #2271b1;
    font-weight: 600;
}

.fineart-inventory-quantity {
    margin-bottom: 12px;
}

.fineart-quantity-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.fineart-quantity-badge.low-stock {
    background: #fff3e0;
    color: #e65100;
}

.fineart-inventory-actions {
    margin-top: 12px;
}

/* View Toggle */
.fineart-view-toggle {
    text-align: right;
}

.fineart-inventory-table {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 0;
    margin: 20px 0;
    overflow: hidden;
}

.fineart-inventory-table table {
    margin: 0;
    border: none;
}

/* Sales Declaration */
.fineart-declare-sale-form {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    max-width: 800px;
}

.fineart-declare-sale-form .form-table {
    margin-top: 0;
}

.fineart-commission-preview {
    background: #f6f7f7;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.fineart-commission-preview h3 {
    margin-top: 0;
    color: #2271b1;
}

.fineart-commission-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #dcdcde;
}

.fineart-commission-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 18px;
    margin-top: 8px;
    padding-top: 12px;
}

.fineart-commission-label {
    color: #50575e;
}

.fineart-commission-value {
    color: #1d2327;
    font-weight: 500;
}

/* Sales History */
.fineart-sales-filters {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 16px 24px;
    margin: 20px 0;
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.fineart-filter-group {
    flex: 1;
    min-width: 200px;
}

.fineart-filter-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 13px;
}

.fineart-sales-table {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

.fineart-sales-table table {
    margin: 0;
    border: none;
}

.fineart-total-row {
    background: #f6f7f7;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 782px) {
    .fineart-stats-grid {
        grid-template-columns: 1fr;
    }

    .fineart-inventory-grid {
        grid-template-columns: 1fr;
    }

    .fineart-action-buttons {
        flex-direction: column;
    }

    .fineart-action-buttons .button-hero {
        width: 100%;
        justify-content: center;
    }

    .fineart-sales-filters {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Notices */
.fineart-notice {
    margin: 20px 0;
}
