/* Image Upload Button & Preview Styles */

/* Image upload button (next to input) */
.image-upload-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  padding: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.image-upload-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.image-upload-btn svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.7);
  transition: fill 0.3s ease;
}

.image-upload-btn:hover svg {
  fill: rgba(255, 255, 255, 0.9);
}

/* Image preview container (entry screen) */
.meets-image-preview {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideDown 0.3s ease;
}

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

.image-preview-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.meets-image-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.image-preview-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.image-filename {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-size {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.image-preview-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 0, 0, 0.8);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.image-preview-remove:hover {
  background: rgba(255, 0, 0, 1);
  transform: scale(1.1);
}

.image-preview-remove svg {
  width: 12px;
  height: 12px;
}

/* Chat message with image */
.chat-message-image {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 200px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-message-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .meets-image-preview img {
    width: 60px;
    height: 60px;
  }
  
  .image-filename {
    font-size: 13px;
  }
  
  .image-size {
    font-size: 11px;
  }
}

