/* src/styles/ProfilePopup.css */

.profile-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* Transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999; /* Ensure it appears above other content */
  }
  
  .profile-popup {
    background: #1e1e1e;
    color: white;
    padding: 15px;
    border-radius: 10px;
    width: 27%; /* Adjust width as needed */
    text-align: center;
    position: absolute;
    top: 70px; /* Adjust top position to be below the icon */
    right: 10px; /* Adjust right margin */
    font-family: "Poppins", sans-serif;
  }
  
  .profile-popup img {
    width: 100px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .close-profile {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: white;
    font-size: 18px;
    cursor: pointer;
  }
  .close-profile:hover {
     color: red;
  }
  .profile-info h3{
    border-bottom: 2px solid white;
    padding-bottom: 8%;
  }
  .profile-info h4{
    text-align: start;
    margin-bottom: 0px;
  }
  .profile-info-column{
    border-bottom: 2px solid white;
    padding-bottom: 8%;
    margin-bottom: 3%;
  }
  .profile-info-column p{
    text-align: start;
  }
  .sign-out-button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
  }
  
  /* Responsive styles */

/* For tablets and smaller screens */
@media only screen and (max-width: 1024px) {
  .profile-popup {
    width: 35%; /* Adjust width for tablets */
    top: 60px; /* Adjust top position */
    right: 5px; /* Adjust right margin */
  }

  .profile-popup img {
    width: 80px; /* Slightly smaller image */
    height: 70px;
  }

  .profile-info h3 {
    padding-bottom: 6%;
  }

  .profile-info-column {
    padding-bottom: 6%;
  }

  .sign-out-button {
    padding: 8px 16px; /* Adjust padding for easier touch on tablets */
  }
}

/* For mobile phones */
@media only screen and (max-width: 768px) {
  .profile-popup {
    width: 45%; /* Adjust width for mobile screens */
    top: 50px; /* Adjust top position */
    right: 5px; /* Adjust right margin */
    padding: 10px; /* Less padding */
  }

  .profile-popup img {
    width: 70px; /* Smaller image */
    height: 60px;
  }

  .profile-info h3 {
    padding-bottom: 5%;
  }

  .profile-info-column {
    padding-bottom: 5%;
  }

  .sign-out-button {
    padding: 6px 12px; /* Adjust padding for mobile */
  }
}

/* For very small mobile screens */
@media only screen and (max-width: 480px) {
  .profile-popup {
    width: 60%; /* Full width for very small screens */
    top: 40px; /* Adjust top position */
    right: 2%; /* Adjust right margin */
    padding: 8px; /* Less padding */
  }

  .profile-popup img {
    width: 60px; /* Smaller image */
    height: 50px;
  }

  .profile-info h3 {
    padding-bottom: 4%;
  }

  .profile-info-column {
    padding-bottom: 4%;
  }

  .sign-out-button {
    padding: 5px 10px; /* Adjust padding for very small screens */
  }
}