/* POD WooCommerce Reorder Styles */
.pod-reorder-container {
    max-width: 100%;
    margin: 0 auto;
}

.pod-reorder-section h2 {
    margin-bottom: 20px;
}

/* Cart Status Indicator */
/*.pod-cart-status {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease-in-out;
}

.pod-cart-status.show {
    transform: translateX(0);
}

.pod-cart-status.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}*/

/*.pod-cart-status.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}*/

/*.pod-cart-status .pod-status-message {
    margin: 0 0 10px 0;
    font-weight: 500;
}

.pod-cart-status .pod-status-actions {
    display: flex;
    gap: 10px;
}

.pod-cart-status .pod-status-actions a {
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.1);
    color: inherit;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.pod-cart-status .pod-status-actions a:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.pod-cart-status .pod-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.pod-cart-status .pod-close-btn:hover {
    opacity: 1;
}*/

/* Button States */
.pod-reorder-btn:disabled,
.pod-add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pod-reorder-btn.loading,
.pod-add-to-cart-btn.loading {
    position: relative;
}

.pod-reorder-btn.loading::after,
.pod-add-to-cart-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.pod-reorder-btn.loading .button-text,
.pod-add-to-cart-btn.loading .button-text {
    opacity: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Pagination */
.pod-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
}

/* Loading overlay for individual rows */
.pod-table-row-loading {
    position: relative;
    opacity: 0.7;
}

.pod-table-row-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Enhanced button styling */
.pod-reorder-btn,
.pod-add-to-cart-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Mini cart indicator (if you want to show cart count) */
.pod-mini-cart-count {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #007cba;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 999;
    transition: all 0.3s ease;
}

.pod-mini-cart-count.updated {
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pod-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pod-cart-status {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        transform: translateY(-120%);
    }
    
    .pod-cart-status.show {
        transform: translateY(0);
    }
    
    .pod-status-actions {
        flex-direction: column;
    }
    
    .pod-mini-cart-count {
        top: 10px;
        left: 10px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Accessibility improvements */
.pod-reorder-btn:focus,
.pod-add-to-cart-btn:focus {
    outline: 2px solid #005cee;
    outline-offset: 2px;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .pod-cart-status.success {
        background-color: #1a472a;
        border-color: #2d5a37;
        color: #90ee90;
    }
    
    .pod-cart-status.error {
        background-color: #4a1a1a;
        border-color: #5a2d2d;
        color: #ffb3b3;
    }
}

/* Animation for successful additions */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pod-reorder-btn.success,
.pod-add-to-cart-btn.success {
    animation: successPulse 0.6s ease;
}

/* Success state for buttons */
.pod-reorder-btn.success,
.pod-add-to-cart-btn.success {
    background-color: #28a745 !important;
    color: white !important;
    border-color: #28a745 !important;
}