@use "../abstracts/variables" as *;
@use "../abstracts/mixins" as *;

.collaboration-popup-wrapper {
  height: 100vh;
  width: 100vw;
  background: var(--background-color-secondary);
  backdrop-filter: blur(2px);
  @include flex-center;
  .collaboration-popup-container {
    max-width: 50vw;
    width: 460px;
    background-color: var(--background-color);
    border-radius: #{$border-radius-large};
    .split {
      width: 100%;
      height: 1px;
      background: var(--highlight-accent-color);
    }
    .header {
      @include flex-space-between;
      padding: 12px;
      border-bottom: 1px solid var(--border-color);
      .content {
        @include flex-center;
        .copy-link-button {
          font-size: var(--font-size-small);
          &:hover {
            color: var(--accent-color);
            text-decoration: underline;
          }
        }
        .close-button {
          @include flex-center;
          height: 20px;
          width: 20px;
          border-radius: #{$border-radius-small};
          &:hover {
            background: var(--background-color-secondary);
          }
          svg {
            scale: 1.5;
          }
        }
      }
    }
    .invite-input-container {
      padding: 12px;
    }
    .access-and-user-control-container {
      padding: 12px;
      .user-header {
        margin-bottom: 12px;
      }
      .general-access-container,
      .users-list-container {
        .user-list-container,
        .team-container,
        .you-container {
          @include flex-space-between;
          padding: 8px 12px;
          .user-details {
            @include flex-center;
            gap: 8px;
            .profile-image {
              height: 24px;
              width: 24px;
              line-height: 24px;
              text-align: center;
              border-radius: #{$border-radius-circle};
              overflow: hidden;
              color: var(--primary-color);
              img {
                height: 100%;
                width: 100%;
                object-fit: cover;
              }
              .no-profile-container {
                font-size: var(--font-size-small);
                color: inherit;
              }
            }
            .user-name {
              font-size: var(--font-size-regulaar);
            }
          }
          .project-name,
          .your-name {
            @include flex-center;
            gap: 6px;
            color: var(--accent-color);
            .user-profile{
              height: 24px;
              width: 24px;
              text-align: center;
              line-height: 25px;
              background-color: var(--accent-color);
              color: var(--primary-color);
              border-radius: #{$border-radius-circle};
            }
          }
          .number-of-peoples-have-access {
            padding: 4px 12px;
            border-radius: #{$border-radius-small};
          }
          .indicater {
            padding: 2px 12px;
            line-height: 22px;
            border-radius: #{$border-radius-extra-large};
            background: var(--highlight-accent-color);
            color: var(--accent-color);
            outline: 1px dashed var(--accent-color);
            outline-offset: -1px;
          }
        }
        .team-container,
        .you-container {
          border-top: 1px solid var(--border-color);
        }
      }
    }
  }
}

.collab-user-live-container{
  @include flex-center;
  flex-direction: column;
  gap: 6px;
  transform: translateY(15px);
  .user-image-container{
    height: 30px;
    width: 30px;
    border-radius: #{$border-radius-circle};
    overflow: hidden;
    .user-image{
      height: 100%;
      width: 100%;
      object-fit: cover;
      vertical-align: top;
    }
  }
  .user-name{
    padding: 4px 6px;
    border-radius: #{$border-radius-small};
    color: white;
    font-size: var(--font-size-regulaar);
    font-weight: var(--font-size-regulaar);
    text-transform: capitalize;
    white-space: nowrap;
  }
}
