.tooltip-message {
  position: absolute;
  top: 50px; /* Adjust position near h3 */
  right: 20px;
  background-color: #f8d7da; /* Light red for errors */
  color: #721c24; /* Dark red for text */
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 14px;
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  max-width: 300px; /* Set a maximum width for better readability */
  word-wrap: break-word; /* Ensure long words break into the next line */
}

.tooltip-message.success {
  background-color: #d4edda; /* Light green for success */
  color: #155724; /* Dark green for text */
  border: 1px solid #c3e6cb;
}

/* Media query for mobile devices */
@media screen and (max-width: 600px) {
  .tooltip-message {
      position: absolute;
      top: 50px; /* Adjust position near h3 */
      right: 10px; /* Adjust the right position */
      left: 10px; /* Add a left position for centering */
      max-width: calc(100% - 20px); /* Take up most of the screen width */
      font-size: 12px; /* Adjust font size for smaller screens */

      background-color: #f8d7da; /* Light red for errors */
      color: #721c24; /* Dark red for text */
      border: 1px solid #f5c6cb;
      border-radius: 5px;
      z-index: 999;
      display: none;
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
      word-wrap: break-word; /* Ensure long words break into the next line */
  }
}

  
  .loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

  /**MOBILE NOTIFICATION STYLING**/
  @media (max-width: 600px) {
    .dropdown-menu {
      width: 100%; /* Make the dropdown full-width */
      padding: 10px; /* Add padding for better spacing */
    }

    .dropdown-item {
      display: flex;
      align-items: flex-start; /* Align text and image to the top */
      flex-wrap: wrap; /* Allow text to wrap on smaller screens */
      padding: 8px 5px; /* Adjust padding for compact display */
    }

    .dropdown-item img.avatar {
      width: 12px; /* Adjust image size */
      height: 12px;
      margin-right: 10px; /* Add spacing between image and text */
    }

    .dropdown-item .text-sm {
      font-size: 14px; /* Smaller font size for mobile */
      line-height: 1.4; /* Improve text readability */
    }

    .MobileWordControl {
      word-wrap: break-word; /* Ensure long text breaks properly */
      word-break: break-word;
    }

    .dropdown-item .text-xs {
      font-size: 12px; /* Adjust the font size for timestamps */
      margin-top: 5px; /* Add some spacing for clarity */
    }
  }

  /* Style for the profile image container */
  .profileImage {
    position: relative;
    width: fit-content;
  }

  /* Hide the hover icon by default */
  .hover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
  }

  /* Show the icon on hover */
  .profile-img:hover + .hover-icon,
  .hover-icon:hover {
    display: flex;
  }

  .bi-pencil {
    font-size: 1.5rem;
  }
  
  #CurrencyOptionModal{
    background-color: #344767 !important;
    color: #ffffff;
  }

  .PaymentRow{
    display: flex;
    justify-content: space-around;
  }

  .PaymentRow:hover{
    cursor: pointer;
    background-color:#232e58e7 ;
    border-radius:5px;
  }

  @media (max-width: 768px) {
    .PaymentRow{
      border: 1px ridge;
      border-radius: 12px;
      padding: 5px;
    }

    .typeDescription{
      font-size: small;
      margin:10px;
    }

    .currencyCard{
      width:90px !important;
      height:85px !important;
    }
  }

  .currencyCard{
    width:80px;
    height:80px;
  }

  .currencyCard > i{
    text-align: center;
    margin-top: 15px;
  }

  .currencyCard > div{
    text-align: center;
  }

  .typeDescription{
    margin-top: 15px;
  }
  
  .lockedIcon{
  top: 3px !important;
  display: block;
  }
  
  .BuyLockedTxt{
    color:rgba(255, 255, 255, 0.8) !important;
    display: flex;
    justify-content: center;
    position: relative;
    top: -8px;
    font-size:medium;
  }
  
  @keyframes glowingBorder {
    0% { border-image-source: linear-gradient(45deg, #ff0000, #ff7300); }
    25% { border-image-source: linear-gradient(45deg, #ff7300, #ffea00); }
    50% { border-image-source: linear-gradient(45deg, #ffea00, #00ff00); }
    75% { border-image-source: linear-gradient(45deg, #00ff00, #00ffff); }
    100% { border-image-source: linear-gradient(45deg, #00ffff, #ff0000); }
  }
  
  .PreviewIcon {
    font-size: 20px; /* Adjust size as needed */
    padding: 1px; /* Adds space for border effect */
    border-radius: 50%;
    border-image-slice: 1;
    border-image-source: linear-gradient(45deg, #ff0000, #ff7300);
    animation: glowingBorder 6s infinite linear;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    transition: box-shadow 0.5s ease-in-out;
  }
  
  .PreviewIcon:hover {
    box-shadow: 0 0 25px rgba(255, 0, 0, 1), 0 0 35px rgba(255, 166, 0, 1);
  }

  .WavePreview{
    width: 70%;
    height: 50px;
    position: relative;
  }
  
  .toggle-password {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #888;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #333;
}