/* General layout and typography */

.settings-header {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0; /* Adds a bottom border like in your image */
 
}

.settings-header h1 {
  color: #000; /* Text color */
}
.profile-settings {
  width: 600px; /* Increased width */
  margin: 20px auto;
  padding: 20px;
  background-color: #f7f7f7;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.setting-item {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-title {
  font-weight: bold;
  font-size: 1.1em;
}

.setting-item p {
  margin-top: 5px;
  color: #555;
}

.company-input {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9em;
}

/* Switch (toggle button) styling */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background-color: white;
  transition: .4s;
  left: 4px;
  bottom: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent; /* Hidden checkmark initially */
}

input:checked + .slider {
  background-color: #8b30ee; /* Purple background when the switch is on */
}

input:checked + .slider:before {
  background-color: white; /* White circle */
  transform: translateX(15px); /* Corrected value to keep circle within bounds */
  color: #8b30ee; /* Purple checkmark */
  content: "✔"; /* Display checkmark */
}

/* Optional styling for better look */
.slider {
  box-shadow: 0 0 2px #0003;
}



.profile_contact-details {
  margin-top: 10px;
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 5px;
}

.profile_contact-details p {
  margin: 5px 0;
}

/* -------------- apply css extra--------- */

.icon {
  cursor: pointer;
}


/* Styling for download resume link */
.download-resume {
  color: #8b30ee;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

.download-resume:hover {
  text-decoration: underline;
}

/* Styling for the upload button */
.upload-label {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #8b30ee;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: bold;
  text-align: center;
}

.upload-label:hover {
  background-color: #6d1fc1;
}

input[type="file"] {
  display: none;
}


/* ------------------------popup  form------------------- */

/* Popup form overlay for both Preferences and Email Template */
#popup-form, #popup-form-template {
display: none; /* Hidden by default */
position: fixed;
z-index: 999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6); /* Black background with opacity */
/* overflow: auto; Enable scrolling if needed */
}

/* Form container for both Preferences and Email Template */
.form-container {
background-color: #fff;
margin: 15% auto; /* Center it 15% from the top of the page */
padding: 20px;
border: 1px solid #ccc;
width: 30%; /* Adjust as per screen size */
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow for popup */
}

/* Input fields styling */
.form-container input[type="text"] {
width: 100%;
padding: 10px;
margin: 10px 0;
display: block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box; /* Ensures padding does not exceed width */
font-size: 16px;

}

/* Submit button styling */
.form-container button[type="submit"] {
width: 100%;
background-color: #6d1fc1;
color: white;
padding: 10px;
border: none;
border-radius: 4px;
cursor: pointer;
margin-top: 10px;
font-size: 16px;

}

.form-container button[type="submit"]:hover {
background-color: #5a19a6; /* Darker shade on hover */
}

/* Popup close behavior when clicking outside */
#popup-form::before, #popup-form-template::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
z-index: -1; /* Ensures it's behind the popup form */
}
#role::placeholder, 
#template-name::placeholder,#locations::placeholder{
    color: #A0A0A0; /* Light black or dark gray */
}


/* ----------popup preferences--------- */
.popup {
  visibility: hidden;
  width: 400px; /* Adjust the width as needed */
  background: linear-gradient(to right,#8641f8,#9D30b1);
  color: white;
  text-align: center;
  padding: 15px;
  position: fixed;
  top: 0;
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Center horizontally */
  z-index: 1000;
  font-size: 16px;
  border-radius: 10px; /* Adjust the border radius as needed */
}

.popup.show {
  visibility: visible;
}

.close-popup {
  margin-left: 15px;
  cursor: pointer;
  font-weight: bold;
  color: white;
}


/* Responsive styles */
@media (max-width: 768px) {
  .profile-settings {
      width: 90%;
  }
  
  .setting-item h2 {
      font-size: 1.2em;
  }

  .setting-item p {
      font-size: 13px;
  }

  .switch {
      width: 40px;
      height: 20px;
  }

  .slider:before {
      height: 16px;
      width: 16px;
  }

  input:checked + .slider:before {
      transform: translateX(18px);
  }
}

@media (max-width: 480px) {
  .profile-settings {
      width: 95%;
  }
  
  .setting-item h2 {
      font-size: 1.1em;
  }

  .setting-item p {
      font-size: 12px;
  }

  .switch {
      width: 40px;
      height: 20px;
  }

  .slider:before {
      height: 16px;
      width: 16px;
  }

  input:checked + .slider:before {
      transform: translateX(18px);
  }
}




