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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideshow 24s infinite;
}

.map-container {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  position: relative;
  margin-top: 20px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

#home-map,
#map {
  width: 100%;
  height: 400px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.bg-slide:nth-child(1) {
  animation-delay: 0s;
}
.bg-slide:nth-child(2) {
  animation-delay: 3s;
}
.bg-slide:nth-child(3) {
  animation-delay: 6s;
}
.bg-slide:nth-child(4) {
  animation-delay: 9s;
}
.bg-slide:nth-child(5) {
  animation-delay: 12s;
}
.bg-slide:nth-child(6) {
  animation-delay: 15s;
}
.bg-slide:nth-child(7) {
  animation-delay: 18s;
}
.bg-slide:nth-child(8) {
  animation-delay: 21s;
}
.bg-slide:nth-child(9) {
  animation-delay: 24s;
}

@keyframes slideshow {
  0% {
    opacity: 0;
  }
  11.11% {
    opacity: 1;
  }
  22.22% {
    opacity: 1;
  }
  33.33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

nav {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f0f0f0;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 1px;
}

.main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 80px 20px 20px;
}

.main-content_home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
}

.register-container {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 450px;
  position: relative;
  overflow: hidden;
}

.register-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, #667eea, #764ba2);
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 2rem;
  font-weight: 600;
}

h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 2rem;
}

.form-group {
  margin-bottom: 20px;
}

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

input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 2px solid #e1e1e1;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

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

.password-container {
  position: relative;
}

.strength-indicator {
  margin-top: 8px;
}

.strength-bar-container {
  height: 4px;
  background-color: #e1e1e1;
  border-radius: 4px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.strength-text {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.weak {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: #c0392b;
}
.medium {
  background: linear-gradient(45deg, #ffa726, #ff9800);
  color: #e65100;
}
.strong {
  background: linear-gradient(45deg, #66bb6a, #4caf50);
  color: #2e7d32;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 25px 0;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
}

.checkbox-group label {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 40px;
  font-weight: 300;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-bottom: 30px;
}

.destination-input {
  width: 100%;
  padding: 20px 25px;
  font-size: 18px;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: center;
}

.destination-input:focus {
  outline: none;
  background: white;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.destination-input::placeholder {
  color: #888;
  font-style: italic;
}

.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
}

.suggestion-item {
  padding: 15px 20px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s;
}

.suggestion-item:hover {
  background: rgba(102, 126, 234, 0.1);
}

.suggestion-item:last-child {
  border-bottom: none;
}

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

.getstarted-btn {
  padding: 18px 50px;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.getstarted-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
  background: linear-gradient(45deg, #5a6fd8, #6a42a0);
}

.getstarted-btn:active {
  transform: translateY(-1px);
}

.getstarted-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.login-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.login-link {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

.login-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

.register-link {
  text-align: center;
  margin-top: 20px;
  color: #666;
}

.register-link a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.register-link a:hover {
  text-decoration: underline;
}

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

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.register-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
  display: none;
  animation: slideIn 0.3s ease;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #f5c6cb;
  display: none;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.forgot-password {
  text-align: center;
  margin-top: 15px;
}

.forgot-password a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
}

.forgot-password a:hover {
  text-decoration: underline;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 14px;
  backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    font-size: 14px;
  }

  .login-container {
    margin: 0 10px;
    padding: 30px 25px;
  }

  .nav-container {
    padding: 0 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .register-container {
    margin: 0 10px;
    padding: 30px 25px;
  }
  .hero-section {
    padding: 40px 15px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .destination-input {
    padding: 15px 20px;
    font-size: 16px;
  }

  .getstarted-btn {
    padding: 15px 40px;
    font-size: 16px;
  }

  .status-container {
    right: 10px;
    left: 10px;
    top: 90px;
  }

  .status-indicator {
    text-align: center;
  }

  .map-container {
    height: 50vh;
    border-radius: 15px 15px 0 0;
  }

  .history-container {
    margin: 0 1rem;
    padding: 1rem;
  }

  .search-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .control-panel {
    flex-direction: column;
    gap: 1rem;
  }
  .about-container {
    flex-direction: column;
    padding: 20px 25px;
  }
  .about-images {
    justify-content: flex-start;
  }
  .extra-info {
    padding: 20px 25px;
    margin: 20px auto 40px auto;
  }
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  display: none;
  animation: fadeIn 0.5s forwards;
}

.summary h3 {
  color: #495057;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.summary p {
  margin-bottom: 8px;
  color: #6c757d;
  font-size: 14px;
}

.summary strong {
  color: #495057;
}

.redirect-counter {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background: #e3f2fd;
  border-radius: 8px;
  color: #1976d2;
  font-weight: 500;
}

.history-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.history-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #28a745, #ffc107, #dc3545);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.search-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 2rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 15px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #007bff;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.history-item {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border: none;
  border-left: 4px solid #007bff;
  margin-bottom: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInUp 0.6s ease forwards;
  position: relative;
  overflow: hidden;
}

.history-item:nth-child(odd) {
  border-left-color: #28a745;
}

.history-item:nth-child(3n) {
  border-left-color: #ffc107;
}

.history-item:nth-child(4n) {
  border-left-color: #dc3545;
}

.history-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-left-width: 6px;
}

.history-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.history-item:hover::before {
  opacity: 1;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-text {
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.search-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.search-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn.repeat {
  background: #e3f2fd;
  color: #1976d2;
}

.action-btn.delete {
  background: #ffebee;
  color: #c62828;
}

.action-btn:hover {
  transform: scale(1.1);
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #dee2e6;
}

.empty-state h3 {
  margin-bottom: 1rem;
  color: #495057;
}

.control-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(248, 249, 250, 0.9);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.search-filter {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-input {
  padding: 0.5rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  background: white;
  transition: all 0.3s ease;
}

.filter-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.clear-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.clear-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.profile-card {
  max-width: 480px;
  margin: 100px auto 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  position: relative;
  z-index: 10;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #007bff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: white;
  margin-bottom: 20px;
  user-select: none;
  box-shadow: 0 0 15px #007bffaa;
}

.username {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.user-email {
  font-size: 1rem;
  color: #555;
  margin-bottom: 24px;
}

.btn-logout {
  width: 100%;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  padding: 12px;
  transition: background-color 0.3s ease;
  background-color: #dc3545;
  border: none;
  color: white;
  cursor: pointer;
}

.btn-logout:hover {
  background-color: #c82333;
}

.about-container {
  max-width: 1500px;
  margin: 40px auto;
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-text {
  flex: 1 1 350px;
}
.about-text h2 {
  font-weight: 700;
  font-size: 2.2rem;
  color: #d36f8f;
  margin-bottom: 16px;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
}
.btn-learn {
  background: #6c63ff;
  color: white;
  font-weight: 600;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
.btn-learn:hover {
  background: #5848c2;
}
.about-images {
  flex: 1 1 400px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.about-images img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgb(0 0 0 / 0.1);
  transition: transform 0.3s ease;
}
.about-images img:hover {
  transform: scale(1.1);
}
.extra-info {
  max-width: 1500px;
  margin: 30px auto 60px auto;
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.1);
  color: #444;
}
.extra-info h3 {
  color: #d36f8f;
  margin-bottom: 12px;
  font-size: 2rem;
}
.extra-info p,
.extra-info ul {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
