.article-link-btn {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 10px;
  background-color: white;
  color: #333;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-link-btn:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.article-link-btn:hover {
  background-color: #f8f8f8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.article-link-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .article-link-btn {
    top: auto;
    bottom: 20px;
    right: 20px;
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* .save-image-wrapper {
    position: relative;
}
  
.save-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 4px;
    padding: 5px 5px 0;
    cursor: pointer;
    z-index: 5;
    opacity: 0.7;
    transition: opacity 0.2s;
}
  
.save-image-btn:hover {
    opacity: 1;
} */

/* Save button wrapper */
.save-image-wrapper {
  position: relative;
}

/* Save button styling */
.save-image-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 4px;
  padding: 5px;
  cursor: pointer;
  z-index: 5;
  opacity: 0.7;
  transition: opacity 0.2s;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover effect */
.save-image-btn:hover {
  opacity: 1;
}

/* Add bookmark icon using pseudo-selector */
.save-image-btn:after {
  content: "\f097"; /* FontAwesome bookmark icon */
  font-family: "uncodeicon" !important; /* Your theme's icon font */
  font-size: 16px;
  color: #188ece; /* Using the blue color instead of purple */
  display: block;
  text-align: center;
}

/* Button in saved state (if needed) */
.save-image-btn.saved:after {
  content: "\f02e"; /* FontAwesome filled bookmark icon */
  color: #188ece;
}

.lg-save-image-btn {
  color: #999;
}

.lg-save-image-btn:hover {
  color: #fff;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: auto;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* .save-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 4px;
    background: #333;
    color: #fff;
    z-index: 9999999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}
  
.save-notification.show {
    transform: translateY(0);
    opacity: 1;
}
  
.notification-success {
    background: #4CAF50;
}
  
.notification-error {
    background: #F44336;
} */

/* Notification Container */
.save-notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(30px);
  padding: 12px 20px;
  border-radius: 6px;
  background: #ffffff;
  color: #333333;
  z-index: 999999;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  display: flex !important;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
  max-width: 90%;
  width: auto;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.save-notification.notice-show {
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1;
}

/* Success Notification */
.notification-success {
  display: flex !important;
  border-left: 4px solid #188ece;
}

/* Error Notification */
.notification-error {
  border-left: 4px solid #f44336;
}

/* Icon styles - Fixed alignment issues */
.notification-icon {
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  width: 22px;
  position: relative;
  top: 0; /* Ensures perfect vertical alignment */
}

/* Success icon */
.icon-success svg {
  fill: #188ece; /* Branded blue color */
  width: 18px; /* Slightly smaller for better proportions */
  height: 18px;
  display: block; /* Prevents inheriting line height issues */
}

/* Error icon */
.icon-error svg {
  fill: #f44336;
  width: 18px;
  height: 18px;
  display: block;
}

/* Message text */
.notification-message {
  line-height: 1.4;
  padding-top: 1px; /* Subtle adjustment for text alignment */
}

/* Animation for fade-in and fade-out */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
  }
}

.save-notification.notice-show {
  animation: fadeInUp 0.35s forwards;
}

.save-notification.notice-hide {
  animation: fadeOutDown 0.35s forwards;
}

/**
 * Enhanced Toolbar Styling - Subtle improvements without breaking functionality
 */

/* Improve icon and label spacing */
.lg-toolbar .lg-icon,
.lg-toolbar .lg-toolbar-icon {
  margin: 0 12px !important; /* Slightly more space between buttons */
  padding-bottom: 38px !important; /* More space for the label */
  position: relative !important;
  display: inline-block !important;
  opacity: 0.85 !important;
  transition: opacity 0.2s ease !important;
  height: 48px;
}

/* Hover effect for better interactivity */
.lg-toolbar .lg-icon:hover,
.lg-toolbar .lg-toolbar-icon:hover {
  opacity: 1 !important;
}

/* Improve label appearance */
.button-label {
  position: absolute !important;
  display: block !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  color: white !important;
  font-size: 11px !important; /* Slightly larger font */
  white-space: nowrap !important;
  text-align: center !important;
  font-weight: 400 !important; /* Better readability */
  letter-spacing: 0.2px !important; /* Improved legibility */
  opacity: 0.9 !important;
}

/* Better icon appearance */
.lg-toolbar .lg-icon svg,
.lg-toolbar .lg-toolbar-icon svg {
  margin-bottom: 5px !important; /* Space between icon and label */
  width: 22px !important; /* Slightly larger icons */
  height: 22px !important;
}

/* Keep counter at top left with improved styling */
.lg-counter {
  position: fixed !important;
  top: 30px !important;
  left: 30px !important;
  color: white !important;
  font-size: 16px !important;
  opacity: 0.85 !important;
  font-weight: 400 !important;
}

.lg-toolbar .lg-save-image-btn:after {
  content: "\f097" !important; /* Bookmark icon in Uncodeicon - adjust if needed */
}

/* Add Go to Article icon with pseudo-selector - using Uncodeicon font */
.lg-toolbar .lg-go-to-article-btn:after {
  content: "\f178" !important;
}

.lg-dropdown .lg-icon {
  padding: 0 !important;
  margin: 0 8px 0 0 !important;
}

@media (max-width: 767px) {
  .lg-components .lg-sub-html {
    display: none !important; /* Hide sub-html on mobile */
  }

  .lg-toolbar {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 61px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    overflow: visible !important;
    transform: none !important;
  }

  .lg-toolbar .lg-icon,
  .lg-toolbar .lg-toolbar-icon {
    margin: 0 10px !important;
    padding-bottom: 25px !important;
  }

  .lg-toolbar .lg-icon:after,
  .lg-toolbar .lg-toolbar-icon:after {
    font-size: 20px !important;
  }

  .lg-close {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 99999 !important;
  }

  .lg-outer .lg-thumb-outer {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .lg-toolbar .lg-icon,
  .lg-toolbar .lg-toolbar-icon {
    margin: 0 5px !important;
    width: 36px !important;
  }

  .lg-toolbar .lg-close {
    position: fixed !important;
  }

  .button-label {
    font-size: 9px !important;
    top: 29px !important;
  }
}

.lg-toolbar {
  overflow: visible !important;
}
