/* Share Link Section Styles */
.share-link-section {
  margin-left: 16px;
  display: flex;
  align-items: center;
}

.advanced-filter-toggle .share-copy-btn {
  background: #123357;
  border: none;
  border-radius: 4px;
  padding: 12px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  height: 44px;
  width: 44px;
  min-width: 44px;
}

.advanced-filter-toggle .share-copy-btn:hover {
  background: #0f2a4a;
  transform: translateY(-1px);
}

.advanced-filter-toggle .share-copy-btn.copied {
  background: #28a745;
  transform: scale(1.1);
}

.advanced-filter-toggle .share-copy-btn.error {
  background: #dc3545;
  transform: scale(1.1);
}

.advanced-filter-toggle .share-copy-btn svg {
  width: 16px;
  height: 16px;
}

/* Tooltip Styles */
.advanced-filter-toggle .share-copy-btn {
  position: relative;
  margin-left: 5px;
}

.advanced-filter-toggle .share-copy-btn::after {
  content: attr(title);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}

.advanced-filter-toggle .share-copy-btn::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #333;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

.advanced-filter-toggle .share-copy-btn:hover::after,
.advanced-filter-toggle .share-copy-btn:hover::before {
  opacity: 1;
  visibility: visible;
}

.share-copy-btn {
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: 'oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 2px solid #123357;
}

.share-copy-btn::after {
  content: '';
  display: inline-block;
  background-image: url('/themes/custom/rwu/assets/img/copy-link.svg');
  width: 20px;
  height: 20px;
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  border: 0;
  background-color: transparent;
  cursor: pointer;
}

.share-copy-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(18, 51, 87, 0.3);
}

.share-copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(18, 51, 87, 0.4);
}

.share-copy-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: none;
}

/* Copy button states */
.share-copy-btn.copied {
  background: #28a745;
  color: white;
}

.share-copy-btn.copied:hover {
  background: #218838;
}

.share-copy-btn.error {
  background: #dc3545;
  color: white;
}

.share-copy-btn.error:hover {
  background: #c82333;
}

/* Share link URL input (if needed for display) */
.share-link-url {
  width: 300px;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  margin-right: 8px;
  font-family: monospace;
  color: #495057;
}

.share-link-url:focus {
  outline: none;
  border-color: #123357;
  box-shadow: 0 0 0 2px rgba(18, 51, 87, 0.1);
}

/* Responsive Design */
@media (max-width: 991px) {
  /* Mobile: Share link section */
  .share-link-section {
    margin-left: 8px;
    margin-top: 8px;
  }

  .share-copy-btn {
    padding: 6px 10px;
    font-size: 12px;
    gap: 4px;
  }

  .share-copy-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .share-copy-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
}
