/**
 * style.css
 * Clean, responsive, dealer-optimized UI
 */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background: var(--bg); color: var(--text); line-height: 1.5; }

/* Auth */
.login-page { display: flex; align-items: center; justify-content: center; height: 100vh; }
.auth-container { background: var(--card-bg); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; max-width: 400px; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.auth-form input { padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); }
.auth-form button { padding: 0.75rem; background: var(--primary); color: white; border: none; border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.hint { color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem; }

/* Header & Dashboard */
.main-header { background: var(--card-bg); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.dashboard-container { padding: 2rem; max-width: 1400px; margin: 0 auto; }
.filters { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filters input, .filters select { padding: 0.6rem; border: 1px solid var(--border); border-radius: var(--radius); flex: 1; min-width: 200px; }

/* Auction Grid */
.auction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.auction-card { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; transition: transform 0.2s; border: 1px solid var(--border); }
.auction-card:hover { transform: translateY(-3px); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.badge { padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.badge.normal { background: #dcfce7; color: #166534; }
.badge.urgent { background: #fef3c7; color: #92400e; }
.card-body p { margin: 0.25rem 0; color: var(--text-muted); }
.card-body .price { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 0.5rem 0; }
.card-body .timer { font-family: monospace; font-size: 1.1rem; color: var(--primary); }
.card-body .expired .timer { color: var(--danger); }

/* Buttons */
.btn-primary, .btn-secondary { padding: 0.6rem 1rem; border-radius: var(--radius); border: none; cursor: pointer; font-weight: 600; width: 100%; margin-top: 1rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: #475569; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal.hidden { display: none; }
.modal-content { background: var(--card-bg); padding: 2rem; border-radius: var(--radius); width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; position: relative; }
.close-modal { position: absolute; top: 1rem; right: 1.5rem; font-size: 1.5rem; cursor: pointer; }
.action-panel { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.transport-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem; margin-bottom: 0.5rem; }
.result-box { background: #f0fdf4; border: 1px solid #bbf7d0; padding: 0.75rem; border-radius: var(--radius); margin-top: 0.5rem; }
.loading { text-align: center; padding: 2rem; color: var(--text-muted); }