/* styles.css */

.user-info-wrapper {
  padding: 35px 15px;
  background-color: #fff;
  border-radius: 12px;
  max-width: 1200px;
  margin: 30px auto;
}

.profile-icon-container {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  margin-top: 40px;
  padding-top: 35px;
  text-align: center;
  width: 100%;
}

.profile-icon {
  background: #6c757d;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon-img {
  font-size: 30px;
  color: white;
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.25em;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  position: relative;
  top: -2px;
}

.profile-icon-img:before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.package-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: #000000;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-name {
  font-size: 22px;
  font-weight: 600;
  color: #212529;
  margin-bottom: 10px;
}

.user-email {
  font-size: 14px;
  margin-bottom: 25px;
}

.logout-button {
  padding: 10px;
  background-color: #1a4466;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.logout-button:hover {
  background-color: #0056b3;
  /* Hover color for Logout button */
}

.upgrade-button {
  background-color: #28a745;
  padding: 10px;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.upgrade-button:hover {
  background-color: #218838;
  /* Hover color for Upgrade button */
}

/* #s4e-user-info-wrapper Styles */
#s4e-user-info-wrapper {
  text-align: center;
  padding: 40px;
}

/* Asset Manager Styles */
#s4e-asset-manager {
  margin: 20px auto;
  max-width: 1200px;
  color: #888888;
}

#s4e-asset-manager-content {
  margin: 0 auto;
  text-align: center;
}

.asset-input-section {
  margin-bottom: 20px;
}

#asset-info-text {
  padding: 10px;
}

#new-asset-input {
  padding: 10px;
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.asset-button-style {
  padding: 10px;
  margin-left: 10px;
  justify-content: center;
  background-color: #1a4466;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.asset-button-style:hover {
  background-color: #2b5c85;
  transform: scale(1.05);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Error Message Styles */
.error-message {
  display: none;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.skeleton-loader {
  height: 20px;
  background: #e0e0e0;
  border-radius: 4px;
  margin: auto;
  /* Center the loader horizontally */
  display: block;
  /* Ensures the loader behaves as a block element */
}

/* Additional centering for specific elements */
.profile-icon-container {
  text-align: center;
}

.skeleton-profile-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: auto;
  /* Center the profile icon */
  background: #e0e0e0;
}

.skeleton-text {
  width: 150px;
  height: 20px;
  margin: auto;
  /* Center the text loader */
}

.skeleton-email {
  width: 200px;
  height: 20px;
  margin: auto;
  /* Center the email loader */
}

.skeleton-button {
  width: 100px;
  height: 30px;
  margin: auto;
  /* Center the button loader */
}

/* Loader box styles */
.s4e-asset-loader-box {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 321px;
  height: 142px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Loader spinner styles */
.s4e-asset-loader-spinner {
  border: 4px solid #e0e0e0;
  /* Light border */
  border-top: 4px solid #1a4466;
  /* Blue color for the top */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

/* Animation for the spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Make sure the parent div is positioned */
#s4e-asset-manager {
  position: relative;
  /* This ensures the loader is constrained to this parent */
}
