:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --light: #f8f9fa;
    --dark: #212529;
}

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
.navbar-brand { font-weight: 700; }
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 80px 0; }
.hero h1 { font-size: 3rem; font-weight: 700; }
.hero .lead { font-size: 1.5rem; opacity: 0.9; }
.feature-card { border: none; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.feature-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }
.trade-card { cursor: pointer; border: 2px solid transparent; transition: all 0.3s; }
.trade-card:hover, .trade-card.selected { border-color: var(--primary); background-color: rgba(13, 110, 253, 0.05); }
.trade-icon { font-size: 2.5rem; color: var(--primary); }
.chat-container { height: 500px; display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; background: #f8f9fa; border-radius: 8px; }
.chat-message { max-width: 80%; margin-bottom: 1rem; padding: 0.75rem 1rem; border-radius: 18px; }
.chat-message.user { background: var(--primary); color: white; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-message.assistant { background: white; border: 1px solid #dee2e6; border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: 0.5rem; padding: 1rem; background: white; border-top: 1px solid #dee2e6; }
.chat-input input { flex: 1; }
.bid-card { border-left: 4px solid var(--primary); }
.bid-card.accepted { border-left-color: var(--success); }
.bid-card.rejected { border-left-color: var(--danger); }
.status-badge { padding: 0.35em 0.65em; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.status-draft { background: #e9ecef; color: #495057; }
.status-bidding { background: #cff4fc; color: #055160; }
.status-in-progress { background: #fff3cd; color: #664d03; }
.status-completed { background: #d1e7dd; color: #0f5132; }
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: #dee2e6; }
.timeline-item { position: relative; padding-bottom: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -24px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid white; box-shadow: 0 0 0 2px var(--primary); }
.timeline-item.completed::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.rating-stars { color: #ffc107; }
.rating-stars .bi-star { color: #dee2e6; }
.project-photo { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform 0.3s; }
.project-photo:hover { transform: scale(1.02); }
.estimate-range { background: linear-gradient(90deg, #d1e7dd 0%, #fff3cd 50%, #f8d7da 100%); height: 8px; border-radius: 4px; position: relative; }
.estimate-marker { position: absolute; top: -4px; width: 16px; height: 16px; background: var(--primary); border-radius: 50%; transform: translateX(-50%); }
.dashboard-stat { text-align: center; padding: 1.5rem; }
.dashboard-stat .stat-value { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.dashboard-stat .stat-label { color: var(--secondary); font-size: 0.875rem; text-transform: uppercase; }
.notification-dot { position: absolute; top: -5px; right: -5px; width: 10px; height: 10px; background: var(--danger); border-radius: 50%; }
.contractor-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem; background: #e7f1ff; color: var(--primary); border-radius: 4px; font-size: 0.75rem; }
.pii-warning { background: #fff3cd; border: 1px solid #ffecb5; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.signature-box { border: 2px dashed #dee2e6; border-radius: 8px; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.3s; }
.signature-box:hover { border-color: var(--primary); background: rgba(13, 110, 253, 0.02); }
.signature-box.signed { border-style: solid; border-color: var(--success); background: #d1e7dd; }
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero .lead { font-size: 1.1rem; }
    .chat-message { max-width: 90%; }
}
