body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding-bottom: 70px; /* Account for fixed bottom navigation */
  color: #333;
}

/* Occupancy Visualization */
.occupancy-square {
  width: 20px;
  height: 20px;
  margin: 0 auto;
  border-radius: 4px;
  border: 1px solid #333;
}

.occupancy-square.crowded {
  background: #ff4444;
}

.occupancy-square.moderate {
  background: #ffaa00;
}

.occupancy-square.low {
  background: #44ff44;
}

.occupancy-square.empty {
  background: #4444ff;
}

.occupancy-marker {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

#checkBusBtn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#checkBusBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

#occupancyLegend {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Map */
#map { border-radius:10px; box-shadow:0 4px 8px rgba(0,0,0,0.1); }

/* Bus List */
#busList .col-12 {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: #333;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#busList .col-12:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Modals */
.modal-content {
  border-radius: 20px;
  overflow: hidden;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-bottom: none;
}
.modal-body {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* Payment Tabs */
#paymentTabs .nav-link {
  color: #667eea;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s ease;
}
#paymentTabs .nav-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
}

/* QR */
#qrCodeContainer img, #qrCodeContainer canvas {
  width: 200px;
  height: 200px;
  border: 3px solid #667eea;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Buttons */
.btn-success, .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-success:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media(max-width:768px){
  #busList .col-12 { font-size:0.9rem; }
  #qrCodeContainer img,#qrCodeContainer canvas { width:150px; height:150px; }
}

/* Modern Card Styles */
.modern-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.price {
  font-size: 1.5em;
  font-weight: bold;
  color: #EF6351;
  margin-top: 10px;
}

/* user */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --background-color: #ecf0f1;
    --text-color: #2c3e50;
    --card-bg-color: #ffffff;
    --border-radius: 8px;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
}

.page-header {
    background-color: var(--primary-color);
    padding: 40px 20px 20px;
    color: #fff;
    text-align: center;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}

.user-info h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
}

.user-email {
    margin: 5px 0;
    font-size: 0.9em;
    opacity: 0.8;
}

.user-rating span {
    color: #f1c40f;
    font-size: 1.2em;
}

.page-main {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.card {
    background-color: var(--card-bg-color);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
}

.card h2 {
    color: var(--text-color);
    font-size: 1.5em;
    margin-top: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.current-trip .status {
    font-style: italic;
    color: #27ae60;
    font-weight: 600;
}

.trip-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.driver-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.driver-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.map-placeholder {
    background-color: #bdc3c7;
    height: 150px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #7f8c8d;
    font-style: italic;
}

.cancel-button {
    width: 100%;
    padding: 12px;
    background-color: #e74c3c;
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.cancel-button:hover {
    background-color: #c0392b;
}

.history-list {
    list-style-type: none;
    padding: 0;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.history-item .cost {
    font-weight: 700;
    color: var(--secondary-color);
}

.page-footer {
    text-align: center;
    font-size: 0.8em;
    color: #7f8c8d;
    padding: 20px;
}

@media (min-width: 600px) {
    .trip-details {
        flex-direction: row;
        justify-content: space-between;
    }

    .driver-info, .map-placeholder {
        flex: 1;
    }

}