/* assets/auction.css */
.auction-container {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.countdown {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.starting-price {
    font-size: 1.2em;
    color: #27ae60;
    font-weight: bold;
    margin: 10px 0;
}

.user-balance {
    font-size: 1.1em;
    color: #3498db;
    font-weight: bold;
    margin: 10px 0;
}

.seller-earnings {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.waiting-for-payment {
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.urgent-time {
    color: #ff6b35 !important;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.bid-section {
    margin: 20px 0;
}

.current-bid {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.highest-bidder {
    margin-bottom: 15px;
    color: #555;
}

.bid-input {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.bid-input label {
    font-weight: bold;
}

.bid-input input[type="number"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 150px;
}

.place-bid-btn, .process-payment-btn {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.place-bid-btn:hover, .process-payment-btn:hover {
    background-color: #005a87;
}

.bid-history {
    margin-top: 20px;
}

.bid-history h3 {
    margin-top: 0;
}

.bid-list {
    list-style-type: none;
    padding: 0;
}

.bid-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.bid-item:last-child {
    border-bottom: none;
}

.bid-history ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.bid-history ul li:last-child {
    border-bottom: none;
}

.payment-warning {
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    background-color: #ffeaea;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
}

.process-payment-btn {
    background-color: #27ae60;
    margin-top: 10px;
}

.process-payment-btn:hover {
    background-color: #219a52;
}

.payment-success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.not-participant {
    background-color: #e2e3e5;
    color: #383d41;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #d6d8db;
    text-align: center;
    margin-top: 10px;
}

.winner-congratulation {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.notification-badge {
    position: relative;
    display: inline-block;
}

.notification-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background-color: #ff6b35;
    border-radius: 50%;
    border: 1px solid white;
}

.notifications-panel {
    position: fixed;
    top: 50px;
    right: 20px;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none;
}

.notification-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.notification-item.unread {
    background-color: #fff3cd;
}

.notification-item:last-child {
    border-bottom: none;
}

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

.notification-message {
    font-size: 14px;
    color: #333;
}

.notification-time {
    font-size: 12px;
    color: #777;
}

.close-notifications {
    cursor: pointer;
    font-size: 18px;
    color: #999;
}

.mark-all-read {
    padding: 10px;
    text-align: center;
    background-color: #f1f1f1;
    border-top: 1px solid #ddd;
    cursor: pointer;
    color: #007cba;
    font-weight: bold;
}

@media (max-width: 768px) {
    .bid-input {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bid-input input[type="number"] {
        width: 100%;
    }
    
    .countdown {
        font-size: 1.2em;
    }
    
    .notifications-panel {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}