body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 30px;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  color: #4a2d8b;
  margin-bottom: 30px;
  font-size: 28px;
}

h2 {
  color: #4a2d8b;
  margin: 30px 0 15px;
  font-size: 22px;
  text-align: center;
}

.form-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 14px;
  color: #555;
}

select {
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 16px;
  background-color: #fff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

select:focus {
  outline: none;
  border-color: #4a2d8b;
  box-shadow: 0 0 0 2px rgba(74, 45, 139, 0.2);
}

.button-container {
  text-align: center;
  margin: 20px 0;
}

button {
  background-color: #4a2d8b;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  padding: 12px 40px;
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

button:hover {
  background-color: #3a216b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#results {
  margin-top: 30px;
  display: none;
}

.result-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.result-header {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  color: #4a2d8b;
}

.result-detail {
  display: flex;
  margin-bottom: 12px;
  font-size: 15px;
}

.result-label {
  font-weight: bold;
  width: 180px;
  flex-shrink: 0;
  color: #555;
}

.journey-segment {
  margin: 25px 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.purple-segment {
  background-color: rgba(128, 0, 128, 0.05);
  border-left: 5px solid purple;
}

.green-segment {
  background-color: rgba(0, 128, 0, 0.05);
  border-left: 5px solid green;
}

.transfer-segment {
  background-color: rgba(255, 193, 7, 0.05);
  border-left: 5px solid #ffc107;
  margin: 15px 0 15px 40px;
}

.total-journey {
  margin-top: 30px;
  padding: 20px;
  background-color: #e6f7ff;
  border-radius: 8px;
  border-left: 5px solid #1890ff;
}

.note {
  margin-top: 20px;
  font-size: 14px;
  color: #666;
  background-color: #fff9e6;
  padding: 15px;
  border-radius: 4px;
  border-left: 4px solid #ffcc00;
  line-height: 1.5;
}

.line-indicator {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.purple {
  background-color: purple;
}

.green {
  background-color: green;
}

.metro-map {
  margin: 40px auto;
  text-align: center;
}

.metro-map-container {
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.metro-map img {
  max-width: 100%;
  height: auto;
  display: block;
}

.interactive-map-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #f0f0f0;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.interactive-map-btn:hover {
  background-color: #e0e0e0;
}

/* Media Queries */
@media (max-width: 1024px) {
  .form-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    margin: 15px;
    padding: 20px;
  }
  
  .form-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  .result-detail {
    flex-direction: column;
  }
  
  .result-label {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .transfer-segment {
    margin-left: 20px;
  }
  
  .journey-segment, 
  .result-card {
    padding: 15px;
  }
}


.app-navigation {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.app-navigation h3 {
  margin-bottom: 15px;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  background-color: white;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  width: 120px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nav-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.nav-text {
  font-size: 14px;
  text-align: center;
}

.secondary-button {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  border: 1px solid #ddd;
  margin: 0 10px;
}

.station-links-container {
  margin-top: 20px;
  padding: 15px;
  background-color: #f0f8ff;
  border-radius: 8px;
  text-align: center;
}

.station-link {
  display: inline-block;
  margin: 10px;
  padding: 8px 15px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #4a2d8b;
  font-weight: bold;
  transition: all 0.2s;
}

.station-link:hover {
  background-color: #4a2d8b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.secondary-button {
  display: inline-block;
  background-color: #f0f0f0;
  color: #333;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
  border: 1px solid #ddd;
  margin: 10px;
}

.secondary-button:hover {
  background-color: #e0e0e0;
}

.transfer-guidance {
  margin-top: 15px;
  padding: 15px;
  background-color: #FFF9C4;
  border-radius: 6px;
  border-left: 4px solid #FFC107;
}

.transfer-guidance h4 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #333;
}

.transfer-steps ol {
  padding-left: 25px;
}

.transfer-steps li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.time-note {
  margin: 10px 0;
  font-weight: bold;
  color: #e65100;
}

.transfer-tips {
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.transfer-tips ul {
  padding-left: 25px;
  margin-top: 5px;
}

.transfer-tips li {
  margin-bottom: 6px;
  font-size: 0.9em;
}

.copyright-disclaimer {
  margin-top: 40px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #6c757d;
  font-size: 14px;
  color: #495057;
  line-height: 1.6;
}

.copyright-disclaimer p {
  margin-bottom: 10px;
}

.copyright-disclaimer a {
  color: #4a2d8b;
  text-decoration: none;
}

.copyright-disclaimer a:hover {
  text-decoration: underline;
}

.fare-discount {
  font-size: 0.85em;
  color: #28a745;
  margin-left: 5px;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Add these styles to your existing CSS file */

/* Contact Section Styles */
.contact-section {
  margin: 30px 0;
  padding: 20px;
  background-color: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-section h3 {
  margin-top: 0;
  color: var(--heading-color);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.social-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-button:hover {
  background-color: var(--button-hover-bg-color);
  transform: translateY(-2px);
}

.social-button img {
  width: 24px;
  height: 24px;
}

.contact-message {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-top: 10px;
}

/* Dark theme compatibility */
[data-theme="dark"] .contact-section {
  background-color: var(--card-bg-color);
}

[data-theme="dark"] .social-button {
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
}

[data-theme="dark"] .social-button:hover {
  background-color: var(--button-hover-bg-color);
}

/* Responsive design for small screens */
@media (max-width: 600px) {
  .social-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .social-button {
    width: 100%;
    justify-content: center;
  }
}

/* Fare Update Notification Styles */
.fare-notification {
  background: #fff3cd;
  color: #856404;
  border-bottom: 1px solid #ffeaa7;
  animation: slideDown 0.3s ease-out;
  transition: opacity 0.3s ease;
}

.fare-notification-content {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.fare-notification-icon {
  font-size: 18px;
  margin-right: 10px;
}

.fare-notification-text {
  flex: 1;
}

.fare-notification-text a {
  color: #856404;
  text-decoration: underline;
  margin-left: 10px;
}

.fare-notification-text a:hover {
  color: #533f03;
}

.fare-notification-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #856404;
  padding: 0 10px;
  line-height: 1;
}

.fare-notification-close:hover {
  color: #533f03;
}

/* Fare version indicator */
.fare-version {
  font-size: 12px;
  color: #28a745;
  margin-left: 8px;
  cursor: help;
}

/* Fare discount text */
.fare-discount {
  font-size: 14px;
  color: #28a745;
  font-weight: normal;
}

/* Animation for notification */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Loading state for button */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive styles */
@media (max-width: 768px) {
  .fare-notification-content {
    padding: 10px 15px;
    font-size: 14px;
  }
  
  .fare-notification-icon {
    display: none;
  }
  
  .fare-notification-text a {
    display: block;
    margin-left: 0;
    margin-top: 5px;
  }
}