/*
 * Admin impersonation styles
 * Fixed footer with user dropdown and impersonation controls
 */

:root {
  --impersonation-footer-height: 60px;
}

.impersonation-footer {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background-color: #f8f8f8;
  color: #333;
  padding: 0.5rem 1rem;
  z-index: 1001;
  font-size: 0.9rem;
  border-top: 2px solid #e45735;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  width: 100vw;
  margin: 0;
  height: var(--impersonation-footer-height);
  box-sizing: border-box;
}

.impersonation-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.impersonation-footer span {
  display: flex;
  align-items: center;
}

.impersonation-footer a {
  color: #e45735;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}

.impersonation-footer a:hover {
  text-decoration: underline;
}

/* User impersonation dropdown */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background-color: #e5e5e5;
  color: #333;
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.dropdown-content {
  display: none;
  position: absolute;
  bottom: 2rem;
  right: 0;
  background-color: #fff;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  z-index: 1001;
}

/* Admin impersonation details dropdown */
.impersonation-footer details .box {
  position: absolute;
  bottom: 2.5rem;
  z-index: 1001;
}

.dropdown-content a {
  color: #333 !important;
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
  text-decoration: none !important;
}

.dropdown-user {
  display: flex;
  flex-direction: column;
}

.dropdown-user strong {
  font-weight: 500;
  color: #333;
}

.dropdown-user small {
  font-size: 0.75rem;
  color: #666;
}

.user-dropdown:hover .dropdown-content {
  display: block;
}