#container {
  max-width: 18.125rem;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--box-shadow);
}

#sidebar-header {
  font-size: 1.625rem;
  width: 100%;
  box-sizing: content-box;
  text-align: center;
  color: var(--text-primary-color);
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;

  #sidebar-header-title {
    font-size: 1.5rem;
    font-weight: bold;
  }

  #name {
    font-weight: 700;
  }

  #title {
    font-weight: 500;
  }
}

#sidebar-header::after,
#upload-box::after {
  content: "";
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--background-color);
  position: absolute;
  bottom: 0;
  left: 0;
}

#file-box::after {
  content: "";
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--background-color);
  position: absolute;
  top: 532px;
  left: 0;
}

#upload-box {
  position: relative;
  padding-bottom: 1.5rem;
  padding-top: 1.5rem;

  #upload-zone {
    height: 5rem;
    margin: 0 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.8125rem;
    border: 1px dashed var(--text-fourth-color);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color-2);
  }

  #upload-zone:hover {
    border: 1px dashed var(--text-third-color);
    cursor: pointer;
  }

  #upload-file-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;

    #upload-arrow {
      width: 1rem;
      height: 1rem;
    }

    #upload-files {
      font-size: 1rem;
      font-weight: 600;
      color: var(--main-color);
    }
  }

  #annotation,
  #file-count {
    font-size: 0.75rem;
    color: var(--text-secondary-color);
  }

  #after-upload {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  #upload-button {
    background-color: var(--blue-500);
    color: var(--primary-white);
    border: none;
    border-radius: 0.5rem;
    height: 1.75rem;
    width: 100%;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
}

#file-box {
  flex: 5;
  position: relative;
  overflow-y: auto;

  #file-list {
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    color: var(--text-primary-color);
  }
  #file-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary-color);
  }

  #file-list-box {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    padding: 0.5 0rem;
    margin: 0.5rem 0;
    box-sizing: border-box;
    height: 100%;
  }

  li {
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
  }

  li img {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
  }
}

#content-box {
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
  flex: 1;

  #content-box-list {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
  }

  li {
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    padding: 0.5rem 0rem;

    a {
      text-decoration: none;
      color: var(--text-secondary-color);
    }
  }

  li:hover {
    background-color: var(--background-color);
    a {
      color: var(--main-color);
    }
  }
}

#loading-spinner {
  border: 4px solid var(--background-color);
  border-top: 4px solid var(--main-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
