/* City Selection Modal Styles */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  position: relative;
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

/* Modal logo matching sidebar logo style */
.modal-logo {
  font-family: 'Roboto', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  display: block;
}

.modal-logo .logo-text {
  color: #ffffff;
}

.modal-logo .logo-r {
  background: linear-gradient(45deg, #ff4444, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  font-weight: 900;
}

.modal-header p {
  margin: 0;
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* Steps Navigation */
.selection-steps {
  position: relative;
  min-height: 300px;
}

.step {
  display: none;
  animation: slideInRight 0.3s ease-out;
}

.step.active {
  display: block;
}

.step h3 {
  margin: 0 0 20px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.option-card {
  background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 100%);
  border: 2px solid #444;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  min-height: 100px;
  justify-content: center;
}

.option-card:hover {
  background: linear-gradient(135deg, #3d3d3d 0%, #4a4a4a 100%);
  border-color: #61dafb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(97, 218, 251, 0.3);
}

.option-card .flag {
  font-size: 2.5rem;
  line-height: 1;
}

.option-card .name {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

/* Back Button */
.back-btn {
  background: #333;
  border: 1px solid #555;
  border-radius: 8px;
  color: #fff;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.back-btn:hover {
  background: #444;
  border-color: #666;
}

/* Modal Footer */
.modal-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.skip-option p {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}

.skip-btn {
  background: none;
  border: 1px solid #555;
  border-radius: 6px;
  color: #aaa;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.skip-btn:hover {
  color: #fff;
  border-color: #777;
  background: rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  25% { background-position: 100% 50%; filter: hue-rotate(90deg); }
  50% { background-position: 100% 100%; filter: hue-rotate(180deg); }
  75% { background-position: 0% 100%; filter: hue-rotate(270deg); }
  100% { background-position: 0% 50%; filter: hue-rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-content {
    padding: 24px;
    margin: 20px;
    max-height: 90vh;
  }
  
  .modal-logo {
    font-size: 1.6rem;
  }
  
  .modal-header p {
    font-size: 1rem;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .option-card {
    padding: 16px;
    min-height: 80px;
  }
  
  .option-card .flag {
    font-size: 2rem;
  }
  
  .option-card .name {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
    margin: 10px;
  }
  
  .modal-logo {
    font-size: 1.4rem;
  }
  
  .step h3 {
    font-size: 1.2rem;
  }
}

/* Auth Modal Specific Styles */
#auth-modal .modal-content {
  max-width: 400px;
  padding: 30px;
}

#auth-modal .modal-header {
  margin-bottom: 25px;
  position: relative;
}

#auth-modal .modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #333;
  border: 1px solid #555;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #444;
  color: #fff;
  border-color: #666;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #fff;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #61dafb;
  box-shadow: 0 0 0 2px rgba(97, 218, 251, 0.2);
}

.form-group input::placeholder {
  color: #888;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

#auth-submit-btn {
  background: linear-gradient(135deg, #61dafb 0%, #4ecdc4 100%);
  border: none;
  border-radius: 8px;
  color: #000;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

#auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(97, 218, 251, 0.3);
}

#auth-submit-btn:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#auth-switch-btn {
  background: none;
  border: 1px solid #555;
  border-radius: 8px;
  color: #aaa;
  padding: 10px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Roboto', sans-serif;
}

#auth-switch-btn:hover {
  color: #fff;
  border-color: #777;
  background: rgba(255, 255, 255, 0.05);
}

.error-message {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 6px;
  color: #ff6b6b;
  padding: 12px;
  margin-top: 15px;
  font-size: 0.9rem;
  text-align: center;
}