/**
 * ImpersonationBanner Styles
 *
 * Warning banner displayed when admin is impersonating a user.
 * Uses fixed positioning at the top of the viewport.
 */

.banner {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  padding: 0.75rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.warning {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.warningIcon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.warningText {
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.info strong {
  font-weight: 600;
}

.adminInfo {
  opacity: 0.85;
  font-size: 0.8125rem;
}

.timer {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: monospace;
}

.actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.error {
  font-size: 0.8125rem;
  color: #fef2f2;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.notesButton {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.notesButton:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.exitButton {
  background-color: #1f2937;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.exitButton:hover:not(:disabled) {
  background-color: #111827;
  transform: translateY(-1px);
}

.exitButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .info {
    flex-wrap: wrap;
  }
}
