
.rounded-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--pill-button-border-radius);
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
  background-color: var(--secondary-button-color);
}

.rounded-button .plus-icon {
  width: 14px;
  height: 14px;
}

.rounded-button .loading-spinner {
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.rounded-button.rounded-button-primary {
  background-color: var(--primary-button-color);
  color: var(--primary-button-text-color);
}

.rounded-button.rounded-button-primary .loading-spinner {
  border-top-color: var(--primary-button-text-color);
}

@media (hover: hover) {
  .rounded-button:not(:disabled):hover {
    background-color: var(--secondary-button-hover-color);
  }

  .rounded-button.rounded-button-primary:not(:disabled):hover {
    background-color: var(--primary-button-hover-color);
  }
}

.rounded-button.bell-button {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rounded-button.bell-button .notifications-icon {
  width: 20px;
  height: 20px;
}

.rounded-button.chat-button {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rounded-button.chat-button .chat-icon {
  width: 20px;
  height: 20px;
}

.rounded-button.ellipsis-button {
  padding-left: 10px;
  padding-right: 10px;
}

.rounded-button.ellipsis-button span {
  position: relative;
  font-weight: 600;
  top: -4px;
}
.danger-button {
  color: var(--error-color);
  font-size: 15px;
}

.text-pill-button {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 12px;
  transition: color 0.2s;
  border-radius: var(--pill-button-border-radius);
  color: var(--highlight-color);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  color: var(--icon-button-color);
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--icon-button-border-radius);
  transition: background-color 0.2s;
}

.icon-button .icon {
  width: 24px;
  height: 24px;
}

@media (hover: hover) {
  .icon-button:not(:disabled):hover {
    background-color: var(--back-button-hover-color);
  }
}

.back-button {
  height: 30px;
  width: 30px;
}

.floating-back-button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  background: var(--overlay-color);
  color: var(--off-white);
  border-radius: var(--icon-button-border-radius);
  top: 16px;
  left: 16px;
  height: 30px;
  width: 30px;
  z-index: var(--floating-back-button-z-index);
}

.back-button .icon,
.floating-back-button .icon {
  width: 20px;
  height: 20px;
}

.menu-button {
  font-size: 24px;
  height: 30px;
  width: 30px;
}

@media (min-width: 800px) {
  .menu-button {
    display: none;
  }
}

.inbox-button {
  position: relative;
  height: 30px;
  width: 30px;
}

.inbox-button .icon {
  width: 24px;
  height: 24px;
}

.feeds-button {
  height: 30px;
  width: 30px;
}

.feeds-button .icon {
  width: 24px;
  height: 24px;
}

.inbox-button .unread-dot {
  position: absolute;
  top: 1px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--highlight-color);
  border: 1px solid var(--background-color);
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.rounded-button .icon {
  display: flex;
}

.button-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.button-group button {
  width: fit-content;
}

form input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%;
  padding: 12px;
  border-radius: var(--text-input-border-radius);
  border: var(--hair) solid var(--post-border-color);
  background: var(--text-input-background-color);
  color: var(--text-color);
}

form label {
  font-size: 14px;
  margin-bottom: 8px;
  margin-left: 2px;
  font-weight: 500;
  color: var(--text-color-muted);
}

#login-form .rounded-button {
  padding: 10px 20px;
}

#login-form .rounded-button-primary .loading-spinner {
  border-top-color: var(--primary-button-text-color);
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

input,
textarea,
select {
  font-size: 16px;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-color-muted);
}

input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}

input[type="color"]::-webkit-color-swatch {
  border: var(--hair) solid var(--post-border-color);
  border-radius: 50%;
  box-shadow: var(--shadow-color-swatch);
}

/* Firefox */
input[type="color"]::-moz-color-swatch {
  border: var(--hair) solid var(--post-border-color);
  border-radius: 50%;
  box-shadow: var(--shadow-color-swatch);
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  border: 2px solid light-dark(var(--lighter-gray), var(--light-gray));
  border-top: 2px solid var(--highlight-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.skeleton-animate {
  background: linear-gradient(
    90deg,
    var(--skeleton-gradient-edge) 25%,
    var(--skeleton-gradient-mid) 50%,
    var(--skeleton-gradient-edge) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.post-skeleton {
  padding: 10px 16px 0 16px;
  border-bottom: var(--hair) solid var(--post-border-color);
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.skeleton-left {
  width: 45px;
}

.skeleton-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-avatar {
  width: var(--avatar-size-post);
  height: var(--avatar-size-post);
  border-radius: var(--avatar-border-radius);
}

.skeleton-content {
  padding-top: 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
  height: fit-content;
}

.skeleton-line {
  width: 100%;
  height: 10px;
  border-radius: var(--skeleton-border-radius);
}

.skeleton-line-short {
  width: 10em;
  height: 12px;
  border-radius: var(--skeleton-border-radius);
}

.skeleton-line-shorter {
  width: 7em;
  height: 12px;
  border-radius: var(--skeleton-border-radius);
}

.skeleton-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3em;
  height: 28px;
  padding-top: 8px;
  margin-bottom: 8px;
}

.skeleton-action {
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skeleton-action .skeleton-action-icon {
  width: 18px;
  height: 18px;
  color: var(--skeleton-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skeleton-action .skeleton-action-icon .icon {
  width: 18px;
  height: 18px;
  display: block;
}

.skeleton-action .skeleton-action-icon .icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.avatar-image-frame {
  display: inline-block;
  line-height: 0;
  width: var(--avatar-size-post);
  height: var(--avatar-size-post);
  border-radius: var(--avatar-border-radius);
  border: var(--hair) solid var(--post-border-color);
  background-color: var(--skeleton-color);
  overflow: hidden;
  flex-shrink: 0;
}

