/* ================================
   ExamArchive – Avatar Styles
   ================================ */

/* Avatar wrapper (already styled in header.css, this is for standalone use) */
.avatar {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* Avatar circle */
.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--avatar-bg, #ecfeff);
  color: var(--avatar-text, #155e75);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

/* Avatar with image */
.avatar-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Avatar ring (optional) */
.avatar.with-ring::before {
  content: "";
  position: absolute;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border-radius: 50%;
  border: 2px solid var(--avatar-ring, #16a34a);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Avatar sizes */
.avatar.small {
  width: 28px;
  height: 28px;
}

.avatar.small .avatar-circle {
  font-size: 0.65rem;
}

.avatar.medium {
  width: 40px;
  height: 40px;
}

.avatar.medium .avatar-circle {
  font-size: 0.85rem;
}

.avatar.large {
  width: 56px;
  height: 56px;
}

.avatar.large .avatar-circle {
  font-size: 1.1rem;
}

/* Avatar status indicator */
.avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: #10b981;
}

.avatar-status.offline {
  background: #6b7280;
}

.avatar-status.busy {
  background: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .avatar {
    width: 32px;
    height: 32px;
  }

  .avatar-circle {
    font-size: 0.7rem;
  }
}
