/* styles.css */
:root {
    --brand-primary: #0078D4; /* Azure Blue */
    --brand-secondary: #0A192F; /* Midnight Navy */
    --brand-accent: #107C10; /* Signal Green */
    --brand-warning: #FF5F00; /* Safety Orange */
    --text-light: #F3F4F6;
    --text-dark: #212529;
    --bg-light: #F8F9FA;
    --border-color: #DEE2E6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    background-color: var(--brand-secondary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo img {
    height: 42px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
}
.nav-links a:hover { color: white; }

.btn-login {
    background-color: var(--brand-primary);
    padding: 8px 20px;
    border-radius: 4px;
    color: white !important;
    transition: background 0.2s;
}
.btn-login:hover { background-color: #0063b1; }

.language-toggle {
    margin-left: 20px;
}

.language-toggle button {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.language-toggle button:hover {
    border-color: white;
    color: white;
}

/* Dashboard Grid */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    background-color: #ddd;
    position: relative;
    /* Placeholder for truck image */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}

.card-body { padding: 1.5rem; }

.card-title { margin: 0 0 10px 0; font-size: 1.25rem; }
.card-price { font-size: 1.5rem; font-weight: bold; color: var(--brand-primary); }
.card-meta { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }

/* Status Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}
.badge-live {
    background-color: var(--brand-accent);
    color: white;
    animation: pulse 2s infinite;
}
.badge-ending {
    background-color: var(--brand-warning);
    color: white;
    animation: urgent 1s infinite;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 124, 16, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 124, 16, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 124, 16, 0); }
}

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

/* Auction Detail Layout */
.auction-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.video-player {
    background: black;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.bid-console {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.current-bid-display {
    text-align: center;
    margin-bottom: 2rem;
}
.big-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    display: block;
}

.bid-button {
    width: 100%;
    padding: 15px;
    background-color: var(--brand-warning);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
}
.bid-button:active { transform: scale(0.98); }

.bid-history {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}
.bid-history li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}
.bid-history li.new {
    background-color: #e6f4ea;
    animation: flash 1s;
}

@keyframes flash {
    0% { background-color: var(--brand-accent); color: white; }
    100% { background-color: transparent; color: black; }
}