/* ByteExport User Dropdown Styles */

#be-user-dropdown-container {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 999999; /* Parent iframe'den çok daha yüksek */
  pointer-events: auto; /* Tıklanabilir olsun */
}

/* Login Button */
.be-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1rem !important;
  line-height: 1.5rem !important;
  font-weight: 600 !important;
  font-family: "Inter", system-ui, sans-serif !important;
  color: #FFFFFF !important;
  text-transform: none !important;
  text-decoration: none !important;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background-color: #003399;
  box-shadow: 0 10px 15px -3px rgba(0, 51, 153, 0.25), 0 4px 6px -4px rgba(0, 51, 153, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  pointer-events: auto;
}

.be-login-btn:hover {
  background-color: #0044CC !important;
  color: #FFFFFF !important;
  transform: scale(1.05) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 51, 153, 0.35), 0 4px 6px -4px rgba(0, 51, 153, 0.35);
}

/* Dropdown Container */
.be-user-dropdown {
  position: relative;
}

/* Dropdown Toggle Button */
.be-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background-color: #003399;
  color: #FFFFFF;
  border: none;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: "Inter", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 51, 153, 0.2);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.be-dropdown-toggle:hover {
  background-color: #0044CC;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 51, 153, 0.3);
}

.be-user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.be-dropdown-arrow {
  transition: transform 0.2s;
}

.be-dropdown-toggle.active .be-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.be-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: white;
  border-radius: 0.625rem;
  box-shadow: 0 8px 24px rgba(0, 29, 108, 0.15), 0 2px 8px rgba(0, 29, 108, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.be-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Items */
.be-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  color: #1E293B;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: "Inter", system-ui, sans-serif;
  transition: all 0.15s;
  border-left: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.be-dropdown-item:hover {
  background-color: #EBF5FF;
  border-left-color: #003399;
  color: #001D6C;
}

.be-dropdown-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.be-dropdown-item:hover svg {
  opacity: 1;
}

.be-dropdown-item-danger {
  color: #DC2626;
}

.be-dropdown-item-danger:hover {
  background-color: #FEE2E2;
  border-left-color: #DC2626;
  color: #991B1B;
}

.be-dropdown-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 0.5rem 0;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  #be-user-dropdown-container {
    top: 10px;
    right: 10px;
    z-index: 999999 !important;
  }

  .be-login-btn {
    font-size: 0.8125rem !important;
    padding: 0.5rem 0.875rem;
  }

  .be-dropdown-toggle {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    gap: 0.375rem;
  }

  .be-dropdown-arrow {
    width: 14px;
    height: 14px;
  }

  .be-user-name {
    max-width: 90px;
  }

  .be-dropdown-menu {
    min-width: 170px;
    right: 0;
  }

  .be-dropdown-item {
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    gap: 0.5rem;
  }

  .be-dropdown-item svg {
    width: 16px;
    height: 16px;
  }
}
