/* Profile Container */
.profile-container {
  max-width: 800px;
  margin: 30px auto;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: #666;
  text-decoration: none;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #ff69b4;
}

.back-link i {
  margin-right: 5px;
}

.profile-header h1 {
  font-size: 24px;
  color: #333;
  margin: 0;
}

/* Admin Profile Header */
.admin-profile-header {
  padding: 24px 0 0 40px;
  background: #fff;
}

.admin-profile-header h2 {
  color: #2980b9;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.admin-profile-header .fa-user-shield {
  color: #145a8a;
  font-size: 1.3em;
}

/* Profile Card */
.profile-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Profile Banner and Avatar */
.profile-banner {
  height: 200px;
  background-color: #fff0f5;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #fff;
  border: 5px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: -75px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Profile Image Styles */
.profile-avatar img.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-avatar i {
  font-size: 70px;
  color: #ff69b4;
}

/* Profile Content */
.profile-content {
  padding: 90px 30px 30px;
}

.profile-basic-info {
  text-align: center;
  margin-bottom: 30px;
}

.profile-basic-info h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.profile-gender {
  display: inline-flex;
  align-items: center;
  color: #666;
  font-size: 16px;
}

.profile-gender i {
  margin-right: 5px;
  color: #ff69b4;
}

/* Profile Details */
.profile-details {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.detail-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
}

.detail-item i {
  font-size: 18px;
  color: #ff69b4;
  margin-right: 15px;
  margin-top: 3px;
}

.detail-item .label {
  display: block;
  font-size: 14px;
  color: #888;
  margin-bottom: 5px;
}

.detail-item .value {
  display: block;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* Access Section */
.access-section {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  background-color: #e6f7e6;
  color: #28a745;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.access-badge i {
  margin-right: 5px;
}

.extended-details h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 20px;
}

/* Limited Access Section */
.access-section.limited {
  text-align: center;
}

.access-divider {
  position: relative;
  margin-bottom: 25px;
}

.access-divider:before {
  content: "";
  display: block;
  height: 1px;
  background-color: #ddd;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
}

.access-divider span {
  position: relative;
  background-color: #f9f9f9;
  padding: 0 15px;
  color: #888;
  font-size: 14px;
}

.limited-access {
  max-width: 500px;
  margin: 0 auto;
}

.lock-icon {
  font-size: 40px;
  color: #ff69b4;
  margin-bottom: 20px;
  opacity: 0.8;
}

.request-access h3,
.request-pending h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
}

.request-access p,
.request-pending p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.request-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ff69b4;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.request-btn:hover {
  background-color: #ff5ba7;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.request-btn i {
  margin-right: 8px;
}

.request-btn.loading {
  opacity: 0.8;
  cursor: not-allowed;
}

.request-btn.success {
  background-color: #28a745;
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 105, 180, 0.3);
  border-top-color: #ff69b4;
  border-radius: 50%;
  margin-right: 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast Notification Styles */
.toast {
  visibility: hidden;
  min-width: 220px;
  background-color: #ff69b4;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px 24px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.4s, visibility 0.4s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.toast.show {
  visibility: visible;
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .profile-content {
    padding: 90px 20px 20px;
  }

  .detail-group {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .profile-banner {
    height: 150px;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
    bottom: -60px;
  }

  .profile-content {
    padding-top: 70px;
  }

  .profile-basic-info h2 {
    font-size: 24px;
  }
}
