/**
 * Portfolio RA (Request Auction) Popup Fix
 * Fixes the styling of the Request Auction popup/alert
 */

/* Override default alert/confirm dialog styles if using custom modal */
.auction-request-modal,
.ra-modal,
.request-auction-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #1f2937 !important;
    border: 2px solid #6366f1 !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    z-index: 99999 !important;
    max-width: 500px !important;
    width: 90% !important;
}

/* Custom styled alert/confirm replacement */
.custom-alert-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 99998 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-alert-box {
    background: #1f2937 !important;
    border: 2px solid #6366f1 !important;
    border-radius: 12px !important;
    padding: 2rem !important;
    max-width: 500px !important;
    width: 90% !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.custom-alert-title {
    color: white !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.custom-alert-message {
    color: #d1d5db !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
}

.custom-alert-buttons {
    display: flex !important;
    gap: 1rem !important;
    justify-content: flex-end !important;
}

.custom-alert-btn {
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border: none !important;
    font-size: 0.875rem !important;
    transition: all 0.2s !important;
}

.custom-alert-btn-primary {
    background: #6366f1 !important;
    color: white !important;
}

.custom-alert-btn-primary:hover {
    background: #4f46e5 !important;
}

.custom-alert-btn-secondary {
    background: #4b5563 !important;
    color: white !important;
}

.custom-alert-btn-secondary:hover {
    background: #374151 !important;
}

/* Fix for portfolio action buttons */
.portfolio-action-btn {
    padding: 0.375rem 0.625rem !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.portfolio-btn-auction {
    background: #8b5cf6 !important;
    color: white !important;
}

.portfolio-btn-auction:hover {
    background: #7c3aed !important;
    transform: translateY(-1px) !important;
}

/* Ensure proper spacing */
.portfolio-action-buttons {
    display: flex !important;
    gap: 0.375rem !important;
    flex-wrap: wrap !important;
}

/* Fix any modal positioning issues */
body.modal-open {
    overflow: hidden !important;
}

/* Responsive fixes */
@media (max-width: 640px) {
    .custom-alert-box,
    .auction-request-modal {
        width: 95% !important;
        padding: 1.5rem !important;
    }
    
    .custom-alert-buttons {
        flex-direction: column !important;
    }
    
    .custom-alert-btn {
        width: 100% !important;
    }
}