/* ── Axis LGX Platform Styles ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:wght@400;500;600&display=swap');

:root {
    --lgx-navy:   #0d1b2a;
    --lgx-navy2:  #1a2e44;
    --lgx-orange: #e8600a;
    --lgx-light:  #f4f6f8;
    --lgx-text:   #1a2e44;
    --lgx-muted:  #5a6e82;
    --lgx-border: #d8e3ec;
    --lgx-white:  #ffffff;
    --lgx-success:#16a34a;
    --lgx-danger: #dc2626;
    --lgx-warn:   #d97706;
}

.lgx-wrap { font-family: 'Barlow', sans-serif; color: var(--lgx-text); max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; }

/* ── Auth ──────────────────────────────────────────────────────────────── */
.lgx-auth-wrap  { display: flex; justify-content: center; padding: 48px 20px; background: var(--lgx-light); min-height: 80vh; align-items: flex-start; }
.lgx-auth-box   { background: var(--lgx-white); border: 1px solid var(--lgx-border); border-radius: 8px; padding: 36px 32px; width: 100%; max-width: 460px; }
.lgx-auth-box-wide { max-width: 680px; }
.lgx-auth-logo  { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 700; color: var(--lgx-navy); letter-spacing: 1px; margin-bottom: 8px; }
.lgx-auth-logo span { color: var(--lgx-orange); }
.lgx-auth-box h2 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.lgx-sub { font-size: 13px; color: var(--lgx-muted); margin-bottom: 20px; }
.lgx-auth-links { margin-top: 18px; text-align: center; font-size: 13px; color: var(--lgx-muted); }
.lgx-auth-links a { color: var(--lgx-orange); text-decoration: none; }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.lgx-form { display: flex; flex-direction: column; gap: 14px; }
.lgx-field { display: flex; flex-direction: column; gap: 5px; }
.lgx-field label { font-size: 12px; font-weight: 600; color: var(--lgx-muted); text-transform: uppercase; letter-spacing: .5px; }
.lgx-field input, .lgx-field select, .lgx-field textarea {
    border: 1px solid var(--lgx-border); border-radius: 5px; padding: 10px 12px;
    font-size: 14px; font-family: 'Barlow', sans-serif; color: var(--lgx-text);
    background: var(--lgx-white); width: 100%; transition: border-color .2s;
}
.lgx-field input:focus, .lgx-field select:focus, .lgx-field textarea:focus { outline: none; border-color: var(--lgx-orange); }
.lgx-field-inline { flex-direction: row; align-items: center; gap: 8px; }
.lgx-field-inline label { text-transform: none; font-size: 14px; font-weight: 400; cursor: pointer; color: var(--lgx-text); }
.lgx-field-full { grid-column: 1 / -1; }
.req { color: var(--lgx-orange); }
.lgx-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lgx-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.lgx-form-section-title { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--lgx-orange); text-transform: uppercase; border-bottom: 1px solid var(--lgx-border); padding-bottom: 6px; margin-top: 4px; }
.lgx-checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lgx-check-label { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 400; cursor: pointer; text-transform: none; letter-spacing: 0; color: var(--lgx-text); }
.lgx-check-label input { width: auto; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.lgx-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 5px; font-size: 13px; font-weight: 600; font-family: 'Barlow', sans-serif; cursor: pointer; border: 1.5px solid transparent; text-decoration: none; transition: background .2s, color .2s; white-space: nowrap; }
.lgx-btn-primary { background: var(--lgx-orange); color: #fff; border-color: var(--lgx-orange); }
.lgx-btn-primary:hover { background: #cf5208; border-color: #cf5208; color: #fff; }
.lgx-btn-outline { background: transparent; color: var(--lgx-navy); border-color: var(--lgx-border); }
.lgx-btn-outline:hover { background: var(--lgx-light); }
.lgx-btn-success { background: var(--lgx-success); color: #fff; border-color: var(--lgx-success); }
.lgx-btn-danger  { background: transparent; color: var(--lgx-danger); border-color: #fca5a5; }
.lgx-btn-danger:hover { background: #fee2e2; }
.lgx-btn-full { width: 100%; justify-content: center; padding: 13px; font-size: 14px; }
.lgx-btn-sm { padding: 6px 12px; font-size: 12px; }

/* ── Messages ──────────────────────────────────────────────────────────── */
.lgx-msg { padding: 10px 14px; border-radius: 5px; font-size: 13px; margin-bottom: 4px; }
.lgx-msg-error   { background: #fee2e2; color: var(--lgx-danger); border: 1px solid #fca5a5; }
.lgx-msg-success { background: #dcfce7; color: var(--lgx-success); border: 1px solid #86efac; }
.lgx-msg-info    { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.lgx-info { font-size: 14px; padding: 12px; background: var(--lgx-light); border-radius: 6px; }
.lgx-empty { text-align: center; padding: 48px 24px; color: var(--lgx-muted); font-size: 15px; background: var(--lgx-light); border-radius: 8px; }
.lgx-notice { padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; }
.lgx-notice-warn { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }

/* ── Dashboard Header ──────────────────────────────────────────────────── */
.lgx-dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 14px; }
.lgx-dashboard-header h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.lgx-dashboard-header p { color: var(--lgx-muted); font-size: 14px; }
.lgx-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Stats ─────────────────────────────────────────────────────────────── */
.lgx-stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 28px; }
.lgx-stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lgx-stat-card { background: var(--lgx-white); border: 1px solid var(--lgx-border); border-radius: 8px; padding: 18px 16px; text-align: center; }
.lgx-stat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 700; line-height: 1; }
.lgx-stat-label { font-size: 12px; color: var(--lgx-muted); margin-top: 4px; }

/* ── Badges ────────────────────────────────────────────────────────────── */
.lgx-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.lgx-badge-warn { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; background: #fef3c733; color: #d97706; border: 1px solid #d9770644; }

/* ── Tabs ──────────────────────────────────────────────────────────────── */
.lgx-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--lgx-border); margin-bottom: 20px; flex-wrap: wrap; }
.lgx-tab { background: none; border: none; padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--lgx-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: 'Barlow', sans-serif; transition: color .2s; }
.lgx-tab:hover { color: var(--lgx-navy); }
.lgx-tab-active { color: var(--lgx-orange); border-bottom-color: var(--lgx-orange); }
.lgx-tab-panel { }

/* ── Table ─────────────────────────────────────────────────────────────── */
.lgx-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--lgx-border); }
.lgx-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--lgx-white); }
.lgx-table th { background: var(--lgx-navy); color: #fff; padding: 11px 14px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.lgx-table td { padding: 11px 14px; border-bottom: 1px solid var(--lgx-border); vertical-align: middle; }
.lgx-table tr:last-child td { border-bottom: none; }
.lgx-table tr:hover td { background: #f8fafc; }
.lgx-table code { background: #f0f4f8; padding: 2px 7px; border-radius: 3px; font-size: 11px; }
.lgx-action-group { display: flex; gap: 6px; flex-wrap: wrap; }

/* ── Load Board Cards ──────────────────────────────────────────────────── */
.lgx-filter-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.lgx-filter-input { border: 1px solid var(--lgx-border); border-radius: 5px; padding: 9px 12px; font-size: 13px; font-family: 'Barlow', sans-serif; min-width: 160px; flex: 1; }
.lgx-page-header { margin-bottom: 24px; }
.lgx-page-header h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 30px; font-weight: 700; }
.lgx-page-header p { color: var(--lgx-muted); font-size: 14px; }

.lgx-load-card { background: var(--lgx-white); border: 1px solid var(--lgx-border); border-radius: 8px; padding: 20px; margin-bottom: 14px; transition: border-color .2s, box-shadow .2s; }
.lgx-load-card:hover { border-color: var(--lgx-orange); box-shadow: 0 2px 12px rgba(232,96,10,.08); }
.lgx-load-route { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.lgx-route-point { }
.lgx-route-city  { font-size: 18px; font-weight: 700; font-family: 'Barlow Condensed', sans-serif; line-height: 1; }
.lgx-route-state { font-size: 12px; color: var(--lgx-muted); margin-top: 2px; }
.lgx-route-arrow { font-size: 20px; color: var(--lgx-orange); }
.lgx-load-meta   { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 12px; color: var(--lgx-muted); margin-bottom: 14px; }
.lgx-meta-item strong { color: var(--lgx-text); }
.lgx-load-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--lgx-border); }
.lgx-load-rate   { }
.lgx-rate-val    { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; color: var(--lgx-navy); }
.lgx-rate-type   { font-size: 12px; color: var(--lgx-muted); margin-left: 2px; }
.lgx-rate-neg    { font-size: 14px; color: var(--lgx-muted); }
.lgx-load-actions { display: flex; align-items: center; gap: 12px; }
.lgx-bid-count   { font-size: 12px; color: var(--lgx-muted); }

/* ── Shipper Tracking ──────────────────────────────────────────────────── */
.lgx-shipment-card { background: var(--lgx-white); border: 1px solid var(--lgx-border); border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.lgx-shipment-done { border-color: #86efac; }
.lgx-shipment-top  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.lgx-shipment-route { display: flex; align-items: center; gap: 20px; }
.lgx-route-block  { }
.lgx-route-label  { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--lgx-muted); text-transform: uppercase; margin-bottom: 4px; }
.lgx-route-city   { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; line-height: 1; }
.lgx-route-state  { font-size: 13px; color: var(--lgx-muted); }
.lgx-route-line   { text-align: center; }
.lgx-route-arrow-big { font-size: 28px; color: var(--lgx-orange); line-height: 1; }
.lgx-route-equip  { font-size: 11px; color: var(--lgx-muted); }
.lgx-shipment-meta-right { text-align: right; }
.lgx-shipment-ref  { font-size: 12px; color: var(--lgx-muted); margin-top: 6px; }
.lgx-shipment-date { font-size: 12px; color: var(--lgx-muted); margin-top: 4px; }
.lgx-shipment-carrier { font-size: 12px; color: var(--lgx-muted); margin-top: 4px; }

/* Tracking Timeline */
.lgx-tracking-timeline { display: flex; align-items: center; padding: 16px 0; border-top: 1px solid var(--lgx-border); margin-bottom: 14px; }
.lgx-step  { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 80px; }
.lgx-step-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--lgx-border); background: var(--lgx-white); }
.lgx-step-label { font-size: 11px; color: var(--lgx-muted); text-align: center; white-space: nowrap; }
.lgx-step-done .lgx-step-dot { background: var(--lgx-success); border-color: var(--lgx-success); }
.lgx-step-done .lgx-step-label { color: var(--lgx-success); font-weight: 600; }
.lgx-step-active .lgx-step-dot { background: var(--lgx-orange); border-color: var(--lgx-orange); box-shadow: 0 0 0 4px rgba(232,96,10,.15); }
.lgx-step-active .lgx-step-label { color: var(--lgx-orange); font-weight: 700; }
.lgx-step-line { flex: 1; height: 2px; background: var(--lgx-border); min-width: 24px; }
.lgx-line-done { background: var(--lgx-success); }
.lgx-tracking-cancelled { font-size: 13px; color: var(--lgx-danger); }

/* Tracking Log */
.lgx-tracking-log { background: var(--lgx-light); border-radius: 6px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.lgx-log-entry { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.lgx-log-time { color: var(--lgx-muted); min-width: 120px; }
.lgx-log-location { color: var(--lgx-muted); }
.lgx-log-note { color: var(--lgx-text); }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.lgx-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lgx-modal-box { background: var(--lgx-white); border-radius: 10px; padding: 28px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.lgx-modal-wide { max-width: 720px; }
.lgx-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.lgx-modal-header h3 { font-size: 18px; font-weight: 700; font-family: 'Barlow Condensed', sans-serif; }
.lgx-modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--lgx-muted); padding: 4px 8px; border-radius: 4px; }
.lgx-modal-close:hover { background: var(--lgx-light); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lgx-grid-2, .lgx-grid-3 { grid-template-columns: 1fr; }
    .lgx-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .lgx-stats-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .lgx-checkbox-grid { grid-template-columns: repeat(2, 1fr); }
    .lgx-shipment-top { flex-direction: column; }
    .lgx-shipment-meta-right { text-align: left; }
    .lgx-tracking-timeline { overflow-x: auto; }
    .lgx-dashboard-header { flex-direction: column; }
    .lgx-filter-bar { flex-direction: column; }
    .lgx-modal-box { margin: 10px; }
}
