/* Styles cho frontend */

.dau-gia-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dau-gia-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.dau-gia-header {
    margin-bottom: 20px;
}

.dau-gia-header h1 {
    margin-bottom: 10px;
}

.dau-gia-status {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.status-success {
    background-color: #4caf50;
    color: white;
}

.status-ended {
    background-color: #ff9800;
    color: white;
}

.status-live {
    background-color: #f44336;
    color: white;
    animation: pulse 2s infinite;
}

.status-waiting {
    background-color: #9e9e9e;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.dau-gia-image {
    margin-bottom: 30px;
}

.dau-gia-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.dau-gia-info {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.dau-gia-info p {
    margin: 10px 0;
}

.dau-gia-ket-qua {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.dau-gia-ket-qua h3 {
    margin-top: 0;
    color: #2e7d32;
}

.dau-gia-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.dau-gia-countdown {
    background: #fff;
    border: 2px solid #f44336;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.dau-gia-countdown h3 {
    margin-top: 0;
    color: #f44336;
}

.countdown-timer {
    font-size: 24px;
    font-weight: bold;
    color: #f44336;
}

.countdown-timer span {
    display: inline-block;
    min-width: 50px;
    padding: 10px;
    background: #f44336;
    color: white;
    border-radius: 4px;
    margin: 0 5px;
}

.dau-gia-notice {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.notice-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.notice-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #e65100;
}

.notice-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.dau-gia-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    width: 100%;
    margin-bottom: 10px;
}

.dau-gia-btn-primary {
    background: #f44336;
    color: white;
}

.dau-gia-btn-primary:hover {
    background: #d32f2f;
}

.dau-gia-btn-danger {
    background: #c62828;
    color: white;
}

.dau-gia-btn-danger:hover {
    background: #b71c1c;
}

/* Bidding Area */
.dau-gia-bidding-area {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.dau-gia-bidding-area h3 {
    margin-top: 0;
}

.dau-gia-current-price {
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

.dau-gia-current-price #dau-gia-gia-cao-nhat {
    font-size: 24px;
    font-weight: bold;
    color: #f44336;
}

.dau-gia-mode-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.dau-gia-mode-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.dau-gia-mode-btn.active {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.dau-gia-price-input {
    margin-bottom: 20px;
}

.dau-gia-price-input label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.dau-gia-price-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dau-gia-price-controls input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
}

.dau-gia-btn-price {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 4px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.dau-gia-btn-price:hover {
    background: #f5f5f5;
    border-color: #f44336;
}

.dau-gia-bidding-history {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.dau-gia-bidding-history h4 {
    margin-top: 0;
}

.dau-gia-history-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.dau-gia-history-item.my-bid {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.dau-gia-history-price {
    font-weight: bold;
    color: #f44336;
}

@media (max-width: 768px) {
    .dau-gia-container {
        grid-template-columns: 1fr;
    }
    
    .dau-gia-sidebar {
        position: static;
    }
}


