/* Beetle Order Management Styles */

.beetle-order-dashboard { padding: 20px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* Statistics Cards */
.beetle-stats-row { display: flex; gap: 20px; margin-bottom: 30px; }
.beetle-stat-card { 
    flex: 1; 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px; 
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}
.beetle-stat-card:hover { transform: translateY(-5px); }
.beetle-stat-card h3 { margin: 0 0 15px 0; font-size: 14px; text-transform: uppercase; opacity: 0.9; }
.beetle-stat-number { font-size: 2.5em; font-weight: bold; }

/* Filter and Controls */
.beetle-controls-row {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.beetle-status-filter {
    display: inline-block;
    margin-right: 20px;
}

.beetle-status-filter select {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    min-width: 200px;
}

/* Orders Table - Windows List Style */
#beetle-orders-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#beetle-orders-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#beetle-orders-table thead th {
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: none;
}

#beetle-orders-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

#beetle-orders-table tbody tr:hover {
    background: #f8f9fa;
}

#beetle-orders-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

/* Dummy Order Row */
.dummy-order-row {
    background: repeating-linear-gradient(
        45deg,
        #f9f9f9,
        #f9f9f9 10px,
        #f0f0f0 10px,
        #f0f0f0 20px
    ) !important;
    opacity: 0.7;
}

.dummy-order-row td {
    position: relative;
}

.dummy-indicator {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
    margin-left: 5px;
}

/* Status Badges */
.beetle-order-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: #e3e8ee; color: #3e4c59; }
.status-payment_pending { background: #fff3cd; color: #856404; }
.status-paid { background: #d4edda; color: #155724; }
.status-processing { background: #cce5ff; color: #004085; }
.status-ready_to_ship { background: #d1ecf1; color: #0c5460; }
.status-shipped { background: #b8daff; color: #004085; }
.status-delivered { background: #28a745; color: white; }
.status-refund_pending { background: #f8d7da; color: #721c24; }
.status-refunded { background: #ffc107; color: #856404; }
.status-cancelled { background: #6c757d; color: white; }

/* Quick Actions */
.beetle-quick-status {
    padding: 5px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Modal Improvements */
.beetle-modal-content {
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Availability Error Modal */
.beetle-availability-error {
    text-align: center;
    padding: 30px;
}

.beetle-availability-error .error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.beetle-availability-error h3 {
    color: #d9534f;
    margin-bottom: 20px;
}

.beetle-availability-error .error-message {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.6;
    white-space: pre-line;
}

.beetle-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    z-index: 99999;
}

.beetle-modal-overlay .beetle-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Checkout Notice */
.beetle-checkout-notice {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #0c5460;
}

/* Cart Adjusted Modal */
.beetle-cart-adjusted {
    text-align: center;
    padding: 30px;
}

.beetle-cart-adjusted .info-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #17a2b8;
}

.beetle-cart-adjusted h3 {
    color: #17a2b8;
    margin-bottom: 20px;
}

.beetle-cart-adjusted .adjustment-message {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: left;
    line-height: 1.8;
}

.beetle-cart-adjusted .adjustment-note {
    color: #666;
    margin-bottom: 20px;
}

.beetle-cart-adjusted .button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.beetle-btn-secondary {
    background: #6c757d;
}

.beetle-btn-secondary:hover {
    background: #5a6268;
}

.beetle-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.beetle-return-home {
    background: #0073aa;
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.beetle-return-home:hover {
    background: #005a87;
}