* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: '微軟正黑體', sans-serif;
  /* background-color: #f6f8f8;  */
  color: #333;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95)), url(../images/bg01.jpg);
}

.location-select-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
  animation: fadeInUp 1s ease;
}

.location-select-container h1 {
  color: #2c3e50;
  margin-bottom: 40px;
  font-size: 2.8em;
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  animation: slideDown 0.8s ease-out;
}

.location-select-container h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #3498db, #5dade2);
  border-radius: 2px;
}

.location-select-container h1::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: rgba(44, 62, 80, 0.1);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.location-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transform: scale(1);
  opacity: 0;
  animation: fadeInScale 0.6s ease forwards;
  position: relative; /* Add this for absolute positioning of badge */
  min-height: 280px;
  justify-content: center;
}

.location-card:nth-child(1) {
  animation-delay: 0.1s;
}
.location-card:nth-child(2) {
  animation-delay: 0.2s;
}
.location-card:nth-child(3) {
  animation-delay: 0.3s;
}

.location-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.location-card:hover i {
  /* color: #5dade2; */
  transform: scale(1.1);
}

.location-card i {
  font-size: 3rem;
  color: #3498db;
  transition: transform 0.4s ease, color 0.4s ease;
}

.address i {
  font-size: 1.5rem;
}

.location-card h2 {
  margin: 0;
  font-size: 1.5em;
  transition: color 0.3s ease;
}

.location-card:hover h2 {
  /* color: #5dade2; */
}

.location-card p {
  margin: 0;
  color: #666;
  font-size: 0.9em;
  line-height: 1.6;
}

.location-card .address {
  color: #95a5a6;
  font-size: 0.85em;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.location-card .facilities {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.location-card .facility-tag {
  background-color: #f0f7ff;
  color: #3498db;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.location-card .facility-tag i {
  font-size: 1em;
  color: #3498db;
}

.status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
}

.status-badge.available {
  background-color: #2ecc71;
}

.status-badge.maintenance {
  background-color: #e74c3c;
}

.copyright {
  width: 100%;
  margin-bottom: 10px;
  text-align: center;
  font-size: 12px;
  color: #424242c5;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .location-select-container {
    padding: 30px 10px;
  }

  .location-select-container h1 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .location-grid {
    gap: 20px;
    padding: 10px;
  }

  .location-card {
    padding: 20px;
    min-height: 240px;
  }

  .status-badge {
    padding: 3px 8px;
    font-size: 0.7em;
    top: 10px;
    right: 10px;
  }

  .location-card .facilities {
    gap: 5px;
  }

  .location-card .facility-tag {
    padding: 3px 8px;
    font-size: 0.75em;
  }
}

@media (max-width: 992px) {
  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}

.swal2-popup {
  border-radius: 15px !important;
  padding: 2em !important;
}

.swal2-title {
  color: #2c3e50 !important;
  font-size: 1.5em !important;
  font-weight: 600 !important;
  padding: 1em 0 !important;
}

.swal2-input-label {
  color: #34495e !important;
  font-size: 0.9em !important;
  margin-bottom: 0.5em !important;
}

.swal2-input {
  height: 3em !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0 1em !important;
  font-size: 1em !important;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
  margin: 1em auto !important;
}

.swal2-input:focus {
  border-color: #3498db !important;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2) !important;
}

.swal2-actions {
  margin-top: 1.5em !important;
}

.swal2-confirm {
  background: #3498db !important;
  border-radius: 8px !important;
  padding: 0.8em 2em !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
  background: #2980b9 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2) !important;
}

.swal2-cancel {
  background: #95a5a6 !important;
  border-radius: 8px !important;
  padding: 0.8em 2em !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.swal2-cancel:hover {
  background: #7f8c8d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(149, 165, 166, 0.2) !important;
}

.password-input-container {
  position: relative;
  width: 100%;
  margin: 1em 0;
}

.password-input-icon {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  color: #95a5a6;
  cursor: pointer;
  transition: color 0.3s ease;
}

.password-input-icon:hover {
  color: #3498db;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.swal2-validate-error {
  animation: shake 0.5s ease-in-out;
}

.swal2-loading {
  overflow: hidden;
}

.swal2-loading .swal2-actions {
  opacity: 0.5;
}
