/* ===========================================
   Avatar Circle + Login Modal Styles
   =========================================== */

/* --- Animations --- */
@keyframes obmrFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.95); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1.00); }
}

/* --- Avatar Circle --- */
.avatar-circle {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: content-box;
  padding: 7px;
  font-family: 'Poppins','Helvetica Neue',Arial,sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform .15s ease;
  opacity: 0;
  animation: fadeInScale 1.2s ease-out 0.8s forwards;
}

.avatar-circle:hover {
  transform: scale(1.08);
}

.avatar-static {
  background-color: #808080;
  cursor: pointer;
}

.avatar-gradient-obmr {
  background: linear-gradient(270deg, #d87b2b, #4a7bb7, #b5524d, #d87b2b);
  background-size: 1200% 1200%;
  animation:
    fadeInScale 1.2s ease-out 0.8s forwards,
    obmrFlow 45s ease-in-out 2.5s infinite;
}

/* --- Login Modal --- */
.login-modal {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  background: rgba(245, 246, 247, 0.85);
}

.login-modal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.login-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
  padding: 50px 40px;
  width: 360px;
  max-width: 90%;
  text-align: center;
  font-family: 'Poppins','Helvetica Neue',Arial,sans-serif;
  color: #333;
}

.login-logo {
  width: 260px;
  margin-bottom: 25px;
}

.login-modal-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #111;
}

#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100%;
  border: 1px solid #ddd;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

#loginform p.submit input {
  width: 100%;
  background-color: #40009f;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.2s ease;
}

#loginform p.submit input:hover {
  background-color: #5c1cff;
}

/* ===========================================
   LOGOUT TOOLTIP STYLING
   =========================================== */
.avatar-logout-tooltip {
  position: absolute;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 9999;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  pointer-events: auto;  /* allows clicking */
  text-align: center;
  cursor: pointer;
}

.avatar-logout-tooltip strong {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-bottom: 2px;
}
