/* Scoped styles for yeahToast plugin */
.toast-container {
  position: fixed;
  top: var(--spacing-large);
  right: var(--spacing-large);
  z-index: 9999; /* Ensure it appears above most elements */
}

.toast-message {
  display: none;
  margin-bottom: var(--spacing-base);
  padding: var(--spacing-base);
  border-radius: var(--border-radius);
  color: #fff;
  max-width: 457px; /* Specific to toast messages */
  box-shadow: var(--shadow-medium);
  opacity: 0.95;
  transition: var(--transition-base);
}

.toast-success {
  background-color: var(--color-success);
  color: #fff;
}

.toast-error {
  background-color: var(--color-error);
  color: #fff;
}

.toast-warning {
  background-color: var(--color-warning);
  color: #212529;
}

.toast-info {
  background-color: var(--color-info);
  color: #fff;
}

.toast-help {
  background-color: var(--color-info);
  color: #fff;
}

/* Add hover effect for better user experience */
.toast-message:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-heavy);
}

/* Back to top button */
#back-to-top {
  position: fixed;
  top: var(--spacing-base);
  right: var(--spacing-base);
  display: none;
  z-index: 1001;
  background: var(--color-bg);
}

#back-to-top:hover {
  color: var(--color-text);
}


/* Basic styles for sections */
.minimizable-section {
  
  padding: 0;
  margin-bottom: var(--spacing-base);
}

.section-header {
  position: relative;
  padding: var(--spacing-small) var(--spacing-base);
  cursor: pointer;
  user-select: none;
  border: 0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.3) 70%, var(--color-primary-ghost) 100%);
  overflow: hidden;
}

.section-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-primary-ghost) 0%, rgba(255, 255, 255, 0.3) 1rem, rgba(255, 255, 255, 0.3) 70%, var(--color-primary-ghost) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.section-header.collapsed::before {
  opacity: 1;
}

.section-header > * {
  position: relative;
  z-index: 1;
}


.section-content {
  display: block; /* Content visible by default */
  border-right: 1px solid var(--boder-color);
  border-left: 1px solid var(--boder-color);
  border-bottom: 1px solid var(--boder-color);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  padding: var(--spacing-small);
  background: linear-gradient(to top, var(--color-primary-ghost) 0%, rgba(255, 255, 255, 0.3) 1rem);
}

/* Breadcrumb container styling */
ul.breadcrumb {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.95rem;
}

/* Each breadcrumb item */
ul.breadcrumb li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Breadcrumb links */
ul.breadcrumb li a {
  text-decoration: none;
  color: var(--color-info);
  padding: 4px 8px;
  border-radius: var(--border-radius);
  transition: var(--transition-base);
}

ul.breadcrumb li a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Separator arrow */
ul.breadcrumb li:not(:last-child)::after {
  content: "›"; /* You could use → or » or a custom SVG */
  margin: 0 8px;
  color: #666;
}

.assetInactive {
  filter: grayscale(100%);
  opacity: 0.5;
}

.profile-headshot img {
  background: linear-gradient(to top, var(--color-white), var(--color-primary-ghost));
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-small);
    margin: var(--spacing-xtra-small) 0;
}

/* Enhanced headshot container & controls */
.profile-headshot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-small);
  padding: calc(var(--spacing-small) / 2);
}

.profile-headshot img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: calc(var(--border-radius) + 3px);
  padding: var(--spacing-xtra-small);
  box-shadow: var(--shadow-content);
  transition: transform 180ms var(--transition-timing), box-shadow 180ms var(--transition-timing), opacity 180ms var(--transition-timing);
  background-clip: padding-box;
}

.profile-headshot .placeholder {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--color-primary-ghost), rgba(255,255,255,0.6));
  color: rgba(var(--color-primary-base), 0.9);
  border: 2px dashed var(--border-color);
  border-radius: calc(var(--border-radius) + 3px);
  box-shadow: var(--shadow-content);
  font-weight: 600;
}

.profile-headshot:hover img {
  transform: scale(1.03);
  box-shadow: var(--shadow-heavy);
}

/* Optional circular avatar modifier */
.profile-headshot.circle img,
.profile-headshot.circle .placeholder {
  border-radius: 50%;
}

.headshot-upload {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.headshot-upload button,
.headshot-upload .buttonMimic {
  padding: calc(var(--spacing-small) * 0.6) calc(var(--spacing-base));
  font-size: var(--font-size-small);
  border-radius: calc(var(--border-radius) - 1px);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  transition: transform 160ms var(--transition-timing), box-shadow 160ms var(--transition-timing);
}

.headshot-upload button:hover,
.headshot-upload .buttonMimic:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.headshot-upload form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-small);
  align-items: center;
  width: 100%;
  max-width: 220px;
}

.headshot-upload input[type="file"] {
  width: 100%;
  background: transparent;
}

.headshot-upload #headshotUploadStatus,
.headshot-upload [id^="headshot_upload_status_"] {
  font-size: var(--font-size-small);
  margin-top: calc(var(--spacing-small) / 2);
  color: var(--color-text);
}

/* Small screens: reduce avatar size */
@media (max-width: 767px) {
  .profile-headshot img,
  .profile-headshot .placeholder {
    width: 120px;
    height: 120px;
  }
  .headshot-upload form {
    max-width: 180px;
  }
}