/**
 * Activity Editor Modal Styles
 */

/* ============================================
   Form Elements
   ============================================ */
.auth-form select {
  padding: 12px 16px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a1a;
  background: white;
  transition: all 0.3s ease;
  outline: none;
  cursor: pointer;
  width: 100%;
}

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

.auth-form input[type="time"],
.auth-form input[type="number"] {
  padding: 12px 16px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a1a;
  background: white;
  transition: all 0.3s ease;
  outline: none;
}

.auth-form input[type="time"]:focus,
.auth-form input[type="number"]:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   Place Search
   ============================================ */
.place-search-container {
  position: relative;
}

.place-search-container input {
  width: 100%;
  padding: 12px 16px;
  padding-left: 40px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  font-size: 15px;
  color: #1a1a1a;
  background: white;
  transition: all 0.3s ease;
  outline: none;
}

.place-search-container input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.place-search-help {
  margin-top: 6px;
  font-size: 12px;
  color: #999999;
}

/* ============================================
   Selected Place Display
   ============================================ */
.selected-place {
  padding: 12px 16px;
  background: #f0f9ff;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  margin-top: 8px;
}

.selected-place-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.selected-place-icon {
  font-size: 18px;
}

.selected-place-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.selected-place-coords {
  font-size: 13px;
  color: #666666;
  margin-left: 26px;
}

/* ============================================
   Manual Coords
   ============================================ */
.btn-link {
  background: none;
  border: none;
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.btn-link:hover {
  color: #764ba2;
  text-decoration: underline;
}

.manual-coords-section {
  padding: 16px;
  background: #f5f5f5;
  border-radius: 8px;
  margin-top: 12px;
}

/* ============================================
   Google Places Autocomplete Dropdown
   ============================================ */
.pac-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
  margin-top: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  z-index: 10000 !important;
}

.pac-item {
  padding: 10px 12px;
  border-top: 1px solid #f0f0f0;
  cursor: pointer;
  font-size: 14px;
  color: #1a1a1a;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item:hover {
  background-color: #f5f9ff;
}

.pac-item-selected {
  background-color: #e8f2ff;
}

.pac-icon {
  margin-right: 8px;
}

.pac-item-query {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.pac-matched {
  font-weight: 700;
  color: #667eea;
}

/* ============================================
   Form Error Display
   ============================================ */
.form-error {
  padding: 12px 16px;
  background: #fee;
  border: 2px solid #f44;
  border-radius: 8px;
  color: #c00;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 16px;
  white-space: pre-line;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .manual-coords-section {
    padding: 12px;
  }
}
