* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}
body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}
.container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  width: 400px;
  box-shadow: 0 8px 150px rgba(0, 0, 0, 0.15);
  border: 1px solid #ccc;
  font-weight: 500;
}

h2 {
  text-align: center;
  margin-bottom: 1rem;
}
.form-group {
  margin-bottom: 1rem;
  position: relative;
}
label {
  display: block;
  margin-bottom: 5px;
}
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px;
  padding-right: 40px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 38px;
  cursor: pointer;
  color: #555;
}
.inline-feedback {
  font-size: 0.85rem;
  color: red;
  margin-top: 5px;
}
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.forgot-password {
  display: block;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: black;
  text-decoration: none;
}
.signup-page {
  display: block;
  text-align: center;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: black;
  text-decoration: none;
}
.btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;

  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-weight: bold;
  cursor: pointer;
}
.btn:disabled {
  background-color: #999;
}
.spinner {
  display: none;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border: 3px solid #f3f3f3;
  border-top: 3px solid black;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: 1rem;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.social-buttons {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
}
.social-btn {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
}
.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo i {
  font-size: 3em;
  color: #667eea;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#mainInterface {
  display: none;
  width: 95%;
  max-width: 1200px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  text-align: center;
  font-size: 1.5em;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.main-content {
  padding: 30px;
}

.status-card {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.status-card h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.status-indicator {
  font-size: 2em;
  margin: 10px 0;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.interactive-map {
  background: #f8f9fa;
  border: 3px dashed #e9ecef;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.interactive-map:hover {
  background: #e9ecef;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.interactive-map i {
  font-size: 4em;
  color: #667eea;
  margin-bottom: 15px;
  animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.ride-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ride-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ride-card:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
}

.ride-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.emergency-section {
  background: #fff5f5;
  border: 2px solid #fed7d7;
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
  text-align: center;
  display: none;
}

.panic-button {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5722 100%);
  color: white;
  border: none;
  padding: 20px 40px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  margin: 20px 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.panic-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.panic-button:active {
  animation: shake 0.5s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.emergency-contacts {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  border: 2px solid #e9ecef;
  display: none;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding: 0 25px;
  }
  to {
    opacity: 1;
    max-height: 500px;
    padding: 25px;
  }
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin: 10px 0;
  background: #f8f9fa;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-item:hover {
  background: #667eea;
  color: white;
  transform: translateX(10px);
  border-color: #5a67d8;
}

.contact-item.selected {
  background: #48bb78;
  color: white;
  border-color: #38a169;
}

.floating-widgets {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.floating-widget {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.floating-widget:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #48bb78;
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
  transform: translateX(400px);
  transition: transform 0.3s ease;
  z-index: 200;
}

.notification.show {
  transform: translateX(0);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 300;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: white;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-button {
  padding: 12px 30px;
  margin: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.confirm-btn {
  background: #ff6b6b;
  color: white;
}

.cancel-btn {
  background: #e2e8f0;
  color: #4a5568;
}

.modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

footer {
  text-align: center;
  padding: 20px;
  color: #666;
  background: #f8f9fa;
  border-radius: 0 0 20px 20px;
}

.booking-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.booking-form input,
.booking-form select {
  padding: 12px 15px;
  border: 2px solid #e1e1e1;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.book-btn {
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.ride-status {
  display: none;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Location suggestion specific styles */
.autocomplete-container {
  position: relative;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}

.autocomplete-items div:hover {
  background-color: #e9e9e9;
}

.autocomplete-active {
  background-color: #667eea !important;
  color: #ffffff;
}

@media (max-width: 768px) {
  .ride-info-grid {
    grid-template-columns: 1fr;
  }

  .floating-widgets {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin: 20px 0;
  }
}
