﻿/* ========== Container ========== */
.bid-view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========== Header Card ========== */
.bids-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.bids-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.bids-title i {
    font-size: 1.2em;
    color: white;
}

/* ========== Stats Cards ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.stat-title {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #667eea;
}

.stat-refresh-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.stat-refresh-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* ========== Bids Table Card ========== */
.bids-table-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.bids-table {
    width: 100%;
    border-collapse: collapse;
}

.bids-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bids-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
    color: white !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.bids-table thead th:first-child {
    border-top-left-radius: 8px !important;
}

.bids-table thead th:last-child {
    border-top-right-radius: 8px !important;
}

.bids-table thead th i {
    margin-right: 6px;
    color: white !important;
}

.bids-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.bids-table tbody tr:last-child {
    border-bottom: none;
}

.bids-table tbody tr:hover {
    background-color: #f8f9fa;
}

.bids-table td {
    padding: 12px 15px;
}

.bid-time {
    font-weight: 600;
    color: #333;
}

.customer-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
}

.bid-amount {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1em;
}

.early-bird-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #ffc107;
    color: #000;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
}

.early-bird-badge i {
    font-size: 1em;
}

.magical-bid-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
}

.magical-bid-badge i {
    font-size: 1em;
}

.time-ago {
    color: #6c757d;
    font-size: 0.9em;
}

/* ========== Info Card ========== */
.info-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-card h6 {
    margin: 0 0 10px 0;
    color: #1565c0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-card h6 i {
    color: #2196f3;
}

.info-card small {
    display: block;
    color: #0d47a1;
    line-height: 1.5;
}

.info-card hr {
    border: none;
    border-top: 1px solid rgba(33, 150, 243, 0.3);
    margin: 8px 0;
}

/* ========== No Bids Alert ========== */
.no-bids-alert {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ========== Mobile Optimizations ========== */
@media (max-width: 768px) {
    .bid-view-container {
        padding: 10px;
    }

    .bids-header-card {
        padding: 15px;
    }

    .bids-title {
        font-size: 1.4em;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 15px;
    }

    .bids-table-card {
        padding: 12px;
    }

    .bids-table th,
    .bids-table td {
        padding: 8px 10px;
        font-size: 0.9em;
    }

    .stat-value {
        font-size: 1.6em;
    }
}
