@import url('/css/search.css');

/* Hide header publish button on publish page */
.publish-btn {
  display: none !important;
}

/* Container styling matches the search page */
.publish-page {
  max-width: 1280px;
  padding: 32px 16px 120px 16px; /* keep space for fixed input */
}

/* --- Onboarding Tooltip (Arrow pointing to input) --- */
.onboarding-tooltip {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-color);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  max-width: 320px;
}

.onboarding-tooltip.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.onboarding-tooltip .tooltip-arrow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--primary-color);
}

.onboarding-tooltip .tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onboarding-tooltip .tooltip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}

.onboarding-tooltip .tooltip-row i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .onboarding-tooltip {
    bottom: 80px;
    left: 16px;
    right: 16px;
    transform: translateY(20px);
    max-width: none;
  }
  
  .onboarding-tooltip.visible {
    transform: translateY(0);
  }
  
  .onboarding-tooltip .tooltip-arrow {
    left: 60px;
    transform: none;
  }
}

/* --- Special Bubbles for the publish flow --- */
.map-bubble .map-placeholder {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  background: var(--border-color);
  background-image: linear-gradient(45deg, rgba(0,0,0,0.05) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.05) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
  transition: background-color 0.3s ease;
}

.dropzone-bubble .dropzone-placeholder {
  width: 100%;
  padding: 48px 24px;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--text-color);
  font-size: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* --- Preview Bubble Styles --- */
.preview-bubble {
  max-width: 100%;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--border-color) 100%);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.preview-content {
  width: 100%;
}

/* Cover Image Placeholder */
.preview-image-container {
  margin-bottom: 16px;
}

.preview-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--border-color) 0%, var(--card-bg) 100%);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.preview-image-placeholder.clickable {
  cursor: pointer;
}

.preview-image-placeholder.clickable:hover {
  border-color: #198754;
  color: #198754;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--border-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

.preview-image-placeholder i {
  margin-right: 8px;
  font-size: 1.2rem;
}

.preview-image-placeholder span {
  font-weight: 500;
}

/* Images Grid for Preview */
.preview-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  width: 100%;
}

.preview-image-wrapper {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  max-width: 250px;
}

.preview-image-wrapper:hover {
  border-color: #198754;
  transform: scale(1.02);
}

.preview-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  z-index: 10;
}

.preview-image-remove:hover {
  background: rgba(220, 53, 69, 1);
  transform: scale(1.1);
}

.preview-add-more-images,
.preview-upload-button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  background: rgba(25, 135, 84, 0.1);
  border: 2px dashed #198754;
  border-radius: 8px;
  color: #198754;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preview-add-more-images:hover,
.preview-upload-button:hover {
  background: rgba(25, 135, 84, 0.2);
  border-color: #146c43;
  color: #146c43;
  transform: translateY(-1px);
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video Preview Styles */
.video-preview {
  position: relative;
}

.video-thumbnail-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.preview-image-wrapper.video-wrapper {
  position: relative;
}

.preview-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 5;
}

.preview-image-wrapper.video-wrapper::after {
  content: 'VIDEO';
  position: absolute;
  bottom: 4px;
  left: 4px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 5;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
  .preview-images-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .preview-images-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 4px;
  }
}

.preview-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.preview-description {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.preview-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #198754;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: rgba(25, 135, 84, 0.1);
  border-radius: 8px;
  display: inline-block;
}

.preview-category,
.preview-location,
.preview-contact {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 6px;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.preview-category::before {
  content: "🏷️ ";
  margin-right: 4px;
}

.preview-location::before {
  content: "📍 ";
  margin-right: 4px;
}

.preview-contact::before {
  content: "📞 ";
  margin-right: 4px;
}

/* Dynamic Metadata */
.preview-metadata {
  margin: 16px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border-left: 4px solid #198754;
  transition: background-color 0.3s ease;
}

[data-theme="dark"] .preview-metadata {
  background: rgba(45, 45, 45, 0.7);
}

.preview-metadata-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  margin-top: 0;
  transition: color 0.3s ease;
}

.preview-metadata-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease;
}

[data-theme="dark"] .preview-metadata-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.metadata-key {
  font-size: 0.85rem;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.metadata-value {
  font-size: 0.85rem;
  color: var(--text-color);
  font-weight: 600;
  text-align: right;
  transition: color 0.3s ease;
}

/* Tags */
.preview-tags {
  margin: 16px 0;
}

.preview-tags-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  margin-top: 0;
  transition: color 0.3s ease;
}

.preview-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.preview-tag {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(25, 135, 84, 0.2);
}

.preview-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  transition: border-color 0.3s ease;
}

.btn-publish {
  font-weight: 600;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

.btn-publish:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
}

.btn-publish:disabled {
  transform: none;
  box-shadow: none;
}

/* Ensure special bubbles take full width inside chat container */
.map-bubble,
.dropzone-bubble,
.preview-bubble {
  max-width: 100%;
}

.chat-container {
  gap: 12px;
}

/* --- Attachment Button Styles --- */
#attachment-btn {
  border-radius: 8px 0 0 8px;
  border-right: none;
  padding: 12px 16px;
  transition: all 0.3s ease;
  border-color: var(--border-color);
  background-color: var(--card-bg);
  color: var(--text-color);
}

#attachment-btn:hover {
  background-color: var(--border-color);
}

#attachment-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

/* Location Button Styles */
#location-btn {
  border-radius: 0;
  border-right: none;
  border-left: none;
  padding: 12px 16px;
  transition: all 0.3s ease;
  border-color: var(--border-color);
  background-color: var(--card-bg);
  color: var(--text-color);
}

#location-btn:hover {
  background-color: #198754;
  border-color: #198754;
  color: white;
}

#location-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Adjust input group styling for buttons */
.chat-input .input-group {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-input .form-control {
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.chat-input .btn-primary {
  border-radius: 0 8px 8px 0;
}

/* Image preview styles */
.image-preview-container {
  padding: 8px 12px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.image-preview-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.image-preview {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.image-preview-info {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.image-preview-info span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.image-preview-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.image-preview-remove:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Loading state for image upload */
.image-upload-loading {
  position: relative;
}

.image-upload-loading .image-preview-container {
  opacity: 0.7;
  pointer-events: none;
}

/* Loading overlay for image previews */
.image-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 10;
  transition: background-color 0.3s ease;
}

[data-theme="dark"] .image-loading-overlay {
  background: rgba(0, 0, 0, 0.8);
}

/* Loading spinner */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

[data-theme="dark"] .loading-spinner {
  border: 3px solid #495057;
  border-top: 3px solid #007bff;
}

/* Error state for image upload */
.image-upload-error .image-preview-container {
  border-color: #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

.image-error-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(220, 53, 69, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 10;
}

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

/* Preview Image Upload Styles */
.preview-image-preview-container {
  position: relative;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.preview-image-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.preview-image-preview-info {
  padding: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-image-preview-remove {
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

.preview-image-preview-remove:hover {
  background: rgba(220, 53, 69, 1);
  transform: scale(1.1);
}

.preview-image-upload-loading {
  opacity: 0.7;
}

.preview-image-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 6px;
}

.preview-loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.preview-image-upload-error {
  border-color: #dc3545;
}

.preview-image-error-message {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  text-align: center;
}

/* Disabled preview styles */
.preview-bubble.disabled .preview-image-placeholder.clickable,
.preview-bubble.disabled .preview-add-more-images,
.preview-bubble.disabled .preview-image-remove,
.preview-bubble.disabled .preview-image-preview-remove {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.preview-bubble.disabled .preview-image-placeholder.clickable:hover {
  border-color: var(--border-color);
  color: var(--text-color);
  background: linear-gradient(135deg, var(--border-color) 0%, var(--card-bg) 100%);
  transform: none;
  box-shadow: none;
}

.preview-bubble.disabled .preview-add-more-images:hover {
  background: rgba(25, 135, 84, 0.1);
  border-color: #198754;
  color: #198754;
  transform: none;
}


.preview-upload-button i {
  font-size: 1.2rem;
}

/* Disabled state for upload button */
.preview-bubble.disabled .preview-upload-button {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  border-color: #adb5bd;
}

.preview-bubble.disabled .preview-upload-button:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* Drop Zone Styles */
.image-drop-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.image-drop-zone.active {
  display: flex;
}

.image-drop-zone.drag-over {
  background-color: rgba(25, 135, 84, 0.9);
}

.drop-zone-content {
  text-align: center;
  color: white;
  padding: 2rem;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.image-drop-zone.drag-over .drop-zone-content {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.drop-zone-content i {
  margin-bottom: 1rem;
  color: #198754;
}

.drop-zone-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Share Bubble Styles */
.share-bubble {
  max-width: 100%;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: var(--text-color);
}

.share-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.share-content {
  width: 100%;
  text-align: center;
}

.share-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-color);
}

.share-subtitle {
  font-size: 0.95rem;
  margin-bottom: 32px !important;
  text-align: center !important;
  color: var(--text-color);
  line-height: 1.4;
  opacity: 0.8;
}

.share-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.share-btn:hover {
  background: var(--border-color);
  border-color: var(--text-color);
  transform: translateY(-1px);
  color: var(--text-color);
  text-decoration: none;
}

.share-btn:active {
  transform: translateY(0);
}

.share-btn i {
  font-size: 0.9rem;
}

.share-btn.primary {
  background: #198754;
  color: white;
  border-color: #198754;
}

.share-btn.primary:hover {
  background: #146c43;
  color: white;
  border-color: #146c43;
}

.share-btn.secondary {
  background: var(--card-bg);
  border-color: var(--border-color);
  color: var(--text-color);
}

.share-btn.secondary:hover {
  background: var(--border-color);
  border-color: var(--text-color);
  color: var(--text-color);
}

/* Responsive adjustments for share bubble */
@media (max-width: 768px) {
  .share-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .share-btn {
    width: 100%;
    justify-content: center;
  }
  
  .share-title {
    font-size: 1.1rem;
  }
  
  .share-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .share-bubble {
    padding: 16px;
  }
  
  .share-title {
    font-size: 1rem;
  }
  
  .share-subtitle {
    font-size: 0.85rem;
  }
}

/* Responsive adjustments for drop zone */
@media (max-width: 768px) {
  .drop-zone-content {
    padding: 1.5rem;
  }
  
  .drop-zone-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .drop-zone-content {
    padding: 1rem;
  }
  
  .drop-zone-text {
    font-size: 1.1rem;
  }
}

/* --- Location Modal Styles --- */
#locationModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] #locationModal .modal-content {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] #locationModal .modal-header {
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] #locationModal .modal-footer {
  border-top-color: var(--border-color);
}

[data-theme="dark"] #locationModal .btn-close {
  filter: invert(1);
}

/* Location Search Container */
.location-search-container {
  position: relative;
  margin-bottom: 1rem;
}

#location-search-input {
  border-radius: 8px 0 0 8px;
  border-right: none;
  transition: all 0.3s ease;
}

[data-theme="dark"] #location-search-input {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="dark"] #location-search-input::placeholder {
  color: var(--text-secondary);
}

#location-search-btn {
  border-radius: 0;
  border-left: none;
  border-right: none;
  background-color: var(--card-bg);
  color: var(--text-color);
  border-color: var(--border-color);
  transition: all 0.3s ease;
}

#location-search-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

#location-geolocate-btn {
  border-radius: 0 8px 8px 0;
  border-left: none;
  background-color: var(--card-bg);
  color: var(--text-color);
  border-color: var(--border-color);
  transition: all 0.3s ease;
}

#location-geolocate-btn:hover {
  background-color: #198754;
  color: white;
  border-color: #198754;
}

#location-geolocate-btn.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Location Search Results */
.location-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  margin-top: -1px;
}

[data-theme="dark"] .location-search-results {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.location-search-results.show {
  display: block;
}

.location-search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.location-search-result-item:last-child {
  border-bottom: none;
}

.location-search-result-item:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

[data-theme="dark"] .location-search-result-item:hover {
  background-color: rgba(0, 123, 255, 0.2);
}

.location-search-result-item i {
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}

.location-search-result-content {
  flex: 1;
  min-width: 0;
}

.location-search-result-title {
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-search-result-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-search-no-results {
  padding: 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Location Map */
.location-map {
  width: 100%;
  height: 450px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: #e5e5e5;
  position: relative;
  margin-bottom: 1rem;
}

[data-theme="dark"] .location-map {
  background-color: var(--bg-tertiary);
  border-color: var(--border-color);
}

/* Map Loading State */
.location-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
}

.location-loading .spinner-border {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.location-loading-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Location Info */
.location-info {
  padding: 0;
}

.location-info .alert {
  margin-bottom: 0;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.location-info .alert i {
  margin-top: 2px;
  flex-shrink: 0;
}

[data-theme="dark"] .location-info .alert-info {
  background-color: rgba(0, 123, 255, 0.1);
  border-color: rgba(0, 123, 255, 0.3);
  color: var(--text-primary);
}

.location-info .alert-success {
  background-color: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.3);
  color: #146c43;
}

[data-theme="dark"] .location-info .alert-success {
  background-color: rgba(25, 135, 84, 0.2);
  border-color: rgba(25, 135, 84, 0.4);
  color: #75b798;
}

#location-info-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Confirm Button */
#confirm-location-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Map marker animation */
@keyframes markerBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.map-marker-animated {
  animation: markerBounce 0.5s ease-in-out;
}

/* Leaflet overrides for dark mode */
[data-theme="dark"] .leaflet-popup-content-wrapper,
[data-theme="dark"] .leaflet-popup-tip {
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .leaflet-container {
  background: var(--bg-tertiary);
}

[data-theme="dark"] .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.7);
  color: #ccc;
}

[data-theme="dark"] .leaflet-bar a {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .leaflet-bar a:hover {
  background-color: var(--bg-tertiary);
}

/* AI Action Buttons (inline buttons in messages) */
.ai-action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.ai-action-buttons .btn {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.ai-action-buttons .btn-outline-success {
  border-color: #198754;
  color: #198754;
  background-color: transparent;
}

.ai-action-buttons .btn-outline-success:hover {
  background-color: #198754;
  color: white;
  border-color: #198754;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

[data-theme="dark"] .ai-action-buttons .btn-outline-success {
  border-color: #75b798;
  color: #75b798;
}

[data-theme="dark"] .ai-action-buttons .btn-outline-success:hover {
  background-color: #198754;
  color: white;
  border-color: #198754;
}

/* Responsive adjustments for location modal */
@media (max-width: 768px) {
  .location-map {
    height: 350px;
  }
  
  #locationModal .modal-dialog {
    margin: 0.5rem;
  }
  
  .location-search-container .input-group {
    flex-wrap: wrap;
  }
  
  #location-search-input {
    border-radius: 8px 8px 0 0;
    border-right: 1px solid var(--border-color);
    width: 100%;
  }
  
  #location-search-btn,
  #location-geolocate-btn {
    border-radius: 0;
    border-left: 1px solid var(--border-color);
    flex: 1;
  }
  
  #location-geolocate-btn {
    border-radius: 0 0 8px 8px;
  }
  
  /* Adjust chat input buttons for mobile */
  .chat-input .input-group {
    flex-wrap: nowrap;
  }
  
  #attachment-btn,
  #location-btn {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .location-map {
    height: 300px;
  }
  
  .location-search-result-item {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .location-info .alert {
    font-size: 0.85rem;
  }
  
  #attachment-btn,
  #location-btn {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  
  .ai-action-buttons {
    gap: 6px;
  }
  
  .ai-action-buttons .btn {
    font-size: 0.8rem;
    padding: 5px 10px;
    width: 100%;
  }
}
/* --- Category Selection Styles --- */
.category-selection-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.category-selection-header {
  text-align: center;
  margin-bottom: 40px;
}

.category-selection-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 12px;
}

.category-selection-header .text-muted {
  font-size: 1rem;
  color: var(--text-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.category-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s ease;
  position: relative;
}

.category-card:hover {
  background: var(--border-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-card.priority {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(13, 110, 253, 0.05) 100%);
}

.category-card.priority:hover {
  background: linear-gradient(135deg, var(--border-color) 0%, rgba(13, 110, 253, 0.1) 100%);
}

.category-emoji {
  font-size: 2rem;
  margin-right: 12px;
  line-height: 1;
}

.category-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.95rem;
}

.category-card .fa-chevron-right {
  color: var(--text-muted);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.category-card:hover .fa-chevron-right {
  opacity: 1;
}

/* --- Quick Replies & Inline Controls --- */

/* Quick Replies Container */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}

.quick-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-reply-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-reply-btn:active {
  transform: translateY(0);
}

/* Inline Controls (inside chat messages) */
.inline-controls {
  padding: 16px !important;
  background: var(--card-bg) !important;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.control-row:last-child {
  margin-bottom: 0;
}

.control-row-label {
  font-weight: 600;
  color: var(--text-color);
  min-width: 100px;
  font-size: 0.9rem;
}

/* Toggle Button Group (inline) */
.inline-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-toggle-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.15s ease;
}

.inline-toggle-btn:hover {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.1);
}

.inline-toggle-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Counter Control (+/- buttons) */
.counter-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

.counter-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.85rem;
}

.counter-btn:hover {
  background: var(--primary-color);
  color: white;
}

.counter-btn.minus {
  border-right: 1px solid var(--border-color);
}

.counter-btn.plus {
  border-left: 1px solid var(--border-color);
}

.counter-value {
  min-width: 32px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Checkbox Control */
.checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 12px;
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.15s ease;
}

.checkbox-control:hover {
  border-color: var(--primary-color);
}

.checkbox-control input[type="checkbox"] {
  display: none;
}

.checkbox-control .checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  background: var(--card-bg);
}

.checkbox-control input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-control input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-control .checkbox-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
}

/* --- Continue Button --- */
.continue-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  justify-content: flex-end;
}

.continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--primary-color);
  border: none;
  border-radius: 24px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.continue-btn:hover {
  background: var(--primary-hover, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.continue-btn:active {
  transform: translateY(0);
}

.continue-btn i {
  transition: transform 0.2s ease;
}

.continue-btn:hover i {
  transform: translateX(4px);
}

/* --- Year Selector --- */
.year-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.year-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.year-pill {
  min-width: 60px;
  text-align: center;
}

.more-years-btn {
  background: transparent;
  border-style: dashed;
  color: var(--text-muted);
}

.more-years-btn:hover {
  background: var(--border-color);
  border-style: solid;
  color: var(--text-color);
}

.year-custom-container {
  display: inline-flex;
}

.year-custom-input {
  width: 100px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-color);
  text-align: center;
  transition: all 0.15s ease;
}

.year-custom-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.year-custom-input.active {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.1);
}

.year-custom-input.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  animation: shake 0.3s ease;
}

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

/* --- Surface m2 Input --- */
.m2-input-container {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.15s ease;
}

.m2-input-container:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.m2-input {
  width: 80px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--text-color);
  text-align: right;
}

.m2-input:focus {
  outline: none;
}

.m2-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.m2-label {
  padding: 6px 12px 6px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--border-color);
}

/* --- Amenities Section --- */
.amenities-section {
  flex-direction: column;
  align-items: flex-start !important;
  gap: 10px;
}

.amenities-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--card-bg);
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.15s ease;
}

.amenity-chip i {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.amenity-chip:hover {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.amenity-chip:hover i {
  color: var(--primary-color);
}

.amenity-chip.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.amenity-chip.active i {
  color: white;
}

/* --- Color Selector for Vehicles --- */
.color-pills {
  flex-wrap: wrap;
}

.color-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.color-btn.active .color-dot {
  box-shadow: 0 0 0 2px white, 0 0 0 3px var(--primary-color);
}

/* --- Section Animations --- */
.control-row {
  transition: opacity 0.2s ease, max-height 0.3s ease;
}

/* --- Auth Buttons Container --- */
.auth-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  align-items: center;
}

.auth-buttons-container .btn {
  min-width: 200px;
}

/* --- Mobile Adjustments --- */
@media (max-width: 768px) {
  .quick-replies {
    gap: 6px;
  }
  
  .quick-reply-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 16px;
  }
  
  .control-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .control-row-label {
    min-width: auto;
  }
  
  .inline-toggle-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  
  .counter-btn {
    width: 28px;
    height: 28px;
  }
  
  .continue-row {
    justify-content: center;
  }
  
  .continue-btn {
    width: 100%;
    justify-content: center;
  }
  
  .year-selector {
    width: 100%;
  }
  
  .year-custom-input {
    flex: 1;
  }
  
  .m2-input-container {
    width: 100%;
  }
  
  .m2-input {
    flex: 1;
    width: 100%;
  }
  
  .amenity-chip {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .amenity-chip i {
    font-size: 0.85rem;
  }
  
  .auth-buttons-container {
    padding: 16px;
  }
  
  .auth-buttons-container .btn {
    width: 100%;
  }
}

/* --- Inline Login Form Styles --- */
.inline-login-bubble {
  max-width: 400px !important;
}

.inline-login-card {
  position: relative;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 20%, #f093fb 40%, #f5576c 60%, #4facfe 80%, #00f2fe 100%);
  background-size: 300% 100%;
  animation: inlineBorderGradientShift 8s ease-in-out infinite;
}

@keyframes inlineBorderGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.inline-login-content {
  background: var(--card-bg, #fff);
  border-radius: 14px;
  padding: 1.5rem;
}

.inline-login-header h4 {
  color: var(--text-color, #212529);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.inline-login-header p {
  color: var(--secondary-color, #6c757d);
  font-size: 0.85rem;
  margin-bottom: 0;
}

.inline-login-input {
  border: 2px solid var(--border-color, #dee2e6);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  background: var(--card-bg, #fff);
  color: var(--text-color, #212529);
  transition: all 0.3s ease;
}

.inline-login-input:focus {
  outline: none;
  border-color: var(--primary-color, #0d6efd);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.inline-login-input::placeholder {
  color: var(--secondary-color, #6c757d);
  opacity: 0.7;
}

.inline-login-btn {
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.inline-login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.inline-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.inline-login-btn .btn-loader {
  display: none;
}

.inline-login-btn.loading .btn-text {
  display: none;
}

.inline-login-btn.loading .btn-loader {
  display: inline;
}

/* Inline PIN input grid */
.inline-pin-input-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 280px;
  margin: 0 auto;
}

.inline-pin-input {
  width: 100%;
  height: 48px;
  border: 2px solid var(--border-color, #dee2e6);
  border-radius: 10px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  background: var(--card-bg, #fff);
  color: var(--text-color, #212529);
  transition: all 0.3s ease;
  outline: none;
}

.inline-pin-input:focus {
  border-color: var(--primary-color, #0d6efd);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
  transform: scale(1.05);
}

.inline-pin-input.filled {
  border-color: var(--primary-color, #0d6efd);
  background: rgba(13, 110, 253, 0.05);
}

.inline-pin-input.error {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}

/* PIN icon */
.inline-pin-section .pin-icon {
  font-size: 2rem;
  color: var(--primary-color, #0d6efd);
}

.inline-pin-section .pin-icon i {
  background: linear-gradient(45deg, var(--primary-color, #0d6efd), #0b5ed7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Resend button */
.inline-resend-btn {
  color: var(--primary-color, #0d6efd);
  text-decoration: none;
  font-weight: 600;
  border: none;
  background: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.inline-resend-btn:hover:not(:disabled) {
  color: #0b5ed7;
  background: rgba(13, 110, 253, 0.1);
  text-decoration: none;
}

.inline-resend-btn:disabled {
  color: var(--secondary-color, #6c757d);
  cursor: not-allowed;
  opacity: 0.6;
}

.inline-resend-btn .btn-loader {
  display: none;
}

.inline-resend-btn.loading .btn-text {
  display: none;
}

.inline-resend-btn.loading .btn-loader {
  display: inline;
}

.inline-resend-btn .countdown {
  color: var(--secondary-color, #6c757d);
  font-weight: 500;
}

/* Inline divider */
.inline-divider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inline-divider .divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-color, #dee2e6);
}

.inline-divider .divider-text {
  color: var(--secondary-color, #6c757d);
  font-weight: 500;
  font-size: 0.85rem;
}

/* Google button */
.inline-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid #4285f4;
  border-radius: 12px;
  background: var(--card-bg, #fff);
  color: #4285f4;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.inline-google-btn:hover {
  background: #4285f4;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.inline-google-btn .btn-loader {
  display: none;
}

.inline-google-btn.loading .btn-text {
  display: none;
}

.inline-google-btn.loading .btn-loader {
  display: inline;
}

/* Dark mode support */
[data-theme="dark"] .inline-login-content {
  background: var(--card-bg, #1e1e1e);
}

[data-theme="dark"] .inline-login-input,
[data-theme="dark"] .inline-pin-input {
  background: var(--card-bg, #1e1e1e);
  border-color: var(--border-color, #3d3d3d);
  color: var(--text-color, #e0e0e0);
}

[data-theme="dark"] .inline-google-btn {
  background: var(--card-bg, #1e1e1e);
  border-color: #4285f4;
  color: #4285f4;
}

[data-theme="dark"] .inline-google-btn:hover {
  background: #4285f4;
  color: white;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .inline-login-bubble {
    max-width: 100% !important;
  }
  
  .inline-login-content {
    padding: 1.25rem;
  }
  
  .inline-pin-input-grid {
    gap: 6px;
  }
  
  .inline-pin-input {
    height: 42px;
    font-size: 1.1rem;
  }
  
  .inline-login-header h4 {
    font-size: 1.1rem;
  }
}
