/**
 * Enhanced Bidding System Styling
 * Improves the visual appeal and user experience of the bidding and offer windows
 */

/* Main bidding container */
#vehicle-bidding {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(18, 18, 20, 0.9) 100%);
    border-top: 1px solid rgba(0, 255, 204, 0.2);
    padding: 25px;
    border-radius: 0 0 12px 12px;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

#vehicle-bidding .section-title {
    color: #00ffcc;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

#vehicle-bidding .section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #00ffcc;
    margin-right: 10px;
    border-radius: 2px;
}

/* Bidding container */
.bidding-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .bidding-container {
        grid-template-columns: 1fr;
    }
}

/* Current price display */
.current-price {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 255, 204, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.price-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.price-value {
    color: #00ffcc;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

/* Bidding form */
.bidding-form {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bidding-form .form-group {
    margin-bottom: 20px;
}

.bidding-form label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.bidding-form .input-with-icon {
    position: relative;
}

.bidding-form .input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 255, 204, 0.7);
    font-size: 1rem;
}

.bidding-form input[type="number"],
.bidding-form input[type="date"],
.bidding-form textarea {
    width: 100%;
    padding: 12px 12px 12px 35px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.95rem;

}

.bidding-form textarea {
    padding: 12px;
    resize: vertical;
    min-height: 100px;
    font-family: 'Inter', sans-serif;
}

.bidding-form input:focus,
.bidding-form textarea:focus {
    outline: none;
    border-color: #00ffcc;
    box-shadow: 0 0 0 2px rgba(0, 255, 204, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

/* Range slider styling */
.range-slider {
    margin-top: 15px;
    padding: 0 5px;
}

.range-slider input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(to right, rgba(0, 255, 204, 0.3), rgba(0, 255, 204, 0.7));
    border-radius: 3px;
    outline: none;
    margin: 10px 0;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #00ffcc;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ffcc;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Submit button */
.bidding-form .btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00ffcc 0%, #00b3cc 100%);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 255, 204, 0.3);
}

.bidding-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 255, 204, 0.4);
    background: linear-gradient(135deg, #00ffcc 0%, #00d4cc 100%);
}

.bidding-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 255, 204, 0.3);
}

.bidding-form .btn-primary i {
    font-size: 1.1rem;
}

/* Bid history section */
.bid-history {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 400px;
    overflow-y: auto;
}

.bid-history h4 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bid-history h4::before {
    content: '\f0e7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #00ffcc;
    font-size: 0.9rem;
}

/* Bid list */
.bid-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bid-item {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid rgba(0, 255, 204, 0.5);

}

.bid-item:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateX(2px);
}

.bid-item:last-child {
    margin-bottom: 0;
}

.bid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.bidder-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bidder-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00ffcc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #000;
}

.bidder-name {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 500;
}

.bid-amount {
    font-size: 1rem;
    color: #00ffcc;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.bid-timestamp {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

/* Status badges */
.bid-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bid-status.active {
    background: rgba(0, 255, 204, 0.2);
    color: #00ffcc;
}

.bid-status.accepted {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.bid-status.rejected {
    background: rgba(255, 0, 0, 0.2);
    color: #ff5555;
}

.bid-status.expired {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

/* Buy now section */
.buy-now-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    margin-top: 20px;
}

.buy-now-container h3 {
    margin: 0 0 15px 0;
    color: #00ffcc;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.buy-now-container h3 i {
    font-size: 1rem;
}

.buy-now-price {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
}

.buy-now-price span {
    color: #00ffcc;
}

.buy-now-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.buy-now-benefits li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.buy-now-benefits li i {
    color: #00ffcc;
    font-size: 0.8rem;
}

.btn-buy-now {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff3366 0%, #ff6b3d 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3);
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 51, 102, 0.4);
    background: linear-gradient(135deg, #ff3366 0%, #ff5e3d 100%);
}

.btn-buy-now:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 51, 102, 0.3);
}

/* No bids message */
.no-bids-message {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Scrollbar styling for bid history */
.bid-history::-webkit-scrollbar {
    width: 6px;
}

.bid-history::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.bid-history::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 204, 0.3);
    border-radius: 3px;
}

.bid-history::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 204, 0.5);
}

/* Animation for new bids */


.bid-item.new-bid {
    
    background: rgba(0, 255, 204, 0.1);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #vehicle-bidding {
        padding: 15px;
    }
    
    .bidding-container {
        gap: 15px;
    }
    
    .bidding-form,
    .bid-history {
        padding: 15px;
    }
    
    .current-price {
        padding: 10px;
    }
    
    .price-value {
        font-size: 1.3rem;
    }
}
