/* ShedBid.com - eBay-Inspired Professional Design */

:root {
    --primary: #0654ba;
    --primary-dark: #044a9e;
    --secondary: #f7f7f7;
    --accent: #e53238;
    --accent-hover: #cc2c31;
    --success: #86b817;
    --warning: #f5af02;
    --danger: #e53238;
    --light: #ffffff;
    --dark: #191919;
    --gray: #707070;
    --gray-light: #e5e5e5;
    --border: #ddd;
    --bg: #f5f5f5;
    
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
    background: var(--light);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #191919;
}

.logo-text em {
    font-style: normal;
    color: #0654ba;
}

.logo span { color: var(--primary); }

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.nav { display: flex; gap: 20px; align-items: center; }

.nav a {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav a:hover, .nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    text-decoration: none;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid var(--border);
}

.nav-user span { color: var(--gray); font-size: 0.9rem; }

/* Driver Notification Bell - Prominent */
.driver-notif-bell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--border);
    border-radius: 25px;
    text-decoration: none !important;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 15px;
}
.driver-notif-bell:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none !important;
    color: var(--dark);
}
.driver-notif-bell.has-notifs {
    background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%);
    border-color: #f59f00;
    animation: bellBounce 1s infinite;
}
.driver-notif-bell .bell-icon {
    font-size: 1.5rem;
}
.driver-notif-bell .bell-badge {
    background: var(--danger);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}
.driver-notif-bell .bell-alert {
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: alertFlash 0.5s infinite;
}
@keyframes bellBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes alertFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Old notification bell (keep for compatibility) */
.notif-bell {
    position: relative;
    font-size: 1.2rem;
    text-decoration: none !important;
    padding: 5px 10px;
    background: var(--secondary);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.notif-bell:hover {
    background: var(--gray-light);
    text-decoration: none !important;
}
.notif-bell.has-notifs {
    background: var(--warning);
    border-color: var(--warning);
    animation: bellPulse 2s infinite;
}
.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
@keyframes bellPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary { 
    background: var(--primary); 
    color: white; 
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary { 
    background: var(--light); 
    color: var(--dark); 
    border: 1px solid var(--border); 
}
.btn-secondary:hover { 
    background: var(--secondary); 
    color: var(--dark); 
    border-color: var(--gray-light);
}

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #759e14; color: white; }

.btn-small { padding: 8px 16px; font-size: 0.875rem; }
.btn-block { display: block; width: 100%; }

/* Cards */
.card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-header {
    background: var(--secondary);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 { font-size: 1rem; font-weight: 600; color: var(--dark); text-transform: uppercase; letter-spacing: 0.03em; }
.card-body { padding: 20px; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark); font-size: 0.9rem; }

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--dark);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus { 
    outline: none; 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(6, 84, 186, 0.1);
}
.form-control::placeholder { color: var(--gray); }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23707070' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Job Cards */
.job-grid { display: grid; gap: 20px; }

.job-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
}

.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.job-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    background: var(--secondary);
}

.job-type { font-weight: 700; font-size: 1.2rem; color: var(--dark); }
.job-size { color: var(--gray); font-size: 0.9rem; margin-top: 2px; }
.job-deadline { text-align: right; }
.job-deadline .time { font-weight: 700; font-size: 1.1rem; }
.job-body { padding: 20px; }

.job-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.job-location { font-size: 0.9rem; }
.job-location strong { display: block; color: var(--dark); margin-bottom: 3px; font-weight: 600; }
.job-location span { color: var(--gray); display: block; line-height: 1.4; }
.job-arrow { font-size: 1.5rem; color: var(--primary); }

.job-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.job-distance { color: var(--gray); font-size: 0.9rem; }
.job-distance strong { color: var(--dark); }
.job-company { font-size: 0.85rem; color: var(--gray); }

.job-footer {
    background: var(--secondary);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

.job-pricing { display: flex; gap: 25px; }
.job-price { text-align: center; }
.job-price label { display: block; font-size: 0.7rem; color: var(--gray); text-transform: uppercase; margin-bottom: 3px; font-weight: 600; letter-spacing: 0.03em; }
.job-price .amount { font-weight: 700; font-size: 1.4rem; color: var(--primary); }
.job-price .amount.buy-now { color: var(--warning); }

/* Urgency Colors */
.urgent-red .time { color: var(--danger); }
.urgent-yellow .time { color: #c98f00; }
.urgent-green .time { color: var(--success); }

.urgent-red { border-left: 4px solid var(--danger); }
.urgent-yellow { border-left: 4px solid var(--warning); }
.urgent-green { border-left: 4px solid var(--success); }

/* Bids List */
.bid-list { margin-top: 15px; }

.bid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--secondary);
    border-radius: var(--radius);
    margin-bottom: 8px;
    border: 1px solid var(--border);
}

.bid-item:first-child {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
}

.bid-item:first-child .bid-driver { color: white; }
.bid-driver { font-weight: 600; }
.bid-amount { font-weight: 700; font-size: 1.2rem; }
.bid-loaded-mile { font-size: 0.8rem; color: var(--gray); }
.bid-item:first-child .bid-loaded-mile { color: rgba(255,255,255,0.8); }

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-success { background: #f0f9e8; border-color: var(--success); color: #4a7c0f; }
.alert-error { background: #fef2f2; border-color: var(--danger); color: #b91c1c; }
.alert-warning { background: #fffbeb; border-color: var(--warning); color: #b45309; }

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--light) 0%, var(--secondary) 100%);
    border-bottom: 1px solid var(--border);
}

.hero h1 { font-size: 2.8rem; margin-bottom: 15px; color: var(--dark); }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.2rem; color: var(--gray); max-width: 600px; margin: 0 auto 30px; }

.hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 40px; }
.stat { text-align: center; }
.stat-number { font-weight: 800; font-size: 2.5rem; color: var(--primary); }
.stat-label { color: var(--gray); font-size: 0.9rem; text-transform: uppercase; font-weight: 600; letter-spacing: 0.03em; }

/* Page Header */
.page-header { 
    padding: 40px 0; 
    background: var(--light); 
    margin-bottom: 30px; 
    border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2rem; margin-bottom: 8px; color: var(--dark); }
.page-header p { color: var(--gray); }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--border); }
.table th {
    background: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--gray);
}
.table tr:hover { background: var(--secondary); }

/* Footer */
.footer {
    background: var(--light);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
    color: var(--gray);
}

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.badge-open { background: var(--success); color: white; }
.badge-awarded { background: var(--primary); color: white; }
.badge-expired { background: var(--gray); color: white; }
.badge-cancelled { background: var(--danger); color: white; }

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-box { width: 100%; max-width: 450px; }
.auth-box .card-body { padding: 30px; }
.auth-footer { text-align: center; margin-top: 20px; color: var(--gray); }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; text-align: center; }
    .nav { flex-wrap: wrap; justify-content: center; }
    .nav-user { border-left: none; padding-left: 0; padding-top: 10px; border-top: 1px solid var(--border); }
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .job-route { grid-template-columns: 1fr; text-align: center; }
    .job-arrow { transform: rotate(90deg); }
    .job-footer { flex-direction: column; gap: 15px; }
}
