.img-meta-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.img-meta-inner {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 820px;
  width: 92%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.img-meta-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #2271b1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toastMsg {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #2271b1;
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100001;
}
#toastMsg.show {
  opacity: 1;
  transform: translateY(-6px);
}
/* Fix lỗi thanh cuộn trong Media Modal */
.media-frame-content .attachment-details,
.media-sidebar {
  overflow-x: hidden !important;
}
.media-sidebar input[type='text'],
.media-sidebar textarea {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
