.split-layout { display: flex; height: 100vh; width: 100%; padding-top: 80px; }
.ride-sidebar { width: 450px; background: white; border-right: 1px solid #E2E8F0; padding: 40px; display: flex; flex-direction: column; z-index: 10; box-shadow: var(--shadow-lg); overflow-y: auto; }
.ride-map-container { flex: 1; position: relative; background: #F1F5F9; }
.full-map { height: 100%; width: 100%; }

.request-header h2 { color: var(--dark); font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.ride-input-group { margin-bottom: 24px; position: relative; }
.input-wrapper { display: flex; align-items: center; background: #F8FAFC; border: 2px solid transparent; border-radius: 16px; padding: 16px; transition: all 0.3s; }
.input-wrapper:focus-within { border-color: var(--primary); background: white; }
.input-wrapper i { color: var(--primary); margin-right: 15px; font-size: 20px; }
.ride-input { border: none; background: transparent; width: 100%; outline: none; font-size: 16px; color: var(--dark); font-weight: 500; }
.confirm-btn { margin-top: 20px; background: var(--primary); color: white; border: none; padding: 18px; border-radius: 16px; font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; transition: 0.3s; }
.confirm-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

.match-card { display: none; background: white; border: 1px solid var(--primary-light); border-radius: 20px; padding: 24px; margin-top: 30px; box-shadow: var(--shadow-lg); animation: slideUp 0.4s ease-out; }
.match-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.price-tag { font-size: 20px; font-weight: 800; color: var(--primary); background: var(--primary-light); padding: 5px 12px; border-radius: 8px; }

.suggestions-list { position: absolute; top: 100%; left: 0; width: 100%; background: white; border: 1px solid #E2E8F0; border-radius: 16px; margin-top: 8px; list-style: none; z-index: 100; box-shadow: var(--shadow-lg); display: none; padding: 8px; max-height: 250px; overflow-y: auto; }
.suggestions-list.active { display: block; }
.suggestion-item { padding: 12px 16px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; color: var(--dark); font-size: 14px; font-weight: 500; transition: 0.2s; gap: 10px; }
.suggestion-item:hover { background: #F1F5F9; color: var(--primary); }
.suggestion-icon { color: var(--secondary); font-size: 12px; }

.vehicle-select-grid { display: flex; gap: 15px; margin-bottom: 20px; }
.vehicle-option { flex: 1; border: 2px solid #F1F5F9; border-radius: 16px; padding: 15px; text-align: center; cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 200px; }
.vehicle-option:hover, .vehicle-option.selected { border-color: var(--primary); background: #F5F3FF; }
.vehicle-option img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 5px; display:block; }
.vehicle-option span { display: block; font-weight: 700; font-size: 14px; color: var(--dark); }

.seat-counter { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 16px; }
.seat-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #E2E8F0; background: white; font-size: 18px; cursor: pointer; color: var(--secondary); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.seat-btn:hover { border-color: var(--primary); color: var(--primary); }
.seat-display { font-size: 24px; font-weight: 800; color: var(--dark); min-width: 30px; text-align: center; }

#postRideActions { display: none; margin-top: 15px; padding: 15px; background: #F8FAFC; border-radius: 12px; border: 1px dashed var(--primary); text-align: center; }
.expiry-timer { font-size: 11px; color: var(--secondary); margin-top: 8px; font-weight: 600; }

.ride-status-fab { position: fixed; bottom: 30px; left: 30px; background: white; padding: 12px 20px; border-radius: 50px; box-shadow: var(--shadow-lg); display: none; align-items: center; gap: 10px; cursor: pointer; z-index: 900; font-weight: 700; color: var(--primary); border: 2px solid var(--primary); animation: slideUp 0.3s; }
.ride-status-fab:hover { transform: translateY(-3px); }
.pulse-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } }

.driver-queue-container { position: fixed; bottom: 30px; left: 30px; z-index: 2100; display: flex; flex-direction: column-reverse; gap: 10px; width: 320px; pointer-events: none; }
.request-card { background: white; padding: 16px; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); border: 1px solid #E2E8F0; pointer-events: auto; animation: slideUp 0.3s ease-out; }
.request-card h4 { margin: 0; font-size: 16px; color: var(--dark); font-weight: 700; }
.request-card p { margin: 4px 0 10px 0; font-size: 13px; color: var(--secondary); }
.req-actions-sm { display: flex; gap: 8px; }
.btn-sm { flex: 1; padding: 8px; border-radius: 8px; border: none; font-weight: 700; font-size: 12px; cursor: pointer; }
.btn-acc-sm { background: var(--success); color: white; }
.btn-rej-sm { background: #fee2e2; color: var(--danger); }

.passenger-table-container { max-height: 300px; overflow-y: auto; margin: 15px 0; border: 1px solid #E2E8F0; border-radius: 12px; overflow-x: hidden; }
.passenger-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.passenger-table th { background: #F8FAFC; padding: 10px; color: var(--secondary); font-weight: 600; font-size: 11px; text-transform: uppercase; border-bottom: 1px solid #E2E8F0; }
.passenger-table td { padding: 12px 10px; border-bottom: 1px solid #E2E8F0; color: var(--dark); font-weight: 500; vertical-align: middle; }
.passenger-table tr:last-child td { border-bottom: none; }

.p-status-badge { padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; display: inline-block; }
.st-accepted { background: #EFF6FF; color: var(--primary); border: 1px solid #DBEAFE; }
.st-started { background: #ECFDF5; color: var(--success); border: 1px solid #A7F3D0; }

.btn-table { padding: 8px 12px; border-radius: 8px; border: none; font-size: 11px; font-weight: 700; cursor: pointer; transition: 0.2s; white-space: nowrap; margin-right: 5px; display: inline-flex; align-items: center; gap: 5px; justify-content: center; }
.btn-start-ride { background: var(--primary); color: white; box-shadow: 0 2px 5px rgba(124, 58, 237, 0.3); }
.btn-start-ride:hover { background: var(--primary-dark); }
.btn-complete-ride { background: var(--success); color: white; box-shadow: 0 2px 5px rgba(16, 185, 129, 0.3); }
.btn-complete-ride:hover { transform: scale(1.05); }

.btn-cancel-row { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; width: 32px; height: 32px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.btn-cancel-row:hover { background: var(--danger); color: white; }

.history-container, .account-container { max-width: 800px; margin: 0 auto; padding: 20px; }
.history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.history-header h2 { font-size: 28px; color: var(--dark); font-weight: 800; }
.history-card { background: white; padding: 20px; border-radius: 16px; margin-bottom: 15px; box-shadow: var(--shadow-lg); border: 1px solid #E2E8F0; display: flex; align-items: center; gap: 20px; transition: 0.2s; }
.history-card:hover { transform: translateY(-3px); }
.history-date-box { background: #F1F5F9; border-radius: 12px; padding: 10px 15px; text-align: center; min-width: 80px; }
.h-date { font-weight: 700; color: var(--dark); font-size: 18px; line-height: 1; }
.h-month { color: var(--secondary); font-size: 12px; text-transform: uppercase; font-weight: 600; margin-top: 4px; }
.history-info { flex: 1; }
.h-route { font-weight: 700; color: var(--dark); font-size: 16px; margin-bottom: 6px; }
.h-meta { display: flex; gap: 15px; color: var(--secondary); font-size: 13px; font-weight: 500; }
.h-price { font-weight: 800; color: var(--primary); font-size: 18px; }
.empty-history { text-align: center; padding: 50px 20px; color: var(--secondary); }

.account-card { background: white; padding: 30px; border-radius: 24px; box-shadow: var(--shadow-lg); border: 1px solid #E2E8F0; text-align: center; margin-bottom: 30px; }
.account-pic { width: 100px; height: 100px; background: #F1F5F9; border-radius: 50%; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--secondary); border: 4px solid white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.account-name { font-size: 24px; font-weight: 800; color: var(--dark); margin-bottom: 5px; }
.account-badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; }
.badge-driver { background: #ECFDF5; color: var(--success); border: 1px solid #A7F3D0; }
.badge-passenger { background: #EFF6FF; color: var(--primary); border: 1px solid #DBEAFE; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; margin-top: 30px; }
.info-box { background: #F8FAFC; padding: 15px; border-radius: 12px; border: 1px solid #E2E8F0; }
.info-label { font-size: 11px; font-weight: 700; color: var(--secondary); text-transform: uppercase; margin-bottom: 5px; }
.info-val { font-size: 15px; font-weight: 600; color: var(--dark); }

.docs-section { margin-top: 30px; text-align: left; }
.docs-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 15px; }
.doc-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #E2E8F0; }
.doc-item:last-child { border-bottom: none; }
.doc-name { font-weight: 500; font-size: 14px; }
.doc-status { font-size: 12px; font-weight: 700; color: var(--success); }
.account-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }

@media screen and (max-width: 768px) {
    /* 📱 MOBILE RESPONSIVE FIXES FOR DASHBOARD MAP */
    /* 🟢 FIX: Removed the 160px padding and top offset so the map extends fully to the top */
    .split-layout { flex-direction: column; padding-top: 0; height: 100vh; position: relative; overflow: hidden; }
    .ride-map-container { position: absolute; top: 0; left: 0; width: 100%; height: 55%; z-index: 1; }
    .ride-sidebar { position: absolute; bottom: 0; left: 0; width: 100%; height: 45%; z-index: 100; border-radius: 24px 24px 0 0; border-right: none; border-top: 1px solid #E2E8F0; box-shadow: 0 -5px 25px rgba(0,0,0,0.15); padding: 25px 20px; background: white; overflow-y: auto; animation: slideUpBottom 0.4s ease-out; }
    @keyframes slideUpBottom { from { transform: translateY(100%); } to { transform: translateY(0); } }
    
    .account-container, .history-container { padding: 10px; margin-top: 20px; }
    .info-grid { grid-template-columns: 1fr; }
    
    .passenger-table-container { max-height: none; border: none; overflow: visible; }
    .passenger-table thead { display: none; }
    .passenger-table, .passenger-table tbody { display: flex; width: 100%; gap: 15px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
    .passenger-table tr { display: flex; flex-direction: column; min-width: 260px; background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); scroll-snap-align: center; position: relative; }
    .passenger-table td { display: block; padding: 4px 0; border: none; text-align: center; }
    .passenger-table td:nth-child(1) { font-weight: 800; color: var(--primary); font-size: 16px; margin-bottom: 5px; }
    .passenger-table td:nth-child(2)::before { content: "From: "; font-size: 11px; color: #94A3B8; }
    .passenger-table td:nth-child(3)::before { content: "To: "; font-size: 11px; color: #94A3B8; }
    .passenger-table td:last-child { margin-top: 15px; }
    .passenger-table td:last-child div { display: flex; width: 100%; gap: 10px; justify-content: space-between; }
    .btn-table.btn-start-ride, .btn-table.btn-complete-ride { flex: 1; padding: 12px; font-size: 14px; border-radius: 12px; }
    .btn-cancel-row { width: 44px; height: 44px; font-size: 18px; }
}

/* FIX: Ride Full Custom Classes (These sit outside the mobile query) */
.ride-full-warning { color: var(--danger); font-weight: 800; font-size: 13px; display: flex; align-items: center; gap: 5px; }
.btn-disabled { background: #CBD5E1 !important; color: white !important; cursor: not-allowed !important; box-shadow: none !important; transform: none !important; }
