/* Modal Mask - Full-Screen Overlay */
.modal-masks {
  display: none; /* Modal is hidden initially */
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay */
  backdrop-filter: blur(6px); /* Blurred background for modern look */
  display: flex;
  align-items: center; /* Center vertically */
  justify-content: center; /* Center horizontally */
}
  
  /* Modal Container */
  .modal-container {
    background: #0c183f; /* Soft gradient background */
    width: 100%;
    max-width: 400px;
    border-radius: 16px; /* Rounded corners */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); /* Improved shadow */
    font-family: 'Poppins', Arial, sans-serif;
    text-align: center;
    padding: 25px 20px;
    box-sizing: border-box; /* Ensures padding doesn't break layout */
    animation: fadeIn 0.3s ease-in-out;
    position: relative; /* For close button positioning */
  }
  
  /* Modal Header */
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .modal-header h3 {
    margin: 0;
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 600;
  }
  
  /* Close Button */
  .modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .modal-close-btn:hover {
    color: #e74c3c; /* Red on hover */
  }
  
  /* Buttons */
  .modal-button {
    display: flex; /* Flexbox for adding image beside text */
    align-items: center; /* Vertically align content */
    justify-content: center; /* Center button content */
    width: 100%; /* Full-width buttons */
    margin: 10px 0;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px; /* Rounded corners */
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* Sync Button (Primary) */
  .modal-button.sync-button {
    background: #42b983; /* Green background */
    color: #ffffff;
  }
  
  .modal-button.sync-button:hover {
    background: #36a072; /* Darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Slight shadow on hover */
  }
  
  /* Manual Button (Secondary) */
  .modal-button.manual-button {
    background: rgba(255, 255, 255, 0.2); /* Transparent background */
    color: #ffffff;
    border: 1px solid #ffffff; /* Subtle border for secondary button */
  }
  
  .modal-button.manual-button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
  }
  
  /* Image inside button */
  .modal-button img {
    width: 24px; /* Size of the icon */
    height: 24px;
    margin-left: 30px; /* Spacing between icon and text */
  }
  /* Sync Button Loader Text */
.sync-loader {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    margin-left: 10px; /* Space between loader text and button icon (if any) */
  }
  
  /* Sync Button Loader Animation */
  .sync-button:disabled {
    background: #49a33d6e; /* Disabled background color */
    cursor: not-allowed;
  }
  
  .sync-button:disabled:hover {
    transform: none; /* Disable hover transform */
    box-shadow: none; /* Remove hover shadow */
  }
  
  /* Fade-in Animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* Responsive Design */
  @media (max-width: 600px) {
    .modal-container {
      width: 95%;
      padding: 15px;
    }
  }
  