/* ===== CSS Variables ===== */ :root { --bg: #0d0f14; --surface: #161a24; --surface2: #1e2435; --border: #2a3045; --accent: #f5a623; --accent2: #ff6b35; --text: #e8eaf0; --text-muted: #7a8299; --success: #2ecc71; --danger: #e74c3c; --radius: 12px; --radius-sm: 8px; --shadow: 0 4px 24px rgba(0,0,0,0.4); --font-head: 'Syne', sans-serif; --font-body: 'DM Sans', sans-serif; } /* ===== Reset ===== */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.6; min-height: 100vh; } /* ===== Navbar ===== */ .navbar { display: flex; align-items: center; gap: 1.5rem; padding: 0 2rem; height: 64px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; } .logo { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--accent); text-decoration: none; letter-spacing: -0.5px; margin-right: auto; } .nav-links { display: flex; gap: 0.25rem; } .nav-link { text-decoration: none; color: var(--text-muted); font-size: 0.875rem; font-weight: 500; padding: 0.45rem 0.9rem; border-radius: var(--radius-sm); transition: all 0.2s; } .nav-link:hover { color: var(--text); background: var(--surface2); } .nav-link.active { color: var(--accent); background: rgba(245,166,35,0.1); } .nav-status { font-size: 1.2rem; color: var(--text-muted); transition: color 0.3s; } .nav-status.online { color: var(--success); } .nav-status.offline { color: var(--danger); } /* ===== Main ===== */ .main-content { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; } /* ===== Page Header ===== */ .page-header { margin-bottom: 2.5rem; } .page-title { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; letter-spacing: -1px; line-height: 1.1; } .accent { color: var(--accent); } .page-sub { color: var(--text-muted); margin-top: 0.5rem; font-size: 1rem; } /* ===== Cards ===== */ .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; } .step-label { font-family: var(--font-head); font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; } /* ===== Form ===== */ .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; } .form-group { display: flex; flex-direction: column; gap: 0.4rem; } .form-label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.3px; } .form-input, .form-select { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.65rem 0.9rem; color: var(--text); font-family: var(--font-body); font-size: 0.9rem; transition: border-color 0.2s; outline: none; width: 100%; } .form-input:focus, .form-select:focus { border-color: var(--accent); } .form-select:disabled { opacity: 0.4; cursor: not-allowed; } .form-select option { background: var(--surface2); } /* ===== Route Summary ===== */ .route-summary { margin-top: 1.25rem; padding: 0.85rem 1.1rem; background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.25); border-radius: var(--radius-sm); color: var(--accent); font-size: 0.9rem; font-weight: 500; } .total-box { margin-top: 1rem; padding: 0.85rem 1.1rem; background: rgba(46,204,113,0.08); border: 1px solid rgba(46,204,113,0.25); border-radius: var(--radius-sm); color: var(--success); font-size: 0.95rem; margin-bottom: 1.25rem; } /* ===== Buttons ===== */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.65rem 1.4rem; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; } .btn-primary { background: var(--accent); color: #0d0f14; font-weight: 700; } .btn-primary:hover { background: #ffb94a; transform: translateY(-1px); } .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } .btn-outline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); } .btn-outline:hover { border-color: var(--accent); color: var(--accent); } .btn-danger { background: rgba(231,76,60,0.15); color: var(--danger); border: 1px solid rgba(231,76,60,0.3); } .btn-danger:hover { background: rgba(231,76,60,0.25); } .btn-full { width: 100%; } /* ===== Search card ===== */ .search-card .search-row { display: flex; gap: 1rem; align-items: center; } /* ===== Bookings ===== */ .result-count { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; } .booking-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; transition: border-color 0.2s; } .booking-item.active { border-left: 3px solid var(--success); } .booking-item.cancelled { border-left: 3px solid var(--danger); opacity: 0.7; } .booking-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .booking-id { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--accent); } .booking-status { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; padding: 0.25rem 0.6rem; border-radius: 4px; } .status-active { background: rgba(46,204,113,0.15); color: var(--success); } .status-cancelled { background: rgba(231,76,60,0.15); color: var(--danger); } .booking-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; } .booking-field { margin-bottom: 0.5rem; } .booking-field span { display: block; font-size: 0.75rem; color: var(--text-muted); } .booking-field strong { font-size: 0.9rem; } .total-field strong { color: var(--accent); font-size: 1rem; } .booking-footer { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); } /* ===== Providers ===== */ .providers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; } .provider-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; } .provider-header { display: flex; align-items: center; gap: 1rem; } .provider-icon { font-size: 2rem; } .provider-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; } .provider-meta { font-size: 0.8rem; color: var(--text-muted); } .coverage-details summary { font-size: 0.85rem; color: var(--text-muted); cursor: pointer; padding: 0.4rem 0; } .coverage-details summary:hover { color: var(--text); } .district-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; } .district-tag { background: var(--surface2); border: 1px solid var(--border); border-radius: 4px; padding: 0.2rem 0.5rem; font-size: 0.75rem; color: var(--text-muted); } .policy-box { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; font-size: 0.82rem; color: var(--text-muted); white-space: pre-wrap; max-height: 280px; overflow-y: auto; line-height: 1.7; } /* ===== Districts / Routes ===== */ .districts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; } .district-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; } .district-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; } .district-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; } .district-count { font-size: 0.75rem; color: var(--text-muted); background: var(--surface2); padding: 0.2rem 0.5rem; border-radius: 4px; } .price-range { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; font-size: 0.85rem; } .price-label { color: var(--text-muted); } .price-val { color: var(--accent); font-weight: 600; } .stops-details summary { font-size: 0.82rem; color: var(--text-muted); cursor: pointer; padding: 0.3rem 0; } .stops-list { margin-top: 0.5rem; } .stop-row { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; } .stop-row:last-child { border-bottom: none; } .stop-price { color: var(--accent); font-weight: 600; } /* ===== AI Chat ===== */ .chat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; height: calc(100vh - 280px); min-height: 500px; } .chat-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; overflow-y: auto; } .sidebar-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.6rem; } .sidebar-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.4rem; } .suggestions { display: flex; flex-direction: column; gap: 0.4rem; } .suggestion-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; text-align: left; transition: all 0.2s; font-family: var(--font-body); } .suggestion-btn:hover { border-color: var(--accent); color: var(--text); } .chat-main { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; } .chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; } .chat-message { display: flex; } .chat-message.user { justify-content: flex-end; } .msg-bubble { max-width: 70%; padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.9rem; line-height: 1.6; } .chat-message.user .msg-bubble { background: var(--accent); color: #0d0f14; font-weight: 500; border-bottom-right-radius: 4px; } .chat-message.assistant .msg-bubble { background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; } /* Typing animation */ .typing { display: flex; align-items: center; gap: 5px; padding: 1rem; } .typing span { width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%; animation: bounce 1.2s infinite; } .typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; } @keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-8px)} } .chat-input-area { display: flex; gap: 0.75rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border); } .chat-input { flex: 1; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.65rem 1rem; color: var(--text); font-family: var(--font-body); font-size: 0.9rem; outline: none; } .chat-input:focus { border-color: var(--accent); } /* ===== Modal ===== */ .modal { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 200; backdrop-filter: blur(4px); } .modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; max-width: 480px; width: 90%; text-align: center; box-shadow: var(--shadow); } .modal-icon { font-size: 2.5rem; margin-bottom: 0.75rem; } .modal-box h2 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 1.25rem; } .booking-result { text-align: left; margin-bottom: 1.5rem; } .result-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; } .result-row span { color: var(--text-muted); } .result-row:last-child { border-bottom: none; } .total-row strong { color: var(--accent); font-size: 1rem; } /* ===== Toast ===== */ .toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem 1.25rem; font-size: 0.875rem; z-index: 300; animation: slideIn 0.3s ease; box-shadow: var(--shadow); } .toast.success { border-left: 3px solid var(--success); } .toast.error { border-left: 3px solid var(--danger); } @keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: none; opacity: 1; } } /* ===== Utilities ===== */ .hidden { display: none !important; } .loading { padding: 2rem; text-align: center; color: var(--text-muted); } .empty-state { text-align: center; padding: 3rem; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; } /* ===== Scrollbar ===== */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } /* ===== Responsive ===== */ @media (max-width: 768px) { .navbar { padding: 0 1rem; } .nav-links { display: none; } .main-content { padding: 1.5rem 1rem; } .page-title { font-size: 1.8rem; } .form-grid { grid-template-columns: 1fr; } .chat-layout { grid-template-columns: 1fr; height: auto; } .chat-sidebar { display: none; } .booking-body { grid-template-columns: 1fr; } .search-card .search-row { flex-direction: column; } }